stack-orchestrator/stack_orchestrator/data
Prathamesh Musale 2535e6a3ef so-o2o: replace etcd-level backup with kubectl caddy cert backup
Remove the etcd+PKI persistence and whitelist-cleanup machinery. Replace
with a CronJob that dumps manager=caddy Secrets to a hostPath under
{kind-mount-root}/caddy-cert-backup/ every 5 minutes, and a Python
restore step that applies the file before the Caddy Deployment starts on
a fresh cluster.

Key changes:
- New components/ingress/caddy-cert-backup.yaml: SA/Role/RoleBinding +
  CronJob pinned to the control-plane node. Atomic write via tmp+rename.
- helpers.py:
  - Delete _get_etcd_host_path_from_kind_config, _clean_etcd_keeping_certs,
    _capture_etcd_image, _read_etcd_image_ref, _etcd_image_ref_path, and
    the etcd+PKI block in _generate_kind_mounts
  - Simplify create_cluster (no pre-cleanup, no post-capture)
  - install_ingress_for_kind splits YAML apply into 3 phases: namespace +
    RBAC + CM + Service + IngressClass → restore caddy secrets → Caddy
    Deployment → install backup CronJob. Caddy pod can't exist until
    phase 3, so certs are always in place before startup.
- deploy_k8s.py: thread kind_mount_root into install_ingress_for_kind.

Feature only active when kind-mount-root is set in the spec. No new spec
keys. Backup survives kind delete via the existing /srv/kind mount point.

Net: -139 LoC in helpers.py (removes docker-in-docker shell-in-Python),
+100 LoC of YAML, +90 LoC of straightforward Python.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 08:48:10 +00:00
..
compose Add --update option to deploy create 2026-01-29 08:25:05 -06:00
compose-jobs Add Job and secrets support for k8s-kind deployments (#995) 2026-03-11 03:56:21 +00:00
config Add --update option to deploy create 2026-01-29 08:25:05 -06:00
container-build Add --update option to deploy create 2026-01-29 08:25:05 -06:00
k8s/components/ingress so-o2o: replace etcd-level backup with kubectl caddy cert backup 2026-04-17 08:48:10 +00:00
stacks Migrate canonical source from Gitea to GitHub (#738) 2026-04-02 10:58:14 +05:30
__init__.py Rename app -> stack_orchestrator (#625) 2023-11-07 00:06:55 -07:00
container-image-list.txt Add a stack for running uniswap frontend on urbit (#670) 2023-12-04 18:39:19 +05:30
npm-package-list.txt rename laconic-sdk to registry-sdk (#897) 2024-07-31 08:01:02 +00:00
pod-list.txt Upgrade release versions for merkl and sushiswap watchers (#642) 2023-11-13 17:36:37 +05:30
repository-list.txt rename laconic-sdk to registry-sdk (#897) 2024-07-31 08:01:02 +00:00
version.txt Rename app -> stack_orchestrator (#625) 2023-11-07 00:06:55 -07:00