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

Live state not (always?) being taken into account when doing terraform apply for akp_instance #256

Open
blakepettersson opened this issue Nov 14, 2024 · 0 comments

Comments

@blakepettersson
Copy link
Contributor

Not sure if this should be considered a bug or not, but posting for visibility:

Here's a real example:

resource "akp_instance" "argocd" {
  # ...
    repo_credential_secrets = {
    some-repo = {
      "type" = "helm"
      "name" = "default-helm"
      "url"  = "some-repo"
    }
  }
}

If some-repo gets removed outside TF (in this case by manually deleting a repo), this won't be reflected on the state, as expected. However, when running terraform apply the repo creds do not get reapplied, presumably since there's no way of knowing from the API what repo-creds are present or not. It's likely that the right thing to do is to always apply repo_credential_secrets on every terraform apply, regardless if the creds are already there or not.

AKP version 0.6.2

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

1 participant