Skip to content

Commit 13ee338

Browse files
authored
Fixed indenting and duplicate entries in application-policies.yaml
This corrects Argo error: Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = Manifest generation error (cached): `helm template . --name-template acm --namespace open-cluster-management --kube-version 1.25 --set global.privateRepo=false --set global.experimentalCapabilities=initcontainers --set global.repoURL=https://github.myrepo.com/EnterpriseKubernetes/multicloud-gitops.git --set global.clusterDomain=mydomain.azure.us --set global.clusterPlatform=Azure --set global.hubClusterDomain=mydomain.azure.us --set global.localClusterDomain=mydomain.azure.us --set global.targetRevision=prod --set global.namespace=open-cluster-management --set global.pattern=ekho --set global.clusterVersion=4.12 --values <path to cached source>/values-global.yaml --values <path to cached source>/values-hub.yaml <api versions removed> --include-crds` failed exit status 1: Error: YAML parse error on acm/templates/policies/application-policies.yaml: error converting YAML to JSON: yaml: line 50: did not find expected key Use --debug flag to render out invalid YAML Also corrects mapping error warning on make preview-acm
1 parent 8855d6e commit 13ee338

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

acm/templates/policies/application-policies.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,10 @@ spec:
4444
helm:
4545
ignoreMissingValueFiles: true
4646
valueFiles:
47-
{{- include "acm.app.policies.valuefiles" . | nindent 24 }}
47+
{{- include "acm.app.policies.valuefiles" . | nindent 22 }}
4848
{{- range $valueFile := $.Values.global.extraValueFiles }}
4949
- {{ $valueFile | quote }}
5050
{{- end }}
51-
{{- range $valueFile := .extraValueFiles }}
52-
- {{ $valueFile | quote }}
53-
{{- end }}
5451
parameters:
5552
- name: global.repoURL
5653
value: {{ $.Values.global.repoURL }}

0 commit comments

Comments
 (0)