File tree 3 files changed +6
-22
lines changed
che-plugin-registry/deploy/openshift
3 files changed +6
-22
lines changed Original file line number Diff line number Diff line change 1
- 3.17
1
+ 3.18
Original file line number Diff line number Diff line change 1
- #
2
- # Copyright (c) 2018-2023 Red Hat, Inc.
3
- # This program and the accompanying materials are made
4
- # available under the terms of the Eclipse Public License 2.0
5
- # which is available at https://www.eclipse.org/legal/epl-2.0/
6
- #
7
- # SPDX-License-Identifier: EPL-2.0
8
- #
9
- # Contributors:
10
- # Red Hat, Inc. - initial API and implementation
11
1
apiVersion : template.openshift.io/v1
12
2
kind : Template
13
3
metadata :
@@ -117,9 +107,10 @@ parameters:
117
107
- name : IMAGE
118
108
value : registry.redhat.io/devspaces/pluginregistry-rhel8
119
109
displayName : Red Hat OpenShift Dev Spaces plugin registry image
120
- description : Red Hat OpenShift Dev Spaces plugin registry container image. Defaults to registry.redhat.io/devspaces/pluginregistry-rhel8
110
+ description : Red Hat OpenShift Dev Spaces plugin registry container image. Defaults
111
+ to registry.redhat.io/devspaces/pluginregistry-rhel8
121
112
- name : IMAGE_TAG
122
- value : ' 3.17 '
113
+ value : ' 3.18 '
123
114
displayName : Red Hat OpenShift Dev Spaces plugin registry version
124
115
description : Red Hat OpenShift Dev Spaces plugin registry version
125
116
- name : MEMORY_LIMIT
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ while [[ "$#" -gt 0 ]]; do
61
61
' -b' ) BRANCH=" $2 " ; shift 1;;
62
62
' -w' ) WORKDIR=" $2 " ; shift 1;;
63
63
' -v' ) VERBOSE=1; shift 0;;
64
- ' -nv ' | ' - -no-version' ) doupdateversion=0; shift 0;;
64
+ ' --no-version' ) doupdateversion=0; shift 0;;
65
65
' --remove' ) REMOVE_DEVSPACES_VERSION=" $2 " ; shift 1;;
66
66
' --enable-jobs' ) ENABLE_JOBS_VERSION=" $2 " ; shift 1;;
67
67
' --disable-jobs' ) DISABLE_JOBS_VERSION=" $2 " ; shift 1;;
@@ -274,16 +274,9 @@ updatePluginRegistry() {
274
274
SCRIPT_DIR=" ${REG_ROOT} /build/scripts"
275
275
YAML_ROOT=" ${REG_ROOT} "
276
276
TEMPLATE_FILE=" ${REG_ROOT} /deploy/openshift/devspaces-plugin-registry.yaml"
277
- for yaml in $( " $SCRIPT_DIR " /list_che_yaml.sh " $YAML_ROOT " ) ; do
278
- sed -r \
279
- -e " s#(.*image: (['\" ]*)(registry.redhat.io|quay.io)/devspaces/.*:)[0-9.]+(['\" ]*)#\1${DEVSPACES_VERSION} \2#g" \
280
- -e " s#quay.io/devspaces/#registry.redhat.io/devspaces/#g" \
281
- -e " s|# Copyright.*|# Copyright (c) 2018-$( date +%Y) Red Hat, Inc.|g" \
282
- -i " ${yaml} "
283
- done
284
277
285
278
# update '.parameters[]|select(.name=="IMAGE_TAG")|.value' ==> 3.yy
286
- yq -ri " (.parameters[] | select(.name == \" IMAGE_TAG\" ) | .value ) = \" ${DEVSPACES_VERSION} \" " " ${TEMPLATE_FILE} "
279
+ yq -yi " (.parameters[] | select(.name == \" IMAGE_TAG\" ) | .value ) = \" ${DEVSPACES_VERSION} \" " " ${TEMPLATE_FILE} "
287
280
288
281
git diff -q " ${YAML_ROOT} " " ${TEMPLATE_FILE} " || true
289
282
}
You can’t perform that action at this time.
0 commit comments