IssueRaiser

Cannot apply CRD and a CR using it in the same plan/apply due to SSA

<!--- Hi, please provide as much information as possible when asking your question. Please understand that we make a best effort attempt to address questions, but our focus is on provider development. It's still valuable to ask your question because you may receive help from the community, and help us understand common asks. If you prefer, you can also ask your question in the Kubernetes community Slack channel [#terraform-providers](https://kubernetes.slack.com/messages/CJY6ATQH4). ([Sign up here](http://slack.k8s.io/)) --> ## Terraform version, Kubernetes provider version and Kubernetes version ``` Terraform version: 0.14.11 Kubernetes Provider version: 2.4.1 Kubernetes version: EKS 1.17 ``` ## Terraform configuration There is a bit going on here, but essentially this is the output from the terraform_flux_provder, and through some HCL abuse I'm massaging it into the right format. ```hcl resource "kubernetes_manifest" "install" { for_each = { for manifest in local.install_manifest : join("-", [manifest.kind, manifest.metadata.name]) => manifest } depends_on = [kubernetes_namespace.flux_system] manifest = each.value } resource "kubernetes_manifest" "sync" { for_each = { for manifest in local.sync_manifest : join("-", [manifest.kind, manifest.metadata.name]) => manifest } depends_on = [kubernetes_manifest.install] manifest = each.value } ``` ## Question Essentially I am using the `kubernetes_manifest` resource, and am trying to: 1. Deploy some custom r

Posted by heschlie on Aug 12, 2021, 7:23 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,000 issues0 comments

onboarding (Sysadmin)

Cannot apply CRD and a CR using it in the same plan/apply due to SSA

heschlieAug 12, 2021, 7:23 PM

<!--- Hi, please provide as much information as possible when asking your question. Please understand that we make a best effort attempt to address questions, but our focus is on provider development. It's still valuable to ask your question because you may receive help from the community, and help us understand common asks. If you prefer, you can also ask your question in the Kubernetes community Slack channel [#terraform-providers](https://kubernetes.slack.com/messages/CJY6ATQH4). ([Sign up here](http://slack.k8s.io/)) --> ## Terraform version, Kubernetes provider version and Kubernetes version ``` Terraform version: 0.14.11 Kubernetes Provider version: 2.4.1 Kubernetes version: EKS 1.17 ``` ## Terraform configuration There is a bit going on here, but essentially this is the output from the terraform_flux_provder, and through some HCL abuse I'm massaging it into the right format. ```hcl resource "kubernetes_manifest" "install" { for_each = { for manifest in local.install_manifest : join("-", [manifest.kind, manifest.metadata.name]) => manifest } depends_on = [kubernetes_namespace.flux_system] manifest = each.value } resource "kubernetes_manifest" "sync" { for_each = { for manifest in local.sync_manifest : join("-", [manifest.kind, manifest.metadata.name]) => manifest } depends_on = [kubernetes_manifest.install] manifest = each.value } ``` ## Question Essentially I am using the `kubernetes_manifest` resource, and am trying to: 1. Deploy some custom r

Comments (0)

No comments yet. Start the discussion.

Comment on this issue