How to test latest operator - cniackz/public GitHub Wiki

  1. Compile operator
CGO_ENABLED=0 GOOS=linux go build -trimpath -o minio-operator
  1. Create the docker container:
docker build . -t quay.io/cniackz4/operator:latest
  1. Push to a public registry:
docker push quay.io/cniackz4/operator:latest
  1. Create cluster and install operator:

createcluster

kubectl apply -k github.com/minio/operator/resources/

  1. 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.