flux v2.9.5

HelmRelease.spec.postRenderers[].kustomize.patches[].target.spec.upgrade

Upgrade holds the configuration for Helm upgrade actions for this HelmRelease.

15 fields
HelmRelease.spec.postRenderers[].kustomize.patches[].target.spec.upgrade fields and descriptions
Field / TypeDescription
chartNameChangeStrategy
string

ChartNameChangeStrategy defines the strategy to use when a Helm chart name changes. Valid values are 'Reinstall' or 'InPlaceUpdate'. Defaults to 'Reinstall' if omitted. Reinstall: Reinstall the Helm release, uninstalling the existing Helm release. InPlaceUpdate: Update the Helm release in place.

  • enum: ["InPlaceUpdate","Reinstall"]
cleanupOnFail
boolean

CleanupOnFail allows deletion of new resources created during the Helm upgrade action when it fails.

crds
string

CRDs upgrade CRDs from the Helm Chart's crds directory according to the CRD upgrade policy provided here. Valid values are `Skip`, `Create` or `CreateReplace`. Default is `Skip` and if omitted CRDs are neither installed nor upgraded. Skip: do neither install nor replace (update) any CRDs. Create: new CRDs are created, existing CRDs are neither updated nor deleted. CreateReplace: new CRDs are created, existing CRDs are updated (replaced) but not deleted. By default, CRDs are not applied during Helm upgrade action. With this option users can opt-in to CRD upgrade, which is not (yet) natively supported by Helm. https://helm.sh/docs/chart_best_practices/custom_resource_definitions.

  • enum: ["Skip","Create","CreateReplace"]
disableHooks
boolean

DisableHooks prevents hooks from running during the Helm upgrade action.

disableOpenAPIValidation
boolean

DisableOpenAPIValidation prevents the Helm upgrade action from validating rendered templates against the Kubernetes OpenAPI Schema.

disableSchemaValidation
boolean

DisableSchemaValidation prevents the Helm upgrade action from validating the values against the JSON Schema.

disableTakeOwnership
boolean

DisableTakeOwnership disables taking ownership of existing resources during the Helm upgrade action. Defaults to false.

disableWait
boolean

DisableWait disables the waiting for resources to be ready after a Helm upgrade has been performed.

disableWaitForJobs
boolean

DisableWaitForJobs disables waiting for jobs to complete after a Helm upgrade has been performed.

force
boolean

Force forces resource updates through a replacement strategy that avoids 3-way merge conflicts on client-side apply. This field is ignored for server-side apply (which always forces conflicts with other field managers).

preserveValues
boolean

PreserveValues will make Helm reuse the last release's values and merge in overrides from 'Values'. Setting this flag makes the HelmRelease non-declarative.

object

Remediation holds the remediation configuration for when the Helm upgrade action for the HelmRelease fails. The default is to not perform any action.

serverSideApply
string

ServerSideApply enables server-side apply for resources during upgrade. Can be "enabled", "disabled", or "auto". When "auto", server-side apply usage will be based on the release's previous usage. Defaults to "auto".

  • enum: ["enabled","disabled","auto"]
object

Strategy defines the upgrade strategy to use for this HelmRelease. Defaults to 'RemediateOnFailure', or 'RetryOnFailure' when the DefaultToRetryOnFailure feature gate is enabled.

  • x-kubernetes-validations: [{"message":".retryInterval can only be set when .name is 'RetryOnFailure'","rule":"!has(self.retryInterval) || self.name == 'RetryOnFailure'"}]
timeout
string

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'.

  • pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$