We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18ad6aa commit 062bd5eCopy full SHA for 062bd5e
modules/k8s-operator-crd-support/main.tf
@@ -22,7 +22,7 @@ locals {
22
manifest_path = local.should_download_manifest ? "${path.root}/.terraform/tmp/${var.project_id}-${var.cluster_name}/config-management-operator.yaml" : var.operator_path
23
sync_branch_node = var.sync_branch != "" ? format("syncBranch: %s", var.sync_branch) : ""
24
policy_dir_node = var.policy_dir != "" ? format("policyDir: %s", var.policy_dir) : ""
25
- 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:")))
26
source_format_node = var.source_format != "" ? format("sourceFormat: %s", var.source_format) : ""
27
append_arg_use_existing_context_for_gatekeeper = var.use_existing_context ? "USE_EXISTING_CONTEXT_ARG" : ""
28
}
0 commit comments