Skip to content

Module is not redeployed if only helm hook changed in the template #408

@nabokihms

Description

@nabokihms

Addon-operator compares checksums of the current and previous helm templates. However, helm hooks are not included in manifests.

// ShouldRunHelmUpgrade tells if there is a case to run `helm upgrade`:
// - Helm chart in not installed yet.
// - Last release has FAILED status.
// - Checksum in release values not equals to checksum argument.
// - Some resources installed previously are missing.
//
// If all these conditions aren't met, helm upgrade can be skipped.
func (m *Module) ShouldRunHelmUpgrade(helmClient client.HelmClient, releaseName string, checksum string, manifests []manifest.Manifest, logLabels map[string]string) (bool, error) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions