-
Notifications
You must be signed in to change notification settings - Fork 0
Deploy with OLM
Cesar Celis Hernandez edited this page Sep 15, 2023
·
1 revision
createcluster nodeport
operator-sdk olm install
cd ~
rm -rf directpv/
git clone [email protected]:minio/directpv.git
cd /Users/cniackz/directpv/operator
docker buildx build --platform linux/amd64 -t quay.io/cniackz4/directpv-operator:4.0.7 .
docker push quay.io/cniackz4/directpv-operator:4.0.7
operator-sdk generate kustomize manifests -q --package minio-directpv-operator-rhmp
(cd config/manager && kustomize edit set image controller=quay.io/cniackz4/directpv-operator:4.0.7)
kustomize build config/manifests | operator-sdk generate bundle -q --overwrite --version 4.0.7 --package minio-directpv-operator-rhmp
operator-sdk bundle validate ./bundle
docker build -f bundle.Dockerfile -t quay.io/cniackz4/directpv-operator-bundle:v4.0.7 .
docker push quay.io/cniackz4/directpv-operator-bundle:v4.0.7
operator-sdk run bundle quay.io/cniackz4/directpv-operator-bundle:v4.0.7 --index-image=quay.io/operator-framework/opm:v1.23.0
Cesars-MacBook-Pro:operator cniackz$ operator-sdk run bundle quay.io/cniackz4/directpv-operator-bundle:v4.0.7 --index-image=quay.io/operator-framework/opm:v1.23.0
WARN[0014] quay.io/operator-framework/opm:v1.23.0 is a SQLite index image. SQLite based index images are being deprecated and will be removed in a future release, please migrate your catalogs to the new File-Based Catalog format
INFO[0033] Created registry pod: quay-io-cniackz4-directpv-operator-bundle-v4-0-7
INFO[0033] Created CatalogSource: minio-directpv-operator-rhmp-catalog
INFO[0033] OperatorGroup "operator-sdk-og" created
INFO[0033] Created Subscription: minio-directpv-operator-rhmp-v4-0-7-sub
INFO[0046] Approved InstallPlan install-ts5tg for the Subscription: minio-directpv-operator-rhmp-v4-0-7-sub
INFO[0046] Waiting for ClusterServiceVersion "default/minio-directpv-operator-rhmp.v4.0.7" to reach 'Succeeded' phase
INFO[0046] Waiting for ClusterServiceVersion "default/minio-directpv-operator-rhmp.v4.0.7" to appear
INFO[0049] Found ClusterServiceVersion "default/minio-directpv-operator-rhmp.v4.0.7" phase: Pending
INFO[0050] Found ClusterServiceVersion "default/minio-directpv-operator-rhmp.v4.0.7" phase: InstallReady
INFO[0051] Found ClusterServiceVersion "default/minio-directpv-operator-rhmp.v4.0.7" phase: Installing
INFO[0081] Found ClusterServiceVersion "default/minio-directpv-operator-rhmp.v4.0.7" phase: Succeeded
INFO[0081] OLM has successfully installed "minio-directpv-operator-rhmp.v4.0.7"