File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,14 @@ global:
1111 # # - myRegistryKeySecretName
1212 imagePullSecrets : []
1313
14+ # # @karmadaOperatorImageVersion the image version of karmada operator
15+ # # "latest" is a default value for local installation.
16+ # # If update this anchors("&karmadaOperatorImageVersion"), also update hack/package-helm-chart.sh.
17+ # # See https://yaml.org/spec/1.2/spec.html#id2765878 and
18+ # # https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_advanced_syntax.html#yaml-anchors-and-aliases-sharing-variable-values
19+ # # for more details about yaml anchors and aliases.
20+ karmadaOperatorImageVersion : &karmadaOperatorImageVersion latest
21+
1422# # @param installCRDs define flag whether to install CRD resources
1523# #
1624installCRDs : true
@@ -46,9 +54,8 @@ operator:
4654 image :
4755 registry : docker.io
4856 repository : karmada/karmada-operator
49- tag : latest
57+ tag : *karmadaOperatorImageVersion
5058 # # Specify a imagePullPolicy
51- # # Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
5259 # #
5360 pullPolicy : IfNotPresent
5461 # # Optionally specify an array of imagePullSecrets.
Original file line number Diff line number Diff line change 4242tar_file=" "
4343for chart in ${KARMADA_CHARTS[@]} ;
4444do
45- sed -i' ' -e " s/\&karmadaImageVersion .*/\&karmadaImageVersion ${version} /g" ./charts/" ${chart} " /values.yaml
45+ sed -i' ' -e " s/\(\&karmadaImageVersion \)[^[:space:]]\+/\1${version} /g" ./charts/" ${chart} " /values.yaml
46+ sed -i' ' -e " s/\(\&karmadaOperatorImageVersion \)[^[:space:]]\+/\1${version} /g" ./charts/" ${chart} " /values.yaml
4647
4748 tar_file=" ${chart} -chart-${version} .tgz"
4849 echo " Starting to package into a ${chart} chart archive"
You can’t perform that action at this time.
0 commit comments