mailhog-operator

A toy operator that deploys mailhog on codeready containers.

Images
Check out the latest releases
Just the operator
### Get the latest tagged image release
podman pull ghcr.io/patrickmx/mailhog-operator:latest
### Current pre-release development image
podman pull ghcr.io/patrickmx/mailhog-operator:develop
Bundle
operator-sdk run bundle ghcr.io/patrickmx/mailhog-operator-bundle:latest
operator-sdk run bundle ghcr.io/patrickmx/mailhog-operator-bundle:develop
Catalog Source
# Install the CatalogSource on oc/crc/origin
oc -n openshift-marketplace create -f config/catalogsource/mailhog-catalogsource.yaml
# To watch multiple namespaces or watch a different one than where the operator is, add a separate operator group
CR Examples
Some example CR configurations can be found as OC Console Examples in console_examples.yaml or the bare minimal cr.
# Load Openshift Console Examples:
oc create -f config/codeready/mailhogInstance_console_examples.yaml
Development
Build current repo code and deploy to a local CRC installation:
### Deploy the operator to crc (tested on fedora)
make crc-deploy
### Check the MailhogInstance type in the web console, a sample should be ready to go
License
Apache 2