aenix-io / etcd-operator

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

CRD updating in helm-chart using pre-commit #119

Closed hiddenmarten closed 7 months ago

hiddenmarten commented 7 months ago

For an easier development process it could be implemented in Makefile and added to pre-commit.

As a start point, we could use this script:

mkdir -p tmp && cd config/manager &&  \
kustomize edit set image ghcr.io/aenix-io/etcd-operator=ghcr.io/aenix-io/etcd-operator:latest && \
cd $OLDPWD && kustomize build config/default > tmp/manifest.yaml && \
cd tmp && yq -s '.kind + .metadata.name' --no-doc manifest.yaml