Building and Pushing Image
Setup Quay.io account (for testing only)
Before we build our operator image we will want to setup an account on Quay.io. We will need to push this image to quay.io so that we can test the Metadata Files discussed in the next section. To setup an account on quay.io:
Go to: quay.io
Click on the SIGN IN button located on the upper right side
You can either Sign In with your GitHub account or click Create Account
Once logged into Quay, click CREATE REPOSITORY to create a place to push your operator image for testing (example name: wordpress-operator)
Build and Push Operator Image
Now that your project is setup with Labels and Licenses, and your quay.io account is setup we can build the operator image. In this example, replace rhc4tp
with your quay.io account username:
Now that you pushed your image to quay.io you need to edit the config/manager/manager.yaml
file and change the image field to reflect your image repository. (Note: line 19)
Keep in mind this is for testing only, this does not certify your operator image. Once your image is certified you will need to got back to config/manager/manager.yaml and change the image repository. If you want to certify your image see instructions here: Certifying your Operator.
Last updated