Skip to content

Commit

Permalink
Add kuberhealthy as dependency for namespace check (#7)
Browse files Browse the repository at this point in the history
* Add kuberhealthy as dependency for namespace check

* Remove wrong comment
  • Loading branch information
poornima-krishnasamy authored Jul 21, 2022
1 parent 163e0ec commit 499c9fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ resource "kubernetes_namespace" "kuberhealthy" {
"cloud-platform.justice.gov.uk/business-unit" = "Platforms"
"cloud-platform.justice.gov.uk/owner" = "Cloud Platform: [email protected]"
"cloud-platform.justice.gov.uk/source-code" = "https://github.com/ministryofjustice/cloud-platform-infrastructure"
# potentially "https://github.com/ministryofjustice/cloud-platform-infrastructure/blob/master/terraform/cloud-platform-components/kuberhealthy.tf"
"cloud-platform.justice.gov.uk/slack-channel" = "cloud-platform"
"cloud-platform-out-of-hours-alert" = "true"
}
Expand Down Expand Up @@ -49,7 +48,7 @@ resource "helm_release" "kuberhealthy" {
}

set {
name = "prometheus.prometheusRule.enabled"
name = "prometheus.prometheusRule.enabled"
value = "false"
}

Expand All @@ -66,6 +65,7 @@ data "kubectl_path_documents" "namespace_check_manifests" {
}

resource "kubectl_manifest" "namespacecheck_rule_alert" {
count = length(data.kubectl_path_documents.namespace_check_manifests.documents)
yaml_body = element(data.kubectl_path_documents.namespace_check_manifests.documents, count.index)
count = length(data.kubectl_path_documents.namespace_check_manifests.documents)
yaml_body = element(data.kubectl_path_documents.namespace_check_manifests.documents, count.index)
depends_on = [helm_release.kuberhealthy]
}

0 comments on commit 499c9fd

Please sign in to comment.