Skip to content

fix(policy): exempt crossview from the replica-floor HA check#2183

Merged
devantler merged 1 commit into
mainfrom
claude/fix-crossview-replica-floor
Jun 20, 2026
Merged

fix(policy): exempt crossview from the replica-floor HA check#2183
devantler merged 1 commit into
mainfrom
claude/fix-crossview-replica-floor

Conversation

@devantler

Copy link
Copy Markdown
Contributor

🤖 Generated by Claude Code (live investigation of the prod platform)

Problem

validate-replica-floor continuously emits PolicyViolation warnings for crossview and crossview-postgres (both run 1 replica), e.g.:

Deployment crossview/crossview-postgres: [require-replica-floor] fail;
runs 1 replica(s); the platform HA floor is 2 ...

These recurring warnings are noise and can trip the merge-queue event gate.

Why exempt (not scale to 2)

crossview is a deliberately non-HA, SSO-fronted, read-only Crossplane resource dashboard:

  • Its bundled Postgres (crossview-postgres) runs with database.persistence.enabled: false — a single ephemeral session/user store whose loss on restart the chart values comment explicitly accepts. A plain Postgres Deployment genuinely cannot run 2 replicas, and the upstream chart exposes no pod-label value to carry the replica-floor: exempt opt-out (same constraint already documented for plugin-barman-cloud).
  • The frontend shares that single ephemeral store, so a 2nd app replica would add no real availability while the DB remains a SPOF.

So this matches the policy's existing by-name exemption pattern for genuine singletons rather than the opt-in-to-2 path used for HA-capable controllers.

Fix

Add crossview and crossview-postgres to the validate-replica-floor exclude-by-name list (stable names, no ProviderRevision-style hash suffix), with a comment documenting the rationale and the path to real HA (move the bundled Postgres to a replicated store such as CNPG, as the other prod DBs use).

Validation

kubectl kustomize k8s/bases/infrastructure/cluster-policies/ builds; both names render in the policy's exclude list.

🤖 Generated with Claude Code

validate-replica-floor flags crossview and crossview-postgres (both run
1 replica), emitting recurring PolicyViolation warnings. crossview is a
deliberately non-HA, SSO-fronted, read-only Crossplane dashboard: its
bundled Postgres runs with persistence disabled (a single ephemeral
session/user store whose loss on restart the chart values explicitly
accept), so it genuinely cannot run 2, and the chart exposes no pod-label
value to carry the exempt opt-out (same constraint as plugin-barman-cloud).
The frontend shares that single ephemeral store, so a 2nd app replica
adds no real availability while the DB remains a SPOF.

Exempt both by name (stable names, no hash suffix), matching the existing
by-name exemptions. Documents the decision and the path to real HA
(move the bundled Postgres to a replicated store).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@devantler devantler marked this pull request as ready for review June 20, 2026 09:49
@devantler devantler merged commit fab5fc6 into main Jun 20, 2026
8 of 10 checks passed
@devantler devantler deleted the claude/fix-crossview-replica-floor branch June 20, 2026 09:49
@github-project-automation github-project-automation Bot moved this from 🫴 Ready to ✅ Done in 🌊 Project Board Jun 20, 2026
@botantler

botantler Bot commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.69.9 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@botantler botantler Bot added the released label Jun 20, 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.

1 participant