1f22ec2aa7
## Why v0.2.2 (bind-operator #10) stamps a `bind.unkin.net/config-hash` on the pod template, so a ConfigMap or `keys.conf` change flips the hash and triggers an operator-driven rolling restart. This fixes the class of bug where config edits (ACLs, forwarders, `validate-except`, primary address, TSIG rotation) never reached running pods — they held a startup snapshot and needed manual pod deletes. ## Changes - Bump the operator image (`bind-system/deployment.yaml`) and the pulled CRD bundle URL (`bind-system/kustomization.yaml`) to `v0.2.2`. - Bump the `bind-tsig-api` image (`bind-internal/tsig-api/tsig-api.yaml`) to `v0.2.2`. CRDs are unchanged from v0.2.1 (controller-only change), so the generated kubeconform schemas need no update. ## Validation - `bind-system` renders with the v0.2.2 CRD bundle; pre-commit clean. ## Deploy note When the v0.2.2 operator first reconciles it stamps the config-hash annotation, triggering **one rolling restart per bind StatefulSet** — expected, and it also pulls in any already-pending config. From then on, config changes roll pods automatically. Reviewed-on: #254 Co-authored-by: Ben Vincent <ben@unkin.net> Co-committed-by: Ben Vincent <ben@unkin.net>
28 lines
979 B
YAML
28 lines
979 B
YAML
---
|
|
# Companion TSIG API. The operator reconciles this into a Deployment, Service,
|
|
# ConfigMap, master-token Secret and namespaced RBAC. vault-plugin-secrets-bind-tsig
|
|
# calls it to create/rotate/delete TSIG keys, which it does by managing
|
|
# BindTSIGKey resources in this namespace (the operator reconciles the material).
|
|
#
|
|
# The master access token Secret (bind-tsig-api-token) is generated by the
|
|
# operator if absent; a VaultStaticSecret may later pre-seed/overwrite it so the
|
|
# token is sourced from Vault rather than generated in-cluster.
|
|
apiVersion: bind.unkin.net/v1alpha1
|
|
kind: BindTSIGAPI
|
|
metadata:
|
|
name: bind-tsig-api
|
|
namespace: bind-internal
|
|
spec:
|
|
image: git.unkin.net/unkin/bind-tsig-api:v0.2.2
|
|
replicas: 1
|
|
port: 8443
|
|
# targetNamespace defaults to this resource's namespace (bind-internal), where
|
|
# the authoritative cluster and its keys live.
|
|
resources:
|
|
requests:
|
|
cpu: 25m
|
|
memory: 64Mi
|
|
limits:
|
|
cpu: 250m
|
|
memory: 128Mi
|