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