Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollback feature doesn't work as expected. #219

Open
johnathan-sq opened this issue Mar 31, 2024 · 0 comments
Open

Rollback feature doesn't work as expected. #219

johnathan-sq opened this issue Mar 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@johnathan-sq
Copy link

johnathan-sq commented Mar 31, 2024

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.

@johnathan-sq johnathan-sq added the bug Something isn't working label Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant