Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Severity1 fix 741 #745

Merged
merged 3 commits into from
Jun 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions deploy/helm/sumologic/conf/setup/resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
3 changes: 1 addition & 2 deletions deploy/helm/sumologic/conf/setup/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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