@@ -29,10 +29,13 @@ export CPOPEN_LOCATION="icr.io/cpopen"
29
29
export PRODUCTION_IMAGE=" ${CPOPEN_LOCATION} /ibm-iam-operator"
30
30
31
31
32
- echo " Update the version.go "
32
+ echo " Update go files "
33
33
current_version=" $( grep ' Version =' " ${REPO_ROOT} /internal/version/version.go" | cut -f2 -d\" ) "
34
34
sed s/$current_version /$VERSION / $REPO_ROOT /internal/version/version.go > $REPO_ROOT /internal/version/version.go.new
35
35
mv $REPO_ROOT /internal/version/version.go.new $REPO_ROOT /internal/version/version.go
36
+ sed s/$current_version /$VERSION / $REPO_ROOT /internal/database/schema/v1/tables_test.go > $REPO_ROOT /internal/database/schema/v1/tables_test.go.new
37
+ mv $REPO_ROOT /internal/database/schema/v1/tables_test.go.new $REPO_ROOT /internal/database/schema/v1/tables_test.go
38
+
36
39
37
40
38
41
echo " Update the containerImage and olm.skipRange annotations in dev and patch"
@@ -65,11 +68,20 @@ $LOCALBIN/yq -i '.spec.*.imageTag = env(VERSION)' \
65
68
" ${REPO_ROOT} /config/samples/overlays/prod/authentication_image_patch.yaml"
66
69
cp " ${REPO_ROOT} /config/samples/overlays/prod/authentication_image_patch.yaml" " ${REPO_ROOT} /config/samples/overlays/dev/authentication_image_patch.yaml"
67
70
71
+ echo " Making the bundle"
72
+ make bundle
73
+
68
74
echo " Update chart versions"
69
75
$LOCALBIN /yq -i ' .appVersion = env(VERSION), .version = env(VERSION)' " ${REPO_ROOT} /helm/Chart.yaml"
76
+ $LOCALBIN /yq -i ' .operator.imageTag = env(VERSION) | .operands.platformIdentityProvider.imageTag = env(VERSION) | .operands.platformAuthService.imageTag = env(VERSION) | .operands.platformIdentityManagement.imageTag = env(VERSION) | .operands.imInitContainer.imageTag = env(VERSION)' " ${REPO_ROOT} /helm/values.yaml"
70
77
$LOCALBIN /yq -i ' .appVersion = env(VERSION), .version = env(VERSION)' " ${REPO_ROOT} /helm-cluster-scoped/Chart.yaml"
71
-
72
- echo " Making the bundle"
73
- make bundle
78
+ sed s/$current_version /$VERSION / $REPO_ROOT /helm/templates/10-deployment.yaml > $REPO_ROOT /helm/templates/10-deployment.yaml.new
79
+ mv $REPO_ROOT /helm/templates/10-deployment.yaml.new $REPO_ROOT /helm/templates/10-deployment.yaml
80
+
81
+ echo " Update READMEs"
82
+ sed s/$current_version /$VERSION / $REPO_ROOT /README.md > $REPO_ROOT /README.md.new
83
+ mv $REPO_ROOT /README.md.new $REPO_ROOT /README.md
84
+ sed s/$current_version /$VERSION / $REPO_ROOT /DEVELOPMENT.md > $REPO_ROOT /DEVELOPMENT.md.new
85
+ mv $REPO_ROOT /DEVELOPMENT.md.new $REPO_ROOT /DEVELOPMENT.md
74
86
75
87
echo " Done"
0 commit comments