There are various ways to install the operator, outlined below. After the operator is installed check out how to use it.
If you are on OpenShift you will most likely want to install from OLM.
Add the catalog-source:
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: flyway-operator
namespace: openshift-marketplace
spec:
displayName: Flyway operator
publisher: davidkarlsen
sourceType: grpc
image: ghcr.io/davidkarlsen/flyway-operator-catalog:alpha
updateStrategy:
registryPoll:
interval: 45mThen go to operators -> operatorhub in the console to install, or add a subscription through yaml.
Add the helm repo:
helm repo add flyway-operator https://davidkarlsen.github.io/flyway-operatorthen install:
# create namespace
kubectl create namespace flyway-operator
# install into namespace
helm install flyway-operator flyway-operator/flyway-operator -n flyway-operator
This is mostly useful for developers of the operator.
- Install Instances of Custom Resources:
kubectl apply -f config/samples/- Build and push your image to the location specified by
IMG:
make docker-build docker-push IMG=<some-registry>/flyway-operator:tag- Deploy the controller to the cluster with the image specified by
IMG:
make deploy IMG=<some-registry>/flyway-operator:tagTo delete the CRDs from the cluster:
make uninstallUnDeploy the controller from the cluster:
make undeploy