Skip to content

Commit 615a847

Browse files
authored
Use composite bundle by default (#103)
* Updating acm-operator to patch in channel info, updating start to use COMPOSITE_BUNDLE by default * Reverting snapshot.ver and snapshots to old stable
1 parent 1157a27 commit 615a847

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

acm-operator/subscription.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: Subscription
33
metadata:
44
name: acm-operator-subscription
55
spec:
6-
channel: release-1.0
6+
channel: release-2.0
77
installPlanApproval: Automatic
88
name: advanced-cluster-management
99
source: acm-custom-registry

snapshot.ver

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0-SNAPSHOT-2020-05-12-23-58-57
1+
1.0.0-SNAPSHOT-2020-05-12-23-58-57

start.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,17 +158,24 @@ fi
158158

159159
# Set the custom registry repo, defaulted to quay.io/open-cluster-management, but accomodate custom config focused on quay.io/acm-d for donwstream tests
160160
CUSTOM_REGISTRY_REPO=${CUSTOM_REGISTRY_REPO:-"quay.io/open-cluster-management"}
161+
# Default COMPOSITE_BUNDLE to true
162+
COMPOSITE_BUNDLE=${COMPOSITE_BUNDLE:-"true"}
161163

162164
# If the user sets the COMPOSITE_BUNDLE flag to "true", then set to the `acm` variants of variables, otherwise the multicluster-hub version.
163165
if [[ "$COMPOSITE_BUNDLE" == "true" ]]; then OPERATOR_DIRECTORY="acm-operator"; else OPERATOR_DIRECTORY="multicluster-hub-operator"; fi;
164166
if [[ "$COMPOSITE_BUNDLE" == "true" ]]; then CUSTOM_REGISTRY_IMAGE="acm-custom-registry"; else CUSTOM_REGISTRY_IMAGE="multicluster-hub-custom-registry"; fi;
165167

168+
# Set the subscription channel, defaulted to snapshot-2.0
169+
if [[ "$COMPOSITE_BUNDLE" == "true" ]]; then SUBSCRIPTION_CHANNEL="release-2.0"; else CUSTOM_REGISTRY_IMAGE="snapshot-2.0"; fi;
170+
166171
printf "* Using: ${DEFAULT_SNAPSHOT}\n\n"
167172

168173
echo "* Applying SNAPSHOT to multiclusterhub-operator subscription"
169174
${SED} -i "s/newTag: .*$/newTag: ${DEFAULT_SNAPSHOT}/g" ./$OPERATOR_DIRECTORY/kustomization.yaml
170175
echo "* Applying CUSTOM_REGISTRY_REPO to multiclusterhub-operator subscription"
171176
${SED} -i "s|newName: .*$|newName: ${CUSTOM_REGISTRY_REPO}/${CUSTOM_REGISTRY_IMAGE}|g" ./$OPERATOR_DIRECTORY/kustomization.yaml
177+
echo "* Applying SUBSCRIPTION_CHANNEL to multiclusterhub-operator subscription"
178+
${SED} -i "s|channel: .*$|channel: ${SUBSCRIPTION_CHANNEL}|g" ./$OPERATOR_DIRECTORY/subscription.yaml
172179
echo "* Applying multicluster-hub-cr values"
173180
${SED} -i "s/example-multiclusterhub/multiclusterhub/" ./multiclusterhub/example-multiclusterhub-cr.yaml
174181

0 commit comments

Comments
 (0)