-
Notifications
You must be signed in to change notification settings - Fork 0
How to test latest operator
Cesar Celis Hernandez edited this page Feb 3, 2023
·
2 revisions
- 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
- If using
master
by not setting any tagkubectl 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.