Skip to content
Snippets Groups Projects
Select Git revision
  • e4991fe7e5728ce9a7945f26f9b3e09f226b8e09
  • main default protected
  • 14-env
  • fix-version-3
  • automated-updates-fix-action
  • release-0.15
  • automated-updates-main
  • release-0.13
  • automated-updates-release-0.13
  • release-0.14
  • release-0.10
  • release-0.11
  • release-0.12
  • fix-versions-action
  • versions-fix
  • release-0.9
  • release-0.8
  • release-0.7
  • release-0.6
  • release-0.5
  • release-0.4
  • v0.15.0
  • v0.14.0
  • v0.13.0
  • v0.12.0
  • v0.11.0
  • v0.10.0
  • v0.9.0
  • v0.8.0
  • v0.7.0
  • v0.6.0
  • v0.5.0
  • v0.4.0
  • v0.3.0
  • v0.2.0
  • v0.1.0
36 results

test.sh

Blame
  • gotk create helmrelease

    Create or update a HelmRelease resource

    Synopsis

    The helmrelease create command generates a HelmRelease resource for a given HelmRepository source.

    gotk create helmrelease [name] [flags]

    Examples

      # Create a HelmRelease with a chart from a HelmRepository source
      gotk create hr podinfo \
        --interval=10m \
        --source=HelmRepository/podinfo \
        --chart=podinfo \
        --chart-version=">4.0.0"
    
      # Create a HelmRelease with a chart from a GitRepository source
      gotk create hr podinfo \
        --interval=10m \
        --source=GitRepository/podinfo \
        --chart=./charts/podinfo
    
      # Create a HelmRelease with a chart from a Bucket source
      gotk create hr podinfo \
        --interval=10m \
        --source=Bucket/podinfo \
        --chart=./charts/podinfo
    
      # Create a HelmRelease with values from a local YAML file
      gotk create hr podinfo \
        --source=HelmRepository/podinfo \
        --chart=podinfo \
        --values=./my-values.yaml
    
      # Create a HelmRelease with a custom release name
      gotk create hr podinfo \
        --release-name=podinfo-dev
        --source=HelmRepository/podinfo \
        --chart=podinfo \
    
      # Create a HelmRelease targeting another namespace than the resource
      gotk create hr podinfo \
        --target-namespace=default \
        --source=HelmRepository/podinfo \
        --chart=podinfo
    
      # Create a HelmRelease definition on disk without applying it on the cluster
      gotk create hr podinfo \
        --source=HelmRepository/podinfo \
        --chart=podinfo \
        --values=./values.yaml \
        --export > podinfo-release.yaml
    

    Options

          --chart string              Helm chart name or path
          --chart-version string      Helm chart version, accepts a semver range (ignored for charts from GitRepository sources)
          --depends-on stringArray    HelmReleases that must be ready before this release can be installed, supported formats '<name>' and '<namespace>/<name>'
      -h, --help                      help for helmrelease
          --release-name string       name used for the Helm release, defaults to a composition of '[<target-namespace>-]<hr-name>'
          --source string             source that contains the chart (<kind>/<name>)
          --target-namespace string   namespace to install this release, defaults to the HelmRelease namespace
          --values string             local path to the values.yaml file

    Options inherited from parent commands

          --export              export in YAML format to stdout
          --interval duration   source sync interval (default 1m0s)
          --kubeconfig string   path to the kubeconfig file (default "~/.kube/config")
          --label strings       set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
      -n, --namespace string    the namespace scope for this operation (default "gitops-system")
          --timeout duration    timeout for this operation (default 5m0s)
          --verbose             print generated objects

    SEE ALSO