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

Error when upgrade Chart from 0.21.0 to 1.0.0 #292

Open
DevSecOps-Isotrol opened this issue Jun 28, 2024 · 2 comments
Open

Error when upgrade Chart from 0.21.0 to 1.0.0 #292

DevSecOps-Isotrol opened this issue Jun 28, 2024 · 2 comments

Comments

@DevSecOps-Isotrol
Copy link

Hello

The last major upgrade of Incubator Devlake Chart generates the next error:

Failed sync attempt to : one or more objects failed to apply, reason: Deployment.apps "devlake-grafana" is invalid: spec.strategy.rollingUpdate: Forbidden: may not be specified when strategy type is 'Recreate' (retried 5 times).

I have RollingUpdate configured in Lake section:

 lake:
  strategy:
    type: RollingUpdate

In the Values file I can't config anything about Grafana strategy, so I suposse that it is configured in the Template, because Argo tries to change this element from Recreate to RollingUpdate.

To solve this problem I have configured an ingnore differences in the Argo Application file:

  - group: apps
    kind: Deployment
    name: devlake-grafana
    jsonPointers:
      - /spec/strategy

Could you review this issue, please?
Thanks

@DevSecOps-Isotrol DevSecOps-Isotrol changed the title Error when upgrade from 0.21.0 to 1.0.0 Error when upgrade Chart from 0.21.0 to 1.0.0 Jun 28, 2024
@ZhangNing10
Copy link
Contributor

hi @DevSecOps-Isotrol , https://github.com/apache/incubator-devlake-helm-chart/blob/main/charts/devlake/values.yaml#L155 this line specifies the grafana update policy to recreate, did your values file specify rollingupdate which is forbidden when policy is recreate

@DevSecOps-Isotrol
Copy link
Author

Thanks @ZhangNing10 , I downloaded the wrong values file and including the deploymentStrategy in Grafana section it works properly. But if I don't include this config in the custom values it tries to apply a change from Recreate to Rolling Update strategy and it is wrong, because Recreate is the config by default.
Anyway, it is working fine including this config. Thank you again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants