Skip to content

Handle updates to statefulset immutable fields correctly #84

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

Closed
pst opened this issue Feb 22, 2021 · 0 comments
Closed

Handle updates to statefulset immutable fields correctly #84

pst opened this issue Feb 22, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@pst
Copy link
Member

pst commented Feb 22, 2021

The provider should generate a delete and re-create plan for the resource in question. Just like it does for label_selector changes to deployments.

Error: github.com/kbst/terraform-provider-kustomize/kustomize.kustomizationResourceDiff: apiVersion: "apps/v1", kind: "StatefulSet", namespace: "argocd" name: "argocd-application-controllertest": patch failed 'application/strategic-merge-patch+json': StatefulSet.apps "argocd-application-controllertest" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden
@pst pst added the bug Something isn't working label Feb 22, 2021
@pst pst closed this as completed in 8c9aa1c Feb 25, 2021
pst added a commit that referenced this issue Feb 25, 2021
Handle forbidden fields for statefulsets with forcenew plan fix #84
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