Skip to content

Commit

Permalink
don't use data item for plan
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Mar 17, 2025
1 parent 7bf03a0 commit 23cb906
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
|------|------|
| [helm_release.kiali_operator](https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release) | resource |
| [kubernetes_namespace.ns](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/namespace) | resource |
| [kubernetes_namespace.operators](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/data-sources/namespace) | data source |

## Inputs

Expand Down
8 changes: 1 addition & 7 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ CONFIG
service_name = var.namespace
}

data "kubernetes_namespace" "operators" {
metadata {
name = var.operator_namespace
}
}

resource "kubernetes_namespace" "ns" {
metadata {
name = var.namespace
Expand Down Expand Up @@ -93,7 +87,7 @@ resource "helm_release" "kiali_operator" {

set {
name = "watchNamespace"
value = data.kubernetes_namespace.operators.metadata[0].name
value = var.operator_namespace
}
set {
name = "env[0].name"
Expand Down

0 comments on commit 23cb906

Please sign in to comment.