Open kacurez opened 4 months ago
Same here
I'm having the same behaviour (with the same error stack) with version 2.31.0. When I apply the ApplicationSet manually through kubectl apply -f <my-appset.yaml>
, it is successfully applied.
I logged similar issue, the only difference - I use the new fancy provider function
resource "kubernetes_manifest" "argocd_application_set" {
manifest = provider::kubernetes::manifest_decode(file("argocd/application-set.yaml"))
depends_on = [helm_release.chart]
}
If anyone is interested in temporary workaround for this issue, below is the code I use for that.
# Workaround for https://github.com/hashicorp/terraform-provider-kubernetes/issues/2580
module "kubectl-argocd-application-set" {
source = "terraform-google-modules/gcloud/google//modules/kubectl-wrapper"
version = "~> 3.4"
project_id = local.gcp_project_id
cluster_name = module.gke.name
cluster_location = module.gke.location
module_depends_on = [module.gke.endpoint]
kubectl_create_command = "kubectl create -f argocd/application-set.yaml"
kubectl_destroy_command = "kubectl delete -f argocd/application-set.yaml"
skip_download = true
}
Terraform Version, Provider Version and Kubernetes Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/kacurez/d823f2de22766dbf8f4ba45df7a72447
Panic Output
https://gist.github.com/kacurez/d823f2de22766dbf8f4ba45df7a72447
Steps to Reproduce
terraform init
terraform plan
Expected Behavior
terraform plan
doesn't crash and succeed to plan. Consequentterraform apply
works as well by creatingApplicationSet
CRActual Behavior
terraform plan
crashes, see https://gist.github.com/kacurez/d823f2de22766dbf8f4ba45df7a72447Important Factoids
If I run it with a single git generator then it works, for example:
so the problem is most likely related to the
generators
array failing to proceed with 2 items.References
Community Note