Skip to content

Commit

Permalink
fix: remove dependencies on kube-prometheus-chart and use crds instead
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Lefevre <[email protected]>
  • Loading branch information
ArchiFleKs committed Sep 19, 2022
1 parent a6b1360 commit 5caeac6
Show file tree
Hide file tree
Showing 21 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion cert-manager.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ resource "helm_release" "cert-manager" {
namespace = kubernetes_namespace.cert-manager.*.metadata.0.name[count.index]

depends_on = [
helm_release.kube-prometheus-stack
kubectl_manifest.prometheus-operator_crds
]
}

Expand Down
2 changes: 1 addition & 1 deletion flux.tf
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ resource "helm_release" "flux" {
namespace = kubernetes_namespace.flux.*.metadata.0.name[count.index]

depends_on = [
helm_release.kube-prometheus-stack
kubectl_manifest.prometheus-operator_crds
]
}

Expand Down
2 changes: 1 addition & 1 deletion karma.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ resource "helm_release" "karma" {
namespace = local.karma["create_ns"] ? kubernetes_namespace.karma.*.metadata.0.name[count.index] : local.karma["namespace"]

depends_on = [
helm_release.kube-prometheus-stack
kubectl_manifest.prometheus-operator_crds
]
}

Expand Down
2 changes: 1 addition & 1 deletion keda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ resource "helm_release" "keda" {
namespace = local.keda["create_ns"] ? kubernetes_namespace.keda.*.metadata.0.name[count.index] : local.keda["namespace"]

depends_on = [
helm_release.kube-prometheus-stack
kubectl_manifest.prometheus-operator_crds
]
}

Expand Down
2 changes: 1 addition & 1 deletion keycloak.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ resource "helm_release" "keycloak" {
namespace = kubernetes_namespace.keycloak.*.metadata.0.name[count.index]

depends_on = [
helm_release.kube-prometheus-stack
kubectl_manifest.prometheus-operator_crds
]
}

Expand Down
2 changes: 1 addition & 1 deletion kong.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ resource "helm_release" "kong" {
namespace = kubernetes_namespace.kong.*.metadata.0.name[count.index]

depends_on = [
helm_release.kube-prometheus-stack
kubectl_manifest.prometheus-operator_crds
]
}

Expand Down
2 changes: 1 addition & 1 deletion loki-stack.tf
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ resource "helm_release" "loki-stack" {
namespace = local.loki-stack["create_ns"] ? kubernetes_namespace.loki-stack.*.metadata.0.name[count.index] : local.loki-stack["namespace"]

depends_on = [
helm_release.kube-prometheus-stack
kubectl_manifest.prometheus-operator_crds
]
}

Expand Down
2 changes: 1 addition & 1 deletion modules/aws/cert-manager.tf
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ resource "helm_release" "cert-manager" {
namespace = kubernetes_namespace.cert-manager.*.metadata.0.name[count.index]

depends_on = [
helm_release.kube-prometheus-stack
kubectl_manifest.prometheus-operator_crds
]
}

Expand Down
2 changes: 1 addition & 1 deletion modules/aws/cluster-autoscaler.tf
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ resource "helm_release" "cluster-autoscaler" {
namespace = kubernetes_namespace.cluster-autoscaler.*.metadata.0.name[count.index]

depends_on = [
helm_release.kube-prometheus-stack
kubectl_manifest.prometheus-operator_crds
]
}

Expand Down
2 changes: 1 addition & 1 deletion modules/aws/external-dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ resource "helm_release" "external-dns" {
namespace = kubernetes_namespace.external-dns[each.key].metadata.0.name

depends_on = [
helm_release.kube-prometheus-stack
kubectl_manifest.prometheus-operator_crds
]
}

Expand Down
2 changes: 1 addition & 1 deletion modules/aws/loki-stack.tf
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ resource "helm_release" "loki-stack" {
namespace = local.loki-stack["create_ns"] ? kubernetes_namespace.loki-stack.*.metadata.0.name[count.index] : local.loki-stack["namespace"]

depends_on = [
helm_release.kube-prometheus-stack
kubectl_manifest.prometheus-operator_crds
]
}

Expand Down
2 changes: 1 addition & 1 deletion modules/aws/prometheus-cloudwatch-exporter.tf
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ resource "helm_release" "prometheus-cloudwatch-exporter" {
namespace = local.prometheus-cloudwatch-exporter["create_ns"] ? kubernetes_namespace.prometheus-cloudwatch-exporter.*.metadata.0.name[count.index] : local.prometheus-cloudwatch-exporter["namespace"]

depends_on = [
helm_release.kube-prometheus-stack
kubectl_manifest.prometheus-operator_crds
]
}

Expand Down
2 changes: 1 addition & 1 deletion modules/aws/tigera-operator.tf
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ resource "helm_release" "tigera-operator" {
namespace = local.tigera-operator["create_ns"] ? kubernetes_namespace.tigera-operator.*.metadata.0.name[count.index] : local.tigera-operator["namespace"]

depends_on = [
helm_release.kube-prometheus-stack
kubectl_manifest.prometheus-operator_crds
]
}

Expand Down
4 changes: 2 additions & 2 deletions modules/scaleway/cert-manager.tf
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ resource "helm_release" "cert-manager" {
namespace = kubernetes_namespace.cert-manager.*.metadata.0.name[count.index]

depends_on = [
helm_release.kube-prometheus-stack
kubectl_manifest.prometheus-operator_crds
]
}

Expand Down Expand Up @@ -122,7 +122,7 @@ resource "helm_release" "scaleway-webhook-dns" {
namespace = kubernetes_namespace.cert-manager.*.metadata.0.name[count.index]

depends_on = [
helm_release.kube-prometheus-stack,
kubectl_manifest.prometheus-operator_crds,
helm_release.cert-manager,
time_sleep.cert-manager_sleep
]
Expand Down
2 changes: 1 addition & 1 deletion modules/scaleway/external-dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ resource "helm_release" "external-dns" {
namespace = kubernetes_namespace.external-dns.*.metadata.0.name[count.index]

depends_on = [
helm_release.kube-prometheus-stack
kubectl_manifest.prometheus-operator_crds
]
}

Expand Down
2 changes: 1 addition & 1 deletion modules/scaleway/loki-stack.tf
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ resource "helm_release" "loki-stack" {
namespace = local.loki-stack["create_ns"] ? kubernetes_namespace.loki-stack.*.metadata.0.name[count.index] : local.loki-stack["namespace"]

depends_on = [
helm_release.kube-prometheus-stack
kubectl_manifest.prometheus-operator_crds
]
}

Expand Down
2 changes: 1 addition & 1 deletion prometheus-blackbox-exporter.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ resource "helm_release" "prometheus-blackbox-exporter" {
namespace = local.prometheus-blackbox-exporter["create_ns"] ? kubernetes_namespace.prometheus-blackbox-exporter.*.metadata.0.name[count.index] : local.prometheus-blackbox-exporter["namespace"]

depends_on = [
helm_release.kube-prometheus-stack
kubectl_manifest.prometheus-operator_crds
]
}

Expand Down
2 changes: 1 addition & 1 deletion promtail.tf
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ resource "helm_release" "promtail" {
namespace = local.promtail["namespace"]

depends_on = [
helm_release.kube-prometheus-stack,
kubectl_manifest.prometheus-operator_crds,
helm_release.loki-stack,
kubernetes_secret.loki-stack-ca,
kubernetes_secret.promtail-tls
Expand Down
2 changes: 1 addition & 1 deletion rabbitmq-operator.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ resource "helm_release" "rabbitmq-operator" {
namespace = local.rabbitmq-operator["create_ns"] ? kubernetes_namespace.rabbitmq-operator.*.metadata.0.name[count.index] : local.rabbitmq-operator["namespace"]

depends_on = [
helm_release.kube-prometheus-stack
kubectl_manifest.prometheus-operator_crds
]
}

Expand Down
2 changes: 1 addition & 1 deletion tigera-operator.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ resource "helm_release" "tigera-operator" {
namespace = local.tigera-operator["create_ns"] ? kubernetes_namespace.tigera-operator.*.metadata.0.name[count.index] : local.tigera-operator["namespace"]

depends_on = [
helm_release.kube-prometheus-stack
kubectl_manifest.prometheus-operator_crds
]
}

Expand Down
2 changes: 1 addition & 1 deletion traefik.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ resource "helm_release" "traefik" {
namespace = kubernetes_namespace.traefik.*.metadata.0.name[count.index]

depends_on = [
helm_release.kube-prometheus-stack,
kubectl_manifest.prometheus-operator_crds
]
}

Expand Down

0 comments on commit 5caeac6

Please sign in to comment.