Skip to content

Commit

Permalink
fix: Argo and Keda TF plan repeated changes gitops example (#1120)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zvikan authored and vara-bonthu committed Nov 11, 2022
1 parent ea9c69f commit ee2fe66
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions examples/gitops/argocd/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,16 @@ module "eks_blueprints_kubernetes_addons" {
set_sensitive = [
{
name = "configs.secret.argocdServerAdminPassword"
value = bcrypt(data.aws_secretsmanager_secret_version.admin_password_version.secret_string)
value = random_password.argocd.result
}
]
}

keda_helm_config = {
values = [
{
name = "serviceAccount.create"
value = "false"
}
]
}
Expand Down Expand Up @@ -134,12 +143,6 @@ resource "aws_secretsmanager_secret_version" "arogcd" {
secret_string = random_password.argocd.result
}

data "aws_secretsmanager_secret_version" "admin_password_version" {
secret_id = aws_secretsmanager_secret.arogcd.id

depends_on = [aws_secretsmanager_secret_version.arogcd]
}

#---------------------------------------------------------------
# Supporting Resources
#---------------------------------------------------------------
Expand Down

0 comments on commit ee2fe66

Please sign in to comment.