Skip to content

chore(ascoachingogvaner): cut over to static v1.1.0, drop dead CNPG db config#1584

Merged
botantler[bot] merged 3 commits into
mainfrom
chore/ascoachingogvaner-drop-cnpg-config
May 26, 2026
Merged

chore(ascoachingogvaner): cut over to static v1.1.0, drop dead CNPG db config#1584
botantler[bot] merged 3 commits into
mainfrom
chore/ascoachingogvaner-drop-cnpg-config

Conversation

@devantler
Copy link
Copy Markdown
Contributor

@devantler devantler commented May 26, 2026

🤖 AI-generated PR — created by Claude Code (Opus 4.7). Please review carefully before merging.

What

Cuts the ascoachingogvaner tenant over to the fully static site (devantler-tech/ascoachingogvaner#9, released v1.1.0) and removes the platform-side config that existed only for the now-deleted database. This is an atomic cutover — the artifact pin and the overlay flip together in a single merge:

  1. sync.yaml — bump OCIRepository ref.tag 1.0.1 → 1.1.0 (the static release; manifests:1.1.0 is published in GHCR). The $imagepolicy setter marker is preserved.
  2. kustomization-patch.yaml — remove the postgresql.cnpg.io/Cluster ascoaching-db patch (HTTPRoute hostname patch kept).
  3. networkpolicy.yaml (CiliumNetworkPolicy) — drop the DB-only rules (cnpg-system 8000/5432, monitoring 9187, intra-namespace ingress/egress, kube-apiserver egress) and correct the gateway-ingress port 3000 → 8080 (the static app is unprivileged nginx on 8080). DNS egress kept.

Why atomic

Splitting these breaks prod:

  • Tag bump alone → the leftover CNPG patch matches nothing in the 1.1.0 artifact → no matches for Id …Cluster.ascoaching-db → tenant build fails.
  • Overlay cleanup alone (tag still 1.0.1) → netpol flips to 8080 + drops DB rules while the old app still serves on 3000 with a live DB → old app goes dark.

flux-image-automation cannot advance the tag itself — it pushes directly to protected main and has never landed a commit — so the bump is done here.

⚠️ Prod impact

Merging rolls the static site live and, via prune: true, deletes the CNPG Cluster/ascoaching-db (intended by #9; irreversible DB teardown).

Coordination

Validation

Both pass on this branch (rebased on current main):

  • ksail --config ksail.prod.yaml workload validate → ✔ 260 files validated
  • ksail workload validate → ✔ 260 files validated

…rsion

ascoachingogvaner was converted to a fully static site
(devantler-tech/ascoachingogvaner#9, released v1.1.0), removing its
CloudNativePG Cluster (ascoaching-db) and admin-code secret. The
platform overlay still referenced the now-absent database:

- Remove the CNPG Cluster/ascoaching-db patch from the hetzner provider
  kustomization-patch. Once the tenant OCI artifact no longer ships the
  Cluster, this patch target matches nothing and the kustomize build
  fails ("no matches for Id"), stalling tenant reconciliation. The
  HTTPRoute hostname patch is kept.
- Tighten the base CiliumNetworkPolicy: drop the cnpg-system ingress
  (8000/5432), the postgres-exporter metrics ingress (9187), and the
  intra-namespace + kube-apiserver rules that existed only for the DB.
  Gateway ingress is corrected from 3000 to 8080 to match the static
  nginx container (the SvelteKit :3000 server is gone). DNS egress kept.

Hold until the ascoachingogvaner OCIRepository tag advances to 1.1.0;
coordinates with #1582.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 26, 2026 20:22
@devantler devantler marked this pull request as ready for review May 26, 2026 20:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the platform’s Hetzner overlay and base NetworkPolicy for the ascoachingogvaner tenant to reflect its conversion to a fully static site, removing now-obsolete CloudNativePG-related configuration that would otherwise break Flux/Kustomize reconciliation once the DB resources disappear from the tenant artifact.

Changes:

  • Removes the Hetzner-provider Flux Kustomization.spec.patches entry that targeted the removed postgresql.cnpg.io/Cluster (ascoaching-db).
  • Simplifies the tenant CiliumNetworkPolicy by dropping DB-only ingress/egress rules and updating gateway ingress to the new app port.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
k8s/providers/hetzner/apps/ascoachingogvaner/patches/kustomization-patch.yaml Removes the now-dead CNPG Cluster patch while keeping the HTTPRoute hostname patch.
k8s/bases/apps/ascoachingogvaner/networkpolicy.yaml Drops DB-specific network rules and changes gateway ingress port to 8080 for the static nginx site.

Comment thread k8s/bases/apps/ascoachingogvaner/networkpolicy.yaml
devantler and others added 2 commits May 26, 2026 23:51
…over)

Advance the pinned manifests artifact from 1.0.1 to 1.1.0 so this PR
flips the artifact and the overlay atomically. image-automation cannot
do this (it pushes directly to protected main and has never landed a
commit), so the tag is bumped here. The $imagepolicy setter marker is
preserved.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@devantler devantler changed the title chore(ascoachingogvaner): drop dead CNPG db config after static conversion chore(ascoachingogvaner): cut over to static v1.1.0, drop dead CNPG db config May 26, 2026
@botantler botantler Bot enabled auto-merge May 26, 2026 21:53
@botantler botantler Bot added this pull request to the merge queue May 26, 2026
Merged via the queue into main with commit 57f35b2 May 26, 2026
9 checks passed
@botantler botantler Bot deleted the chore/ascoachingogvaner-drop-cnpg-config branch May 26, 2026 22:48
@github-project-automation github-project-automation Bot moved this from 🫴 Ready to ✅ Done in 🌊 Project Board May 26, 2026
devantler pushed a commit that referenced this pull request May 26, 2026
Resolve ascoachingogvaner OCIRepository conflict in favor of native semver
selection (this branch's approach) over the #1584 pinned tag bump to 1.1.0.
The #1584 CNPG-cleanup changes (networkpolicy + kustomization-patch) merge
cleanly and are kept.
@botantler
Copy link
Copy Markdown
Contributor

botantler Bot commented May 27, 2026

🎉 This PR is included in version 1.2.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@botantler botantler Bot added the released label May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants