-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Dockerhub reference to Harbor
- Loading branch information
1 parent
b636e26
commit f41b963
Showing
6 changed files
with
80 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
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 | ||
for VERSION in $VERSIONS | ||
echo "Version: $VERSION" | ||
echo "docker build -t bradfordcp/cass-operator-bundle:$VERSION -f bundle-$VERSION.Dockerfile ." | ||
docker build -t harbor.sjc.dsinternal.org/cass-operator/cass-operator-bundle:$VERSION -f bundle-$VERSION.Dockerfile . | ||
|
||
echo "docker push harbor.sjc.dsinternal.org/cass-operator/cass-operator-bundle:$VERSION" | ||
docker push harbor.sjc.dsinternal.org/cass-operator/cass-operator-bundle:$VERSION | ||
end | ||
|
||
|
||
set BUNDLELIST "" | ||
|
||
for VERSION in $VERSIONS | ||
set BUNDLELIST $BUNDLELIST,harbor.sjc.dsinternal.org/cass-operator/cass-operator-bundle:$VERSION | ||
end | ||
# Remove ',' from start of bundlelist | ||
set BUNDLELIST (string sub -s 2 $BUNDLELIST) | ||
|
||
echo "opm index add --bundles $BUNDLELIST --tag harbor.sjc.dsinternal.org/cass-operator/cass-operator-index:latest -u docker" | ||
opm index add --bundles $BUNDLELIST --tag harbor.sjc.dsinternal.org/cass-operator/cass-operator-index:latest -u docker | ||
docker push harbor.sjc.dsinternal.org/cass-operator/cass-operator-index:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
kind: PersistentVolume | ||
apiVersion: v1 | ||
metadata: | ||
name: cass-operator-test-pv | ||
spec: | ||
capacity: | ||
storage: 100Gi | ||
hostPath: | ||
path: /mnt/pv-data/cass-op-pv | ||
type: '' | ||
accessModes: | ||
- ReadWriteOnce | ||
- ReadWriteMany | ||
- ReadOnlyMany | ||
persistentVolumeReclaimPolicy: Recycle | ||
volumeMode: Filesystem | ||
storageClassName: no-provisioner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
kind: StorageClass | ||
apiVersion: storage.k8s.io/v1 | ||
metadata: | ||
name: no-provisioner | ||
provisioner: kubernetes.io/no-provisioner | ||
reclaimPolicy: Delete | ||
volumeBindingMode: WaitForFirstConsumer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# How to test Red Hat | ||
|
||
1. Build all basic containers | ||
- dse-server | ||
- cassandra | ||
- cass-operator | ||
- cass-config-builder | ||
2. Push all to red hat | ||
- Wait for security scans | ||
- Fix issues if any | ||
- Publish, fixup tags | ||
3. Build a bundle (referencing redhat registry for cass-operator) | ||
4. Push the bundle to a _local_ registry | ||
5. Build an index pointed at the _local_ registry | ||
- All versions, not just latest | ||
6. Run OpenShift locally | ||
7. Create cass-operator prereqs | ||
8. Install a `CatalogSource` that references the local index (step 5) | ||
9. Install a `Subscription` that reference the `CatalogSource` (step 8) | ||
10. Check to make sure operator is up | ||
11. Provision a CassandraDatacenter | ||
12. Validate cassdc comes up | ||
13. Check CQLSH, nodetool status, whatever | ||
14. Tear down local openshift | ||
14. Push bundle to Red Hat (step 4) | ||
15. Validate tests pass | ||
16. Publish the bundle | ||
17. Run OpenShift locally | ||
18. Install a `Subscription` that references the _PUBLIC_ openshift catalog | ||
19. Check steps 10-13 | ||
20. Tear down local openshift |