Metadata Bundle Image
The bundle image will house your metadata including the CSV.yaml, and the CRD.yaml.
When we ran the make bundle
command earlier, part of what was generated was the metadata bundle image.
Here you see the bundle.Dockerfile
in the root directory of your operator project. This is your Dockerfile for your metadata bundle image.
There are up to 3 labels you will need to add to the Dockerfile:
LABEL com.redhat.openshift.versions
This lists OpenShift versions, starting with 4.5, that your operator will support. See the section Managing OpenShift Versions for syntax and rules.
LABEL com.redhat.delivery.operator.bundle=true
This just needs to be there
LABEL com.redhat.deliver.backport=true
This is used to indicate support for OpenShift versions before 4.6. If you don't specify this flag, your operator won't be listed in 4.5 or earlier.
Now lets build the bundle image from the bundle.Dockerfile. You can use an existing public container registry of your choice, though we recommend using quay.io. When you create a new repository make sure its publicly available.
The next step is to build the bundle-dockerfile locally and push it to quay.io for testing which we will cover in the Deploying onto OpenShift section
Last updated