File tree Expand file tree Collapse file tree 6 files changed +80
-6
lines changed
Expand file tree Collapse file tree 6 files changed +80
-6
lines changed Original file line number Diff line number Diff line change 1+ set VERSIONS 1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1
2+ for VERSION in $VERSIONS
3+ echo " Version: $VERSION "
4+ echo " docker build -t bradfordcp/cass-operator-bundle:$VERSION -f bundle-$VERSION .Dockerfile ."
5+ docker build -t harbor.sjc.dsinternal.org/cass-operator/cass-operator-bundle:$VERSION -f bundle-$VERSION .Dockerfile .
6+
7+ echo " docker push harbor.sjc.dsinternal.org/cass-operator/cass-operator-bundle:$VERSION "
8+ docker push harbor.sjc.dsinternal.org/cass-operator/cass-operator-bundle:$VERSION
9+ end
10+
11+
12+ set BUNDLELIST " "
13+
14+ for VERSION in $VERSIONS
15+ set BUNDLELIST $BUNDLELIST ,harbor.sjc.dsinternal.org/cass-operator/cass-operator-bundle:$VERSION
16+ end
17+ # Remove ',' from start of bundlelist
18+ set BUNDLELIST (string sub -s 2 $BUNDLELIST )
19+
20+ echo " opm index add --bundles $BUNDLELIST --tag harbor.sjc.dsinternal.org/cass-operator/cass-operator-index:latest -u docker"
21+ opm index add --bundles $BUNDLELIST --tag harbor.sjc.dsinternal.org/cass-operator/cass-operator-index:latest -u docker
22+ docker push harbor.sjc.dsinternal.org/cass-operator/cass-operator-index:latest
Original file line number Diff line number Diff line change 77 displayName : Local Catalog
88 publisher : Developer
99 sourceType : grpc
10- image : bradfordcp/catalog -index:latest
10+ image : harbor.sjc.dsinternal.org/cass-operator/cass-operator -index:latest
Original file line number Diff line number Diff line change 1+ kind : PersistentVolume
2+ apiVersion : v1
3+ metadata :
4+ name : cass-operator-test-pv
5+ spec :
6+ capacity :
7+ storage : 100Gi
8+ hostPath :
9+ path : /mnt/pv-data/cass-op-pv
10+ type : ' '
11+ accessModes :
12+ - ReadWriteOnce
13+ - ReadWriteMany
14+ - ReadOnlyMany
15+ persistentVolumeReclaimPolicy : Recycle
16+ volumeMode : Filesystem
17+ storageClassName : no-provisioner
Original file line number Diff line number Diff line change 1+ kind : StorageClass
2+ apiVersion : storage.k8s.io/v1
3+ metadata :
4+ name : no-provisioner
5+ provisioner : kubernetes.io/no-provisioner
6+ reclaimPolicy : Delete
7+ volumeBindingMode : WaitForFirstConsumer
Original file line number Diff line number Diff line change @@ -79,11 +79,8 @@ _Note see Red Hat's [Gitbook](https://redhat-connect.gitbook.io/partner-guide-fo
79796. Build bundle container and push to staging repo
8080
8181 ```console
82- docker build -t bradfordcp/cass-operator-bundle:$NEW_VERSION -f bundle-$NEW_VERSION.Dockerfile .
83- docker push bradfordcp/cass-operator-bundle:$NEW_VERSION
84-
85- docker tag bradfordcp/cass-operator-bundle:$NEW_VERSION bradfordcp/cass-operator-bundle:latest
86- docker push bradfordcp/cass-operator-bundle:latest
82+ docker build -t harbor.sjc.dsinternal.org/cass-operator/cass-operator-bundle:$NEW_VERSION -f bundle-$NEW_VERSION.Dockerfile .
83+ docker push harbor.sjc.dsinternal.org/cass-operator/cass-operator-bundle:$NEW_VERSION
8784 ```
88857. Build local catalog index for testing
8986
Original file line number Diff line number Diff line change 1+ # How to test Red Hat
2+
3+ 1 . Build all basic containers
4+ - dse-server
5+ - cassandra
6+ - cass-operator
7+ - cass-config-builder
8+ 2 . Push all to red hat
9+ - Wait for security scans
10+ - Fix issues if any
11+ - Publish, fixup tags
12+ 3 . Build a bundle (referencing redhat registry for cass-operator)
13+ 4 . Push the bundle to a _ local_ registry
14+ 5 . Build an index pointed at the _ local_ registry
15+ - All versions, not just latest
16+ 6 . Run OpenShift locally
17+ 7 . Create cass-operator prereqs
18+ 8 . Install a ` CatalogSource ` that references the local index (step 5)
19+ 9 . Install a ` Subscription ` that reference the ` CatalogSource ` (step 8)
20+ 10 . Check to make sure operator is up
21+ 11 . Provision a CassandraDatacenter
22+ 12 . Validate cassdc comes up
23+ 13 . Check CQLSH, nodetool status, whatever
24+ 14 . Tear down local openshift
25+ 14 . Push bundle to Red Hat (step 4)
26+ 15 . Validate tests pass
27+ 16 . Publish the bundle
28+ 17 . Run OpenShift locally
29+ 18 . Install a ` Subscription ` that references the _ PUBLIC_ openshift catalog
30+ 19 . Check steps 10-13
31+ 20 . Tear down local openshift
You can’t perform that action at this time.
0 commit comments