41 KiB
HelmRelease API reference
Packages:
helm.toolkit.fluxcd.io/v2beta1
Package v2beta1 contains API Schema definitions for the helm v2beta1 API group
Resource Types:HelmRelease
HelmRelease is the Schema for the helmreleases API
| Field | Description | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
apiVersionstring |
helm.toolkit.fluxcd.io/v2beta1
|
||||||||||||||||||||||||||||||||||||||
kindstring |
HelmRelease
|
||||||||||||||||||||||||||||||||||||||
metadataKubernetes meta/v1.ObjectMeta |
Refer to the Kubernetes API documentation for the fields of the
metadata field.
|
||||||||||||||||||||||||||||||||||||||
specHelmReleaseSpec |
|
||||||||||||||||||||||||||||||||||||||
statusHelmReleaseStatus |
CrossNamespaceObjectReference
(Appears on: HelmChartTemplateSpec)
CrossNamespaceObjectReference contains enough information to let you locate the typed referenced object at cluster level.
| Field | Description |
|---|---|
apiVersionstring |
(Optional)
APIVersion of the referent. |
kindstring |
Kind of the referent. |
namestring |
Name of the referent. |
namespacestring |
(Optional)
Namespace of the referent. |
DeploymentAction
DeploymentAction defines a consistent interface for Install and Upgrade.
Gvk
(Appears on: Selector)
Gvk identifies a Kubernetes API type. https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md
| Field | Description |
|---|---|
groupstring |
|
versionstring |
|
kindstring |
HelmChartTemplate
(Appears on: HelmReleaseSpec)
HelmChartTemplate defines the template from which the controller will generate a v1beta1.HelmChart object in the same namespace as the referenced v1beta1.Source.
| Field | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
specHelmChartTemplateSpec |
Spec holds the template for the v1beta1.HelmChartSpec for this HelmRelease.
|
HelmChartTemplateSpec
(Appears on: HelmChartTemplate)
HelmChartTemplateSpec defines the template from which the controller will generate a v1beta1.HelmChartSpec object.
| Field | Description |
|---|---|
chartstring |
The name or path the Helm chart is available at in the SourceRef. |
versionstring |
(Optional)
Version semver expression, ignored for charts from v1beta1.GitRepository and v1beta1.Bucket sources. Defaults to latest when omitted. |
sourceRefCrossNamespaceObjectReference |
The name and namespace of the v1beta1.Source the chart is available at. |
intervalKubernetes meta/v1.Duration |
(Optional)
Interval at which to check the v1beta1.Source for updates. Defaults to ‘HelmReleaseSpec.Interval’. |
valuesFilestring |
(Optional)
Alternative values file to use as the default chart values, expected to be a relative path in the SourceRef. Ignored when omitted. |
HelmReleaseSpec
(Appears on: HelmRelease)
HelmReleaseSpec defines the desired state of a Helm release.
| Field | Description |
|---|---|
chartHelmChartTemplate |
Chart defines the template of the v1beta1.HelmChart that should be created for this HelmRelease. |
intervalKubernetes meta/v1.Duration |
Interval at which to reconcile the Helm release. |
kubeConfigKubeConfig |
(Optional)
KubeConfig for reconciling the HelmRelease on a remote cluster. When specified, KubeConfig takes precedence over ServiceAccountName. |
suspendbool |
(Optional)
Suspend tells the controller to suspend reconciliation for this HelmRelease, it does not apply to already started reconciliations. Defaults to false. |
releaseNamestring |
(Optional)
ReleaseName used for the Helm release. Defaults to a composition of ‘[TargetNamespace-]Name’. |
targetNamespacestring |
(Optional)
TargetNamespace to target when performing operations for the HelmRelease. Defaults to the namespace of the HelmRelease. |
storageNamespacestring |
(Optional)
StorageNamespace used for the Helm storage. Defaults to the namespace of the HelmRelease. |
dependsOn[]Runtime dependency.CrossNamespaceDependencyReference |
(Optional)
DependsOn may contain a dependency.CrossNamespaceDependencyReference slice with references to HelmRelease resources that must be ready before this HelmRelease can be reconciled. |
timeoutKubernetes meta/v1.Duration |
(Optional)
Timeout is the time to wait for any individual Kubernetes operation (like Jobs for hooks) during the performance of a Helm action. Defaults to ‘5m0s’. |
maxHistoryint |
(Optional)
MaxHistory is the number of revisions saved by Helm for this HelmRelease. Use ‘0’ for an unlimited number of revisions; defaults to ‘10’. |
serviceAccountNamestring |
(Optional)
The name of the Kubernetes service account to impersonate when reconciling this HelmRelease. |
installInstall |
(Optional)
Install holds the configuration for Helm install actions for this HelmRelease. |
upgradeUpgrade |
(Optional)
Upgrade holds the configuration for Helm upgrade actions for this HelmRelease. |
testTest |
(Optional)
Test holds the configuration for Helm test actions for this HelmRelease. |
rollbackRollback |
(Optional)
Rollback holds the configuration for Helm rollback actions for this HelmRelease. |
uninstallUninstall |
(Optional)
Uninstall holds the configuration for Helm uninstall actions for this HelmRelease. |
valuesFrom[]ValuesReference |
ValuesFrom holds references to resources containing Helm values for this HelmRelease, and information about how they should be merged. |
valuesKubernetes pkg/apis/apiextensions/v1.JSON |
(Optional)
Values holds the values for this Helm release. |
postRenderers[]PostRenderer |
(Optional)
PostRenderers holds an array of Helm PostRenderers, which will be applied in order of their definition. |
HelmReleaseStatus
(Appears on: HelmRelease)
HelmReleaseStatus defines the observed state of a HelmRelease.
| Field | Description |
|---|---|
observedGenerationint64 |
(Optional)
ObservedGeneration is the last observed generation. |
ReconcileRequestStatusgithub.com/fluxcd/pkg/apis/meta.ReconcileRequestStatus |
(Members of |
conditions[]Kubernetes meta/v1.Condition |
(Optional)
Conditions holds the conditions for the HelmRelease. |
lastAppliedRevisionstring |
(Optional)
LastAppliedRevision is the revision of the last successfully applied source. |
lastAttemptedRevisionstring |
(Optional)
LastAttemptedRevision is the revision of the last reconciliation attempt. |
lastAttemptedValuesChecksumstring |
(Optional)
LastAttemptedValuesChecksum is the SHA1 checksum of the values of the last reconciliation attempt. |
lastReleaseRevisionint |
(Optional)
LastReleaseRevision is the revision of the last successful Helm release. |
helmChartstring |
(Optional)
HelmChart is the namespaced name of the HelmChart resource created by the controller for the HelmRelease. |
failuresint64 |
(Optional)
Failures is the reconciliation failure count against the latest desired state. It is reset after a successful reconciliation. |
installFailuresint64 |
(Optional)
InstallFailures is the install failure count against the latest desired state. It is reset after a successful reconciliation. |
upgradeFailuresint64 |
(Optional)
UpgradeFailures is the upgrade failure count against the latest desired state. It is reset after a successful reconciliation. |
Image
(Appears on: Kustomize)
Image contains an image name, a new name, a new tag or digest, which will replace the original name and tag.
| Field | Description |
|---|---|
namestring |
Name is a tag-less image name. |
newNamestring |
NewName is the value used to replace the original name. |
newTagstring |
NewTag is the value used to replace the original tag. |
digeststring |
Digest is the value used to replace the original image tag. If digest is present NewTag value is ignored. |
Install
(Appears on: HelmReleaseSpec)
Install holds the configuration for Helm install actions performed for this HelmRelease.
| Field | Description |
|---|---|
timeoutKubernetes meta/v1.Duration |
(Optional)
Timeout is the time to wait for any individual Kubernetes operation (like Jobs for hooks) during the performance of a Helm install action. Defaults to ‘HelmReleaseSpec.Timeout’. |
remediationInstallRemediation |
(Optional)
Remediation holds the remediation configuration for when the Helm install action for the HelmRelease fails. The default is to not perform any action. |
disableWaitbool |
(Optional)
DisableWait disables the waiting for resources to be ready after a Helm install has been performed. |
disableHooksbool |
(Optional)
DisableHooks prevents hooks from running during the Helm install action. |
disableOpenAPIValidationbool |
(Optional)
DisableOpenAPIValidation prevents the Helm install action from validating rendered templates against the Kubernetes OpenAPI Schema. |
replacebool |
(Optional)
Replace tells the Helm install action to re-use the ‘ReleaseName’, but only if that name is a deleted release which remains in the history. |
skipCRDsbool |
(Optional)
SkipCRDs tells the Helm install action to not install any CRDs. By default, CRDs are installed if not already present. |
createNamespacebool |
(Optional)
CreateNamespace tells the Helm install action to create the HelmReleaseSpec.TargetNamespace if it does not exist yet. On uninstall, the namespace will not be garbage collected. |
InstallRemediation
(Appears on: Install)
InstallRemediation holds the configuration for Helm install remediation.
| Field | Description |
|---|---|
retriesint |
(Optional)
Retries is the number of retries that should be attempted on failures before bailing. Remediation, using an uninstall, is performed between each attempt. Defaults to ‘0’, a negative integer equals to unlimited retries. |
ignoreTestFailuresbool |
(Optional)
IgnoreTestFailures tells the controller to skip remediation when the Helm tests are run after an install action but fail. Defaults to ‘Test.IgnoreFailures’. |
remediateLastFailurebool |
(Optional)
RemediateLastFailure tells the controller to remediate the last failure, when no retries remain. Defaults to ‘false’. |
KubeConfig
(Appears on: HelmReleaseSpec)
KubeConfig references a Kubernetes secret that contains a kubeconfig file.
| Field | Description |
|---|---|
secretRefgithub.com/fluxcd/pkg/apis/meta.LocalObjectReference |
SecretRef holds the name to a secret that contains a ‘value’ key with
the kubeconfig file as the value. It must be in the same namespace as
the HelmRelease.
It is recommended that the kubeconfig is self-contained, and the secret
is regularly updated if credentials such as a cloud-access-token expire.
Cloud specific |
Kustomize
(Appears on: PostRenderer)
Kustomize Helm PostRenderer specification.
| Field | Description |
|---|---|
patchesStrategicMerge[]Kubernetes pkg/apis/apiextensions/v1.JSON |
(Optional)
Strategic merge patches, defined as inline YAML objects. |
patchesJson6902[]PatchJSON6902 |
(Optional)
JSON 6902 patches, defined as inline YAML objects. |
images[]Image |
(Optional)
Images is a list of (image name, new name, new tag or digest) for changing image names, tags or digests. This can also be achieved with a patch, but this operator is simpler to specify. |
PatchJSON6902
(Appears on: Kustomize)
PatchJSON6902 contains a JSON patch and the target it applies to.
| Field | Description |
|---|---|
patch[]Kubernetes pkg/apis/apiextensions/v1.JSON |
Patch is the YAML content of a patch. |
targetSelector |
Target points to the resources that the patch is applied to. |
PostRenderer
(Appears on: HelmReleaseSpec)
PostRenderer contains a Helm PostRenderer specification.
| Field | Description |
|---|---|
kustomizeKustomize |
(Optional)
Kustomization to apply as PostRenderer. |
Remediation
Remediation defines a consistent interface for InstallRemediation and UpgradeRemediation.
RemediationStrategy
(string alias)
(Appears on: UpgradeRemediation)
RemediationStrategy returns the strategy to use to remediate a failed install or upgrade.
Rollback
(Appears on: HelmReleaseSpec)
Rollback holds the configuration for Helm rollback actions for this HelmRelease.
| Field | Description |
|---|---|
timeoutKubernetes meta/v1.Duration |
(Optional)
Timeout is the time to wait for any individual Kubernetes operation (like Jobs for hooks) during the performance of a Helm rollback action. Defaults to ‘HelmReleaseSpec.Timeout’. |
disableWaitbool |
(Optional)
DisableWait disables the waiting for resources to be ready after a Helm rollback has been performed. |
disableHooksbool |
(Optional)
DisableHooks prevents hooks from running during the Helm rollback action. |
recreatebool |
(Optional)
Recreate performs pod restarts for the resource if applicable. |
forcebool |
(Optional)
Force forces resource updates through a replacement strategy. |
cleanupOnFailbool |
(Optional)
CleanupOnFail allows deletion of new resources created during the Helm rollback action when it fails. |
Selector
(Appears on: PatchJSON6902)
Selector specifies a set of resources. Any resource that matches intersection of all conditions is included in this set.
| Field | Description |
|---|---|
GvkGvk |
(Members of |
namespacestring |
|
namestring |
|
annotationSelectorstring |
AnnotationSelector is a string that follows the label selection expression https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api It matches with the resource annotations. |
labelSelectorstring |
LabelSelector is a string that follows the label selection expression https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api It matches with the resource labels. |
Test
(Appears on: HelmReleaseSpec)
Test holds the configuration for Helm test actions for this HelmRelease.
| Field | Description |
|---|---|
enablebool |
(Optional)
Enable enables Helm test actions for this HelmRelease after an Helm install or upgrade action has been performed. |
timeoutKubernetes meta/v1.Duration |
(Optional)
Timeout is the time to wait for any individual Kubernetes operation during the performance of a Helm test action. Defaults to ‘HelmReleaseSpec.Timeout’. |
ignoreFailuresbool |
(Optional)
IgnoreFailures tells the controller to skip remediation when the Helm tests are run but fail. Can be overwritten for tests run after install or upgrade actions in ‘Install.IgnoreTestFailures’ and ‘Upgrade.IgnoreTestFailures’. |
Uninstall
(Appears on: HelmReleaseSpec)
Uninstall holds the configuration for Helm uninstall actions for this HelmRelease.
| Field | Description |
|---|---|
timeoutKubernetes meta/v1.Duration |
(Optional)
Timeout is the time to wait for any individual Kubernetes operation (like Jobs for hooks) during the performance of a Helm uninstall action. Defaults to ‘HelmReleaseSpec.Timeout’. |
disableHooksbool |
(Optional)
DisableHooks prevents hooks from running during the Helm rollback action. |
keepHistorybool |
(Optional)
KeepHistory tells Helm to remove all associated resources and mark the release as deleted, but retain the release history. |
Upgrade
(Appears on: HelmReleaseSpec)
Upgrade holds the configuration for Helm upgrade actions for this HelmRelease.
| Field | Description |
|---|---|
timeoutKubernetes meta/v1.Duration |
(Optional)
Timeout is the time to wait for any individual Kubernetes operation (like Jobs for hooks) during the performance of a Helm upgrade action. Defaults to ‘HelmReleaseSpec.Timeout’. |
remediationUpgradeRemediation |
(Optional)
Remediation holds the remediation configuration for when the Helm upgrade action for the HelmRelease fails. The default is to not perform any action. |
disableWaitbool |
(Optional)
DisableWait disables the waiting for resources to be ready after a Helm upgrade has been performed. |
disableHooksbool |
(Optional)
DisableHooks prevents hooks from running during the Helm upgrade action. |
disableOpenAPIValidationbool |
(Optional)
DisableOpenAPIValidation prevents the Helm upgrade action from validating rendered templates against the Kubernetes OpenAPI Schema. |
forcebool |
(Optional)
Force forces resource updates through a replacement strategy. |
preserveValuesbool |
(Optional)
PreserveValues will make Helm reuse the last release’s values and merge in overrides from ‘Values’. Setting this flag makes the HelmRelease non-declarative. |
cleanupOnFailbool |
(Optional)
CleanupOnFail allows deletion of new resources created during the Helm upgrade action when it fails. |
UpgradeRemediation
(Appears on: Upgrade)
UpgradeRemediation holds the configuration for Helm upgrade remediation.
| Field | Description |
|---|---|
retriesint |
(Optional)
Retries is the number of retries that should be attempted on failures before bailing. Remediation, using ‘Strategy’, is performed between each attempt. Defaults to ‘0’, a negative integer equals to unlimited retries. |
ignoreTestFailuresbool |
(Optional)
IgnoreTestFailures tells the controller to skip remediation when the Helm tests are run after an upgrade action but fail. Defaults to ‘Test.IgnoreFailures’. |
remediateLastFailurebool |
(Optional)
RemediateLastFailure tells the controller to remediate the last failure, when no retries remain. Defaults to ‘false’ unless ‘Retries’ is greater than 0. |
strategyRemediationStrategy |
(Optional)
Strategy to use for failure remediation. Defaults to ‘rollback’. |
ValuesReference
(Appears on: HelmReleaseSpec)
ValuesReference contains a reference to a resource containing Helm values, and optionally the key they can be found at.
| Field | Description |
|---|---|
kindstring |
Kind of the values referent, valid values are (‘Secret’, ‘ConfigMap’). |
namestring |
Name of the values referent. Should reside in the same namespace as the referring resource. |
valuesKeystring |
(Optional)
ValuesKey is the data key where the values.yaml or a specific value can be found at. Defaults to ‘values.yaml’. |
targetPathstring |
(Optional)
TargetPath is the YAML dot notation path the value should be merged at. When set, the ValuesKey is expected to be a single flat value. Defaults to ‘None’, which results in the values getting merged at the root. |
optionalbool |
(Optional)
Optional marks this ValuesReference as optional. When set, a not found error for the values reference is ignored, but any ValuesKey, TargetPath or transient error will still result in a reconciliation failure. |
This page was automatically generated with gen-crd-api-reference-docs