Skip to content

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

@blakepettersson

Description

@blakepettersson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions