Skip to content

Commit

Permalink
add lifecycle to kiali_grafana secret
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Mar 11, 2025
1 parent cedce6c commit 4f091f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ resource "kubernetes_secret" "kiali_grafana" {
data = {
grafana_password = data.kubernetes_secret.grafana_admin.data["admin-password"]
}
lifecycle {
ignore_changes = [metadata]
}
}

# data "kubernetes_namespace" "keycloak" {
Expand Down Expand Up @@ -96,7 +99,7 @@ resource "helm_release" "kiali_operator" {
}
set {
name = "grafanaSecretName"
value = "kiali"
value = kubernetes_secret.kiali_grafana.metadata[0].name
}
set {
name = "grafanaPasswordKey"
Expand Down

0 comments on commit 4f091f7

Please sign in to comment.