How to test latest operator - cniackz/public GitHub Wiki
- Compile operator
CGO_ENABLED=0 GOOS=linux go build -trimpath -o minio-operator
- Create the docker container:
docker build . -t quay.io/cniackz4/operator:latest
- Push to a public registry:
docker push quay.io/cniackz4/operator:latest
- Create cluster and install operator:
createcluster
kubectl apply -k github.com/minio/operator/resources/
- Use that image in your deployment:
spec:
containers:
- name: minio-operator
image: quay.io/cniackz4/operator:latest
Additional info:
- If using
master
by not setting any tag kubectl apply -k github.com/minio/operator/resources/
then you should use compiled operator that should goes inside a docker container and that can be downloaded via a registry.