mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-09 05:25:14 +09:00
v0.5.5 ships the EtcdDefrag and EtcdDefragPolicy API types (a controller plus a cron that stamps scheduled defrag runs). Vendor both CRDs into the etcd-operator-crds package and grant the manager ClusterRole the verbs the new controllers need: defragpolicies read/patch, defrags full CRUD, the two new /status subresources, and cluster-scoped event emission. Backport of #3968 to release-1.6. The automatic cherry-pick could not merge the etcd-operator-crds Makefile and left the conflict markers in the file; resolved by taking the five-CRD list the two new CRDs require. The comment that came with it on main describes an update target that counts annotations and swaps templates/ atomically — this branch has neither, so it is left out rather than carried in as a false description. Everything else applied unchanged. Signed-off-by: Andrey Kolkov <andrey.kolkov@aenix.io> Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
20 lines
791 B
Makefile
20 lines
791 B
Makefile
export NAME=etcd-operator
|
|
export NAMESPACE=cozy-${NAME}
|
|
|
|
include ../../../hack/package.mk
|
|
|
|
# Pinned ref of github.com/cozystack/etcd-operator to vendor the manager
|
|
# ClusterRole from. The Deployment is cozystack-authored (image, cluster
|
|
# domain, VPA), so only the RBAC role is re-vendored; refresh templates/rbac.yaml
|
|
# by hand from charts/etcd-operator/files/manager-role-rules.yaml at this ref.
|
|
# CRDs live in the sibling etcd-operator-crds package.
|
|
ETCD_OPERATOR_REF ?= v0.5.5
|
|
|
|
update:
|
|
@echo "etcd-operator is a cozystack-authored chart; refresh templates/rbac.yaml"
|
|
@echo "from github.com/cozystack/etcd-operator charts/etcd-operator/files/manager-role-rules.yaml @ $(ETCD_OPERATOR_REF)"
|
|
@echo "and re-vendor CRDs via 'make -C ../etcd-operator-crds update'."
|
|
|
|
test:
|
|
helm unittest .
|