feat: daily CNPG Option A backup shell activity (RAILIANCE-WP-0016)
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s
Build and Publish Container Image / build-and-push (push) Successful in 36s

Add cnpg_option_a_backup resolver, disabled ActivityDefinition, ESO
manifest, worker kubeconfig hostPath, databases RBAC, and unit tests.
Enable after ESO token re-mint and host kubeconfig wiring.
This commit is contained in:
tegwick 2026-07-22 19:50:59 +02:00
parent fee89c4ea1
commit 041ff9b495
11 changed files with 374 additions and 1 deletions

View file

@ -0,0 +1,38 @@
# Optional in-cluster RBAC if using service-account kubeconfig for railiance01
# databases dumps (alternative to host kubeconfig admin). Prefer host kubeconfig
# with limited certs for multi-cluster; this Role covers same-cluster exec.
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: actcore-cnpg-logical-backup
namespace: databases
labels:
app.kubernetes.io/part-of: activity-core
railiance.apps/backup-lane: option-a
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list"]
- apiGroups: [""]
resources: ["pods/exec"]
verbs: ["create"]
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get", "create", "update", "patch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: actcore-cnpg-logical-backup
namespace: databases
labels:
app.kubernetes.io/part-of: activity-core
railiance.apps/backup-lane: option-a
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: actcore-cnpg-logical-backup
subjects:
- kind: ServiceAccount
name: default
namespace: activity-core