-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add kuberhealthy as dependency for namespace check (#7)
* Add kuberhealthy as dependency for namespace check * Remove wrong comment
- Loading branch information
1 parent
163e0ec
commit 499c9fd
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
} | ||
|
@@ -49,7 +48,7 @@ resource "helm_release" "kuberhealthy" { | |
} | ||
|
||
set { | ||
name = "prometheus.prometheusRule.enabled" | ||
name = "prometheus.prometheusRule.enabled" | ||
value = "false" | ||
} | ||
|
||
|
@@ -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] | ||
} |