This guide contains building and installatoin instructions. See USERGUIDE.md for the user guide.
The operator requires a special image to run the sosreport jobs. Build this image with:
make podman-build-centos-sosreport IMG=kind:5000/sosreport-centos
make podman-push-centos-sosreport IMG=kind:5000/sosreport-centos
Adjust the
IMG=(...)
value as needed.
Install Custom Resource Definitions with:
make generate
make manifests
make install
To test run the operator locally:
make run ENABLE_WEBHOOKS=false
To install the operator:
make podman-build IMG=kind:5000/sosreport-operator:v0.0.1
make podman-push IMG=kind:5000/sosreport-operator:v0.0.1
make deploy IMG=kind:5000/sosreport-operator:v0.0.1
To remove the operator again:
make undeploy
make deploy IMG=quay.io/akaris/sosreport-operator:latest
To remove the operator again:
make undeploy
quai.io will automatically build images from the latest commit
Make sure that ConfigMap
sosreport-global-configuration
fieldsosreport-image
points toquay.io/akaris/sosreport-centos:main
(that's also the default if unset)
Example custom resources can be deployed and undeployed with:
make deploy-examples
make undeploy-examples
make bundle IMG=kind:5000/sosreport-operator:v0.0.1
make bundle-build-podman BUNDLE_IMG=kind:5000/sosreport-operator-bundle:v0.0.1
make bundle-push-podman BUNDLE_IMG=kind:5000/sosreport-operator-bundle:v0.0.1
make bundle-validate-podman BUNDLE_IMG=kind:5000/sosreport-operator-bundle:v0.0.1
make bundle IMG=quay.io/akaris/sosreport-operator:latest
Simply commit the current snapshot of the repository. Quay will automatically build an image from the latest snapshot.
For further details, see https://github.com/operator-framework/operator-registry#building-an-index-of-operators-using-opm
Prerequisites - installing OPM:
make opm
make index-build BUNDLE_IMG=kind:5000/sosreport-operator-bundle:v0.0.1 INDEX_IMG=kind:5000/sosreport-operator-index:v0.0.1
make index-push-podman INDEX_IMG=kind:5000/sosreport-operator-index:v0.0.1
make index-build BUNDLE_IMG=quay.io/akaris/sosreport-operator-bundle:latest INDEX_IMG=quay.io/akaris/sosreport-operator-index:latest
podman login quay.io
make index-push-podman INDEX_IMG=quay.io/akaris/sosreport-operator-index:latest