You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sed -i "/olm.skipRange/s/$CURRENT_DEV_CSV/$NEW_DEV_CSV/g"$CSV_PATH/ibm-namespace-scope-operator.clusterserviceversion.yaml
43
+
sed -i "s/ibm-namespace-scope-operator.v$CURRENT_DEV_CSV/ibm-namespace-scope-operator.v$NEW_DEV_CSV/g"$CSV_PATH/ibm-namespace-scope-operator.clusterserviceversion.yaml
44
+
sed -i "s/ibm-namespace-scope-operator:$CURRENT_DEV_CSV/ibm-namespace-scope-operator:$NEW_DEV_CSV/g"$CSV_PATH/ibm-namespace-scope-operator.clusterserviceversion.yaml
45
+
sed -i "s/version: $CURRENT_DEV_CSV/version: $NEW_DEV_CSV/g"$CSV_PATH/ibm-namespace-scope-operator.clusterserviceversion.yaml
46
+
echo"Updated the bundle/manifests/ibm-namespace-scope-operator.clusterserviceversion.yaml"
47
+
48
+
sed -i "/olm.skipRange/s/$CURRENT_DEV_CSV/$NEW_DEV_CSV/g"$RESTRICTED_CSV_PATH/ibm-namespace-scope-operator-restricted.clusterserviceversion.yaml
49
+
sed -i "s/ibm-namespace-scope-operator-restricted.v$CURRENT_DEV_CSV/ibm-namespace-scope-operator-restricted.v$NEW_DEV_CSV/g"$RESTRICTED_CSV_PATH/ibm-namespace-scope-operator-restricted.clusterserviceversion.yaml
50
+
sed -i "s/ibm-namespace-scope-operator:$CURRENT_DEV_CSV/ibm-namespace-scope-operator:$NEW_DEV_CSV/g"$RESTRICTED_CSV_PATH/ibm-namespace-scope-operator-restricted.clusterserviceversion.yaml
51
+
sed -i "s/version: $CURRENT_DEV_CSV/version: $NEW_DEV_CSV/g"$RESTRICTED_CSV_PATH/ibm-namespace-scope-operator-restricted.clusterserviceversion.yaml
52
+
echo"Updated the bundle-restricted/manifests/ibm-namespace-scope-operator-restricted.clusterserviceversion.yaml"
53
+
54
+
TIME_STAMP="$(date '+%Y-%m-%dT%H:%M:%S'Z)"
55
+
sed -i "s/2[0-9]*-[0-9]*-[0-9]*T[0-9]*:[0-9]*:[0-9]*Z/$TIME_STAMP/g"$CSV_PATH/ibm-namespace-scope-operator.clusterserviceversion.yaml
56
+
sed -i "s/2[0-9]*-[0-9]*-[0-9]*T[0-9]*:[0-9]*:[0-9]*Z/$TIME_STAMP/g"$RESTRICTED_CSV_PATH/ibm-namespace-scope-operator-restricted.clusterserviceversion.yaml
57
+
58
+
echo"Updated New file with new CSV version"
59
+
sed -i "s/$PREVIOUS_DEV_CSV/$CURRENT_DEV_CSV/g"$CSV_PATH/ibm-namespace-scope-operator.clusterserviceversion.yaml
60
+
sed -i "s/$PREVIOUS_DEV_CSV/$CURRENT_DEV_CSV/g"$RESTRICTED_CSV_PATH/ibm-namespace-scope-operator-restricted.clusterserviceversion.yaml
61
+
echo"Updated the replaces version line"
62
+
63
+
#Update version.go and Makefile to new dev version
64
+
sed -i "s/$CURRENT_DEV_CSV/$NEW_DEV_CSV/" version/version.go
65
+
echo"Updated the version.go"
66
+
sed -i "s/$CURRENT_DEV_CSV/$NEW_DEV_CSV/" Makefile
67
+
echo"Updated the Makefile"
68
+
69
+
elif [[ "$OSTYPE"=="darwin"* ]];then
70
+
# Mac OSX
71
+
sed -i """/olm.skipRange/s/$CURRENT_DEV_CSV/$NEW_DEV_CSV/g"$CSV_PATH/ibm-namespace-scope-operator.clusterserviceversion.yaml
72
+
sed -i """s/ibm-namespace-scope-operator.v$CURRENT_DEV_CSV/ibm-namespace-scope-operator.v$NEW_DEV_CSV/g"$CSV_PATH/ibm-namespace-scope-operator.clusterserviceversion.yaml
73
+
sed -i """s/ibm-namespace-scope-operator:$CURRENT_DEV_CSV/ibm-namespace-scope-operator:$NEW_DEV_CSV/g"$CSV_PATH/ibm-namespace-scope-operator.clusterserviceversion.yaml
74
+
sed -i """s/version: $CURRENT_DEV_CSV/version: $NEW_DEV_CSV/g"$CSV_PATH/ibm-namespace-scope-operator.clusterserviceversion.yaml
75
+
echo"Updated the bundle/manifests/ibm-namespace-scope-operator.clusterserviceversion.yaml"
76
+
77
+
sed -i """/olm.skipRange/s/$CURRENT_DEV_CSV/$NEW_DEV_CSV/g"$RESTRICTED_CSV_PATH/ibm-namespace-scope-operator-restricted.clusterserviceversion.yaml
78
+
sed -i """s/ibm-namespace-scope-operator-restricted.v$CURRENT_DEV_CSV/ibm-namespace-scope-operator-restricted.v$NEW_DEV_CSV/g"$RESTRICTED_CSV_PATH/ibm-namespace-scope-operator-restricted.clusterserviceversion.yaml
79
+
sed -i """s/ibm-namespace-scope-operator:$CURRENT_DEV_CSV/ibm-namespace-scope-operator:$NEW_DEV_CSV/g"$RESTRICTED_CSV_PATH/ibm-namespace-scope-operator-restricted.clusterserviceversion.yaml
80
+
sed -i """s/version: $CURRENT_DEV_CSV/version: $NEW_DEV_CSV/g"$RESTRICTED_CSV_PATH/ibm-namespace-scope-operator-restricted.clusterserviceversion.yaml
81
+
echo"Updated the bundle-restricted/manifests/ibm-namespace-scope-operator-restricted.clusterserviceversion.yaml"
82
+
83
+
TIME_STAMP="$(date '+%Y-%m-%dT%H:%M:%S'Z)"
84
+
sed -i """s/2[0-9]*-[0-9]*-[0-9]*T[0-9]*:[0-9]*:[0-9]*Z/$TIME_STAMP/g"$CSV_PATH/ibm-namespace-scope-operator.clusterserviceversion.yaml
85
+
sed -i """s/2[0-9]*-[0-9]*-[0-9]*T[0-9]*:[0-9]*:[0-9]*Z/$TIME_STAMP/g"$RESTRICTED_CSV_PATH/ibm-namespace-scope-operator-restricted.clusterserviceversion.yaml
86
+
87
+
echo"Updated New file with new CSV version"
88
+
sed -i """s/$PREVIOUS_DEV_CSV/$CURRENT_DEV_CSV/g"$CSV_PATH/ibm-namespace-scope-operator.clusterserviceversion.yaml
89
+
sed -i """s/$PREVIOUS_DEV_CSV/$CURRENT_DEV_CSV/g"$RESTRICTED_CSV_PATH/ibm-namespace-scope-operator-restricted.clusterserviceversion.yaml
90
+
echo"Updated the replaces version line"
91
+
92
+
#Update version.go and Makefile to new dev version
93
+
sed -i """s/$CURRENT_DEV_CSV/$NEW_DEV_CSV/" version/version.go
94
+
echo"Updated the version.go"
95
+
sed -i """s/$CURRENT_DEV_CSV/$NEW_DEV_CSV/" Makefile
0 commit comments