Skip to content

Commit

Permalink
fix: Correct ConfigManagement hierarchyController definition (#861)
Browse files Browse the repository at this point in the history
Co-authored-by: Gabriel Kanatschnig <gabriel.kanatschnig@twinformatics.at>
  • Loading branch information
unlimitedbits and Gabriel Kanatschnig authored Apr 8, 2021
1 parent 18ad6aa commit 062bd5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/k8s-operator-crd-support/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ locals {
manifest_path = local.should_download_manifest ? "${path.root}/.terraform/tmp/${var.project_id}-${var.cluster_name}/config-management-operator.yaml" : var.operator_path
sync_branch_node = var.sync_branch != "" ? format("syncBranch: %s", var.sync_branch) : ""
policy_dir_node = var.policy_dir != "" ? format("policyDir: %s", var.policy_dir) : ""
hierarchy_controller_map_node = var.hierarchy_controller == null ? "" : format("hierarchy_controller:\n %s", yamlencode(var.hierarchy_controller))
hierarchy_controller_map_node = var.hierarchy_controller == null ? "" : format("hierarchyController:\n %s", indent(4, replace(yamlencode(var.hierarchy_controller), "/((?:^|\n)[\\s-]*)\"([\\w-]+)\":/", "$1$2:")))
source_format_node = var.source_format != "" ? format("sourceFormat: %s", var.source_format) : ""
append_arg_use_existing_context_for_gatekeeper = var.use_existing_context ? "USE_EXISTING_CONTEXT_ARG" : ""
}
Expand Down

0 comments on commit 062bd5e

Please sign in to comment.