diff --git a/Taskfile.yaml b/Taskfile.yaml index 70f3ccd9..39ad2e62 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -448,10 +448,18 @@ tasks: patch_string="" for pair in {{ range .CUSTOM_LOCAL_COMPONENTS_CHART_PATHS }}"{{ range $k,$v := . }}{{$k}}:{{$v}}{{ end }}" {{ end }}; do comp="${pair%%:*}" + + # check if /spec/values/$comp exists in local-setup/kustomize/components/platform-mesh-operator-resource/platform-mesh.yaml and add it if it doesn't + if ! yq -e ".spec.values[\"$comp\"]" local-setup/kustomize/components/platform-mesh-operator-resource/platform-mesh.yaml > /dev/null; then patch_string+=$(cat <