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

argocd_cm: element "admin.enabled" has vanished #143

Open
morey-tech opened this issue Oct 11, 2023 · 0 comments
Open

argocd_cm: element "admin.enabled" has vanished #143

morey-tech opened this issue Oct 11, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@morey-tech
Copy link
Contributor

morey-tech commented Oct 11, 2023

akp_instance.argocd: Modifying... [id=xxxxxxxxxxxx]
╷
│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to akp_instance.argocd, provider
│ "provider[\"registry.terraform.io/akuity/akp\"]" produced an unexpected new value: .argocd_cm: element
│ "admin.enabled" has vanished.
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

While attempting to enable the admin user by setting admin.enable = true and adding accounts.admin = login, the terraform apply shows the error above.

It seems that this is expected since the comment in the example states that "once you add that, remove the "admin.enabled" key". Introducing drift in the provider is a poor workflow for Terraform. The expectation that after enabling the admin user, it requires another change to the Terraform config to remove the admin.enabled key doesn't make sense. In a real-world use case, this would mean that the engineer would need to open a second PR to remove the key after the first change is accepted and applied.

Proposal: admin.enabled key should remain after it's set to true to avoid this confusing workflow and bug.

@morey-tech morey-tech added the bug Something isn't working label Oct 11, 2023
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