@@ -15,17 +15,18 @@ vars:
1515 OCM_VERSION : 0.29.0
1616 COMPONENT_PRERELEASE_VERSION : " 1.0.0"
1717 CUSTOM_LOCAL_COMPONENTS_CHART_PATHS :
18- - account-operator : charts/account-operator
19- - security-operator : charts/security-operator
20- - extension-manager-operator : charts/extension-manager-operator
18+ # - account-operator: charts/account-operator
19+ # - security-operator: charts/security-operator
20+ # - extension-manager-operator: charts/extension-manager-operator
2121 - infra : charts/infra
22- - rebac-authz-webhook : charts/rebac-authz-webhook
23- - platform-mesh : charts/platform-mesh-operator
24- - portal : charts/portal
25- - platform-mesh-operator : charts/platform-mesh-operator
26- - kubernetes-graphql-gateway : charts/kubernetes-graphql-gateway
27- - virtual-workspaces : charts/virtual-workspaces
28- - platform-mesh-operator-components : charts/platform-mesh-operator-components
22+ # - rebac-authz-webhook: charts/rebac-authz-webhook
23+ # - platform-mesh: charts/platform-mesh-operator
24+ # - portal: charts/portal
25+ # - platform-mesh-operator: charts/platform-mesh-operator
26+ # - kubernetes-graphql-gateway: charts/kubernetes-graphql-gateway
27+ # - virtual-workspaces: charts/virtual-workspaces
28+ # - platform-mesh-operator-components: charts/platform-mesh-operator-components
29+ - test123 : charts/test123
2930 COMPONENT_VERSION_FIX_DEPEDENCY_VERSIONS : []
3031 # - keycloak: 24.8.1
3132 CMD_SED :
@@ -448,10 +449,18 @@ tasks:
448449 patch_string=""
449450 for pair in {{ range .CUSTOM_LOCAL_COMPONENTS_CHART_PATHS }}"{{ range $k,$v := . }}{{$k}}:{{$v}}{{ end }}" {{ end }}; do
450451 comp="${pair%%:*}"
451- patch_string+=$(cat <<EOF
452+
453+ # 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
454+ if ! yq -e ".spec.values[\"$comp\"]" local-setup/kustomize/components/platform-mesh-operator-resource/platform-mesh.yaml > /dev/null; then
455+ patch_string+=$(cat <<EOF
452456 - op: add
453457 path: /spec/values/$comp
454458 value: {}
459+ EOF
460+ )
461+ patch_string+=$'\n'
462+ fi
463+ patch_string+=$(cat <<EOF
455464 - op: add
456465 path: /spec/values/$comp/ocm
457466 value: {}
0 commit comments