From 21cd9e2705935e706fe633aa25f9b7b8c9187488 Mon Sep 17 00:00:00 2001 From: Martin Jackson Date: Mon, 24 Jan 2022 13:55:31 -0600 Subject: [PATCH] Don't conditionalize lookups when we know we need them --- acm/templates/policies/application-policies.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/acm/templates/policies/application-policies.yaml b/acm/templates/policies/application-policies.yaml index 2dd2240..5ab3d8b 100644 --- a/acm/templates/policies/application-policies.yaml +++ b/acm/templates/policies/application-policies.yaml @@ -58,11 +58,7 @@ spec: - name: global.hubClusterDomain value: {{ $.Values.global.hubClusterDomain }} - name: global.localClusterDomain - {{- if $.Values.clusterGroup.isHubCluster }} - value: {{ $.Values.global.hubClusterDomain }} - {{- else }} value: '{{ `{{ (lookup "config.openshift.io/v1" "Ingress" "" "cluster").spec.domain }}` }}' - {{- end }} {{- range .helmOverrides }} - name: {{ .name }} value: {{ .value | quote }}