diff --git a/devspaces-operator-bundle/build/scripts/sync-che-olm.sh b/devspaces-operator-bundle/build/scripts/sync-che-olm.sh index 0aca61a702..73e3da7de4 100755 --- a/devspaces-operator-bundle/build/scripts/sync-che-olm.sh +++ b/devspaces-operator-bundle/build/scripts/sync-che-olm.sh @@ -286,10 +286,13 @@ for CSVFILE in ${TARGETDIR}/manifests/devspaces.csv.yaml; do V1_EXAMPLE=$(echo "$ALM_EXAMPLES" | yq '(.[] | select(.apiVersion=="org.eclipse.che/v1"))') V2_EXAMPLE=$(echo "$ALM_EXAMPLES" | yq '(.[] | select(.apiVersion=="org.eclipse.che/v2"))') FIXED_V2_EXAMPLE=$(echo "$V2_EXAMPLE" | \ + yq 'del(.spec.components.pluginRegistry.disableInternalRegistry)' | \ + yq 'del(.spec.components.pluginRegistry | select(length == 0))') | \ yq 'del(.spec.components.devfileRegistry.disableInternalRegistry)' | \ yq 'del(.spec.components.devfileRegistry.externalDevfileRegistries)'| \ yq 'del(.spec.components.devfileRegistry | select(length == 0))') FIXED_V1_EXAMPLE=$(echo "$V1_EXAMPLE" | \ + yq 'del(.spec.server.externalPluginRegistry)' | \ yq 'del(.spec.server.externalDevfileRegistry)' | \ yq 'del(.spec.server.devfileRegistryUrl)'| \ yq 'del(.spec.server.externalDevfileRegistries)'| \ diff --git a/devspaces-operator/build/scripts/sync-che-operator.sh b/devspaces-operator/build/scripts/sync-che-operator.sh index 78bcc84794..335f6991cd 100755 --- a/devspaces-operator/build/scripts/sync-che-operator.sh +++ b/devspaces-operator/build/scripts/sync-che-operator.sh @@ -258,7 +258,9 @@ fi echo "Converted (yq #2) ${OPERATOR_DEPLOYMENT_YAML}" # https://github.com/eclipse-che/che/issues/22932 -# Updating manager.yaml is not required, see `sync-che-olm.sh` +yq -riY "del(.spec.install.spec.deployments[].spec.template.spec.containers[0].env[] | select(.name | test(\"^RELATED_IMAGE_editor_definition_\")))" "${OPERATOR_DEPLOYMENT_YAML}" +echo "Converted (yq #3) ${OPERATOR_DEPLOYMENT_YAML}" + yq -riY "(.components[] | select(.name==\"che-code-injector\") | .container.image)=\"${CODE_IMAGE}\"" "${TARGETDIR}/editors-definitions/che-code.yaml" yq -riY "(.components[] | select(.name==\"che-code-runtime-description\") | .container.image)=\"${UBI_IMAGE}\"" "${TARGETDIR}/editors-definitions/che-code.yaml" yq -riY "(.components[] | select(.name==\"idea-rhel8-injector\") | .container.image)=\"${IDEA_IMAGE}\"" "${TARGETDIR}/editors-definitions/che-idea.yaml" diff --git a/devspaces-operator/editors-definitions/che-code.yaml b/devspaces-operator/editors-definitions/che-code.yaml index 66ad23cfc1..170f8be85a 100644 --- a/devspaces-operator/editors-definitions/che-code.yaml +++ b/devspaces-operator/editors-definitions/che-code.yaml @@ -10,8 +10,8 @@ metadata: repository: https://github.com/che-incubator/che-code firstPublicationDate: '2022-07-19' skipMetaYaml: true - icon-mediatype: image/svg+xml - icon-data: | + iconMediatype: image/svg+xml + iconData: | diff --git a/devspaces-operator/editors-definitions/che-idea.yaml b/devspaces-operator/editors-definitions/che-idea.yaml index b20a750bdc..bbfaa7fd74 100644 --- a/devspaces-operator/editors-definitions/che-idea.yaml +++ b/devspaces-operator/editors-definitions/che-idea.yaml @@ -12,8 +12,8 @@ metadata: repository: https://github.com/che-incubator/jetbrains-editor-images firstPublicationDate: '2022-01-11' skipMetaYaml: true - icon-mediatype: image/svg+xml - icon-data: | + iconMediatype: image/svg+xml + iconData: |