diff --git a/deploy/helm/sumologic/conf/setup/resources.tf b/deploy/helm/sumologic/conf/setup/resources.tf index b6773f79c3..7962a9458f 100644 --- a/deploy/helm/sumologic/conf/setup/resources.tf +++ b/deploy/helm/sumologic/conf/setup/resources.tf @@ -18,16 +18,10 @@ resource "sumologic_collector" "collector" { {{- end }} {{- end }} -resource "kubernetes_namespace" "sumologic_collection_namespace" { - metadata { - name = var.namespace_name - } -} - resource "kubernetes_secret" "sumologic_collection_secret" { metadata { name = "sumologic" - namespace = kubernetes_namespace.sumologic_collection_namespace.metadata[0].name + namespace = var.namespace_name } data = { diff --git a/deploy/helm/sumologic/conf/setup/setup.sh b/deploy/helm/sumologic/conf/setup/setup.sh index 94a969f2d6..431b894d26 100644 --- a/deploy/helm/sumologic/conf/setup/setup.sh +++ b/deploy/helm/sumologic/conf/setup/setup.sh @@ -25,8 +25,7 @@ terraform import sumologic_http_source.{{ template "terraform.sources.name" (dic {{- end }} -# Kubernetes Namespace and Secret -terraform import kubernetes_namespace.sumologic_collection_namespace {{ .Release.Namespace }} +# Kubernetes Secret terraform import kubernetes_secret.sumologic_collection_secret {{ .Release.Namespace }}/sumologic terraform apply -auto-approve \ No newline at end of file