This operator sets up a new ingresscontroller with custom certificate as a day-2 operation. The public DNS record of this new ingresscontroller can then be used by external DNS to create a wildcard CNAME record to for a custom domain.
GVM (GoLang 1.13.6)
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
gvm install go1.13.6
gvm use go1.13.6
Operator-SDK
wget https://github.com/operator-framework/operator-sdk/releases/download/v0.16.0/operator-sdk-v0.16.0-x86_64-apple-darwin
sudo mv operator-sdk-v0.16.0-x86_64-apple-darwin /usr/local/bin/operator-sdk
sudo chmod a+x /usr/local/bin/operator-sdk
Create Custom Resource Definition (CRD)
oc apply -f deploy/crds/managed.openshift.io_customdomains_crd.yaml
operator-sdk run --local --namespace ''
Choose public container registry e.g. 'quay.io/acme'. Build and push the image, then update the operator deployment manifest.
Example:
# deploy manifests
oc apply -f deploy/crds/managed.openshift.io_customdomains_crd.yaml
oc apply -f deploy/
# build
make docker-build docker-push
# update image with image in build output
oc set image -n openshift-custom-domains-operator deployment/custom-domains-operator custom-domains-operator=quay.io/dustman9000/custom-domains-operator:v0.1.29-a48b301e
See TESTING