Skip to content

Conversation

@antonlisovenko
Copy link
Contributor

@antonlisovenko antonlisovenko commented Mar 9, 2021

Adds support for bundle generation during the release

I generated the release branch and tried to install it into the OLM. Everything was ok, though the deployment didn't succeed (which makes sense as we haven't released the new image yet)
I edited the deployment and change the image to mongodb/mongodb-atlas-kubernetes-operator-prerelease:CLOUDP-84352-olm-bundle-release-5a84c7e - after this it succeeded.

➜  mongodb-atlas-kubernetes git:(release/0.21.0) make bundle-build BUNDLE_IMG=antonlisovenko/test-bundle:v0.21.0
docker build -f bundle.Dockerfile -t antonlisovenko/test-bundle:v0.21.0 .
Sending build context to Docker daemon  379.5MB
Step 1/14 : FROM scratch
 --->
Step 2/14 : LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
 ---> Using cache
 ---> 5bb15576e1aa
Step 3/14 : LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
 ---> Using cache
 ---> f7bfa3d4de1f
Step 4/14 : LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
 ---> Using cache
 ---> 5a5c6a07766a
Step 5/14 : LABEL operators.operatorframework.io.bundle.package.v1=mongodb-atlas-kubernetes
 ---> Using cache
 ---> b3a6dd30e587
Step 6/14 : LABEL operators.operatorframework.io.bundle.channels.v1=alpha
 ---> Using cache
 ---> 85cbe6e050cb
Step 7/14 : LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.4.2
 ---> Using cache
 ---> 605f9617fa7e
Step 8/14 : LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
 ---> Using cache
 ---> 136c7742d732
Step 9/14 : LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3
 ---> Using cache
 ---> 24a3be949a42
Step 10/14 : LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/
 ---> Using cache
 ---> 2027c774a5a1
Step 11/14 : LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1
 ---> Using cache
 ---> f956b4df2d52
Step 12/14 : COPY bundle/manifests /manifests/
 ---> 3e8d86e1e3f1
Step 13/14 : COPY bundle/metadata /metadata/
 ---> 3e3975beadc2
Step 14/14 : COPY bundle/tests/scorecard /tests/scorecard/
 ---> a8db17e082fa
Successfully built a8db17e082fa
Successfully tagged antonlisovenko/test-bundle:v0.21.0

➜  mongodb-atlas-kubernetes git:(release/0.21.0) make docker-push IMG=antonlisovenko/test-bundle:v0.21.0
docker push antonlisovenko/test-bundle:v0.21.0
The push refers to repository [docker.io/antonlisovenko/test-bundle]
0613c024591e: Pushed
26cfdd49c98a: Pushed
a219fe8c2cc6: Pushed
v0.21.0: digest: sha256:b17684226ec07e45a775326ef7492f05a41b1ba6a9ae2525d8d5c23bcd06e9ed size: 939

➜  mongodb-atlas-kubernetes git:(release/0.21.0) operator-sdk run bundle docker.io/antonlisovenko/test-bundle:v0.21.0
INFO[0007] Successfully created registry pod: docker-io-antonlisovenko-test-bundle-v0-21-0
INFO[0007] Created CatalogSource: mongodb-atlas-kubernetes-catalog
INFO[0008] OperatorGroup "operator-sdk-og" created
INFO[0008] Created Subscription: mongodb-atlas-kubernetes-v0-21-0-sub
INFO[0013] Approved InstallPlan install-nbv62 for the Subscription: mongodb-atlas-kubernetes-v0-21-0-sub
INFO[0013] Waiting for ClusterServiceVersion "default/mongodb-atlas-kubernetes.v0.21.0" to reach 'Succeeded' phase
INFO[0013]   Waiting for ClusterServiceVersion "default/mongodb-atlas-kubernetes.v0.21.0" to appear
INFO[0024]   Found ClusterServiceVersion "default/mongodb-atlas-kubernetes.v0.21.0" phase: Pending
INFO[0025]   Found ClusterServiceVersion "default/mongodb-atlas-kubernetes.v0.21.0" phase: InstallReady
INFO[0026]   Found ClusterServiceVersion "default/mongodb-atlas-kubernetes.v0.21.0" phase: Installing
FATA[0120] Failed to run bundle: error waiting for CSV to install: timed out waiting for the condition

@antonlisovenko antonlisovenko force-pushed the CLOUDP-84352-olm-bundle-release branch from 0741d1d to 9b0b4db Compare March 9, 2021 16:50
@antonlisovenko antonlisovenko changed the base branch from CLOUDP-82782_release-commit-dir to main March 9, 2021 16:50
@antonlisovenko antonlisovenko merged commit 2de8000 into main Mar 9, 2021
@antonlisovenko antonlisovenko deleted the CLOUDP-84352-olm-bundle-release branch March 9, 2021 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants