Skip to content

Rollback feature doesn't work as expected.  #219

@johnathan-sq

Description

@johnathan-sq

What happened?

When I try to rollback a feature the provider will detect that that status is out of sync from Helm and try to update the release to match the deployed state. This ends up resulting in a continuous loop of rollback.

How can we reproduce it?

  1. (This will succeed)
apiVersion: helm.crossplane.io/v1beta1
kind: Release
metadata:
  name: wordpress-example-4
spec:
  rollbackLimit: 1
  forProvider:
    chart:
      name: generic-deployment
      repository: https://johnathan-sq.github.io/charts/
      version: "0.2.0"
    namespace: wordpress-4
    wait: true
    waitTimeout: 15s
    values:
      replicaCount: 1
      image:
        repository: nginx
        pullPolicy: IfNotPresent
        tag: "latest"
  providerConfigRef:
    name: helm-provider
  1. (This will break it, note the nginxx)
apiVersion: helm.crossplane.io/v1beta1
kind: Release
metadata:
  name: wordpress-example-4
spec:
  rollbackLimit: 1
  forProvider:
    chart:
      name: generic-deployment
      repository: https://johnathan-sq.github.io/charts/
      version: "0.2.0"
    namespace: wordpress-4
    wait: true
    waitTimeout: 15s
    values:
      replicaCount: 1
      image:
        repository: nginxx
        pullPolicy: IfNotPresent
        tag: "latest"
  providerConfigRef:
    name: helm-provider

Then you will see that there will be a continuous loop of rollbacks because the deployed Release doesn't match the Helm release.

What environment did it happen in?

Crossplane version: v1.15
Provider Helm: 0.17

Unless I'm doing something wrong or have something configured incorrectly, happy to call me out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions