aenix-io / etcd-operator

New generation community-driven etcd-operator!
https://etcd.aenix.io
Apache License 2.0
90 stars 13 forks source link

Write operator yaml with correct tag into release #161

Closed kvaps closed 6 months ago

kvaps commented 7 months ago

Currently quick start guide provides an insturcion to install operator like this:

kustomize build 'https://github.com/aenix-io/etcd-operator//config/default?ref=main' | kubectl apply -f -

But output yaml contains image with :latest flag, which might install etcd-operator older version than CRDs, and affect problems like that https://github.com/aenix-io/etcd-operator/issues/159

Proposed solution

It would be nice to write resulting YAML file with all the CRDs and correct tag into release.

To make it possbile install it simple as:

kubectl apply -f https://github.com/aenix-io/etcd-operator/releases/download/latest/etcd-operator.crds.yaml
kubectl apply -f https://github.com/aenix-io/etcd-operator/releases/download/latest/etcd-operator.yaml