Skip to content

Commit

Permalink
adjust dynamic env_from_secret
Browse files Browse the repository at this point in the history
  • Loading branch information
jdongo-aneo committed Jul 29, 2024
1 parent 2644846 commit 09738ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions armonik/compute-plane.tf
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ resource "kubernetes_deployment" "compute_plane" {
}
#env from secret
dynamic "env" {
for_each = { for k, v in jsondecode(jsonencode(module.polling_agent_aggregation[each.key].env_from_secret)) : k => v }
for_each = module.polling_agent_aggregation[each.key].env_from_secret
content {
name = env.key
value_from {
Expand Down Expand Up @@ -318,7 +318,7 @@ resource "kubernetes_deployment" "compute_plane" {
}
#env from secret
dynamic "env" {
for_each = { for k, v in jsondecode(jsonencode(module.worker_aggregation[each.key].env_from_secret)) : k => v }
for_each = module.worker_aggregation[each.key].env_from_secret
content {
name = env.key
value_from {
Expand Down
2 changes: 1 addition & 1 deletion armonik/control-plane.tf
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ resource "kubernetes_deployment" "control_plane" {
}
#env from secret
dynamic "env" {
for_each = { for k, v in jsondecode(jsonencode(module.control_plane_aggregation.env_from_secret)) : k => v }
for_each = module.control_plane_aggregation.env_from_secret
content {
name = env.key
value_from {
Expand Down
2 changes: 1 addition & 1 deletion armonik/metrics-exporter.tf
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ resource "kubernetes_deployment" "metrics_exporter" {
}
#env from secret
dynamic "env" {
for_each = { for k, v in jsondecode(jsonencode(module.metrics_aggregation.env_from_secret)) : k => v }
for_each = module.metrics_aggregation.env_from_secret
content {
name = env.key
value_from {
Expand Down

0 comments on commit 09738ff

Please sign in to comment.