Skip to content

Remove environment overrides (moved to gitops)#84

Merged
lucasmundim merged 1 commit into
mainfrom
cpd-sim-move-overrides-to-gitops
Jul 9, 2026
Merged

Remove environment overrides (moved to gitops)#84
lucasmundim merged 1 commit into
mainfrom
cpd-sim-move-overrides-to-gitops

Conversation

@lucasmundim

@lucasmundim lucasmundim commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

What

Removes deployment/openfilter-pipelines-controller/overrides/ (per-environment value overrides). The generic chart + default values.yaml stay.

Why

This is an open-source repo; it shouldn't carry Plainsight-internal environment/client deployment config. Those overrides now live in the private gitops repo alongside every other component's overrides (and the image-tag.yaml that was already there). The ArgoCD appset reads them from gitops.

⚠️ Merge order

Depends on gitops PR #165, which moves these files into gitops and repoints the appset. Merge #165 first — otherwise the live appset still expects overrides/<env>.yaml here and the sync will fail.

Note

deployment/.../values-production.yaml (a separate, non-appset-referenced file) is left as-is; cleaning that up can be a follow-up.


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

@leandrobmarinho leandrobmarinho left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Review

Summary: Pure deletion of the four per-env Helm override files (overrides/{development,lab,production,staging}.yaml), which now live in gitops. No Go/chart-template/CR changes.

Verified: the diff is deletion-only (0 additions), no workflow/Makefile/appset in this repo references overrides/*.yaml, and values.yaml ships self-contained defaults (valkey.enabled: true, telemetry off), so the chart still installs cleanly. I cross-checked gitops #165: it adds all five env overrides for this component and repoints the appset to $gitops-values/..., so nothing is stranded.

Merge-order (as the PR body flags): gitops #165 must merge FIRST — the live appset reads these override files until #165 repoints it, so merging this before #165 would break the ArgoCD sync. No blocking issues given that ordering.

@shingonoide shingonoide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approving. Independently verified the four deleted override files land byte-identical in gitops #165 (git blob hashes match for development, lab, production, and staging), and #165 repoints the appset valueFiles to the gitops copies. The merge-order warning in the description is accurate and important: the live appset tracks HEAD of this repo and still reads overrides/.yaml, so gitops #165 must merge first. Chart installs cleanly from values.yaml defaults (helm template passes), and the deleted files contain no secrets, only in-cluster DNS names and a Secret name reference.

One small ask for the follow-up that cleans up values-production.yaml: please also sweep the now-stale references to the removed directory. AGENTS.md line 164 still documents deployment/openfilter-pipelines-controller/overrides/, and values.yaml comments at lines 139, 203, and 245 still point readers to overrides/.yaml in this repo.

Per-environment/client value overrides no longer belong in this open-source repo.
They now live in the private gitops repo alongside the other components' overrides;
the ArgoCD appset reads them from there. This repo keeps only the generic chart and
its default values.yaml.

Depends on gitops PR #165 (moves the overrides + repoints the appset). Merge that first.
@lucasmundim lucasmundim force-pushed the cpd-sim-move-overrides-to-gitops branch from 4785cc1 to 4b6eea0 Compare July 9, 2026 21:31
@lucasmundim lucasmundim merged commit 8daa070 into main Jul 9, 2026
4 checks passed

@lucasmundim lucasmundim left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You're right, and sorry I didn't action this before it merged. Swept the stale references in a follow-up — #86: dropped the overrides/ bullet in AGENTS.md and repointed the values.yaml comments (gpuNodeSelector / valkey.enabled / externalValkey) at the gitops overrides path.

On values-production.yaml: I left it out of that PR because it's not a duplicate of the gitops overrides/production.yaml — it carries 38 keys not present there (affinity, podSecurityContext/securityContext, valkey architecture/auth/persistence/resources, replicaCount, image.pullPolicy). It's unreferenced by any appset/CI (so not deployed), but removing it would drop that config rather than move it — so it needs a migrate-to-gitops-or-confirm-dead decision. Flagged in #86.

lucasmundim added a commit that referenced this pull request Jul 9, 2026
Completes shingonoide's #84 cleanup ask. This standalone 'sample production values' file
predates the ArgoCD/gitops overrides pattern and is referenced by nothing (no appset, CI,
Makefile, or docs) — so it deploys nowhere. Verified every production-relevant key is already
covered by the chart defaults + the gitops overrides/production.yaml (telemetry, resources,
security contexts; prod uses external valkey so the bundled-valkey config is moot). The only
key unique to this file — affinity.podAntiAffinity — is a no-op at the effective replicaCount
of 1; if prod ever scales to 2+ replicas, add anti-affinity to the gitops override then.

Also keeps Plainsight-internal prod config (otel-collector host, plainsightai image) out of
this OSS repo.
lucasmundim added a commit that referenced this pull request Jul 10, 2026
* docs: point overrides references at the gitops repo (post-#84)

Follow-up to shingonoide's review on #84: with deployment/.../overrides/ removed (moved to
gitops), sweep the now-stale references so no one looks for the deleted directory:
- AGENTS.md: drop the overrides/ bullet; note overrides live in the gitops repo.
- values.yaml comments (gpuNodeSelector, valkey.enabled, externalValkey): point at the gitops
  overrides instead of overrides/<env>.yaml.

Not touching values-production.yaml here — it carries config NOT present in the gitops
production override (affinity, security contexts, valkey persistence/resources, ...), so its
removal needs a migrate-or-confirm-dead decision, tracked separately.

* chart: remove orphaned values-production.yaml

Completes shingonoide's #84 cleanup ask. This standalone 'sample production values' file
predates the ArgoCD/gitops overrides pattern and is referenced by nothing (no appset, CI,
Makefile, or docs) — so it deploys nowhere. Verified every production-relevant key is already
covered by the chart defaults + the gitops overrides/production.yaml (telemetry, resources,
security contexts; prod uses external valkey so the bundled-valkey config is moot). The only
key unique to this file — affinity.podAntiAffinity — is a no-op at the effective replicaCount
of 1; if prod ever scales to 2+ replicas, add anti-affinity to the gitops override then.

Also keeps Plainsight-internal prod config (otel-collector host, plainsightai image) out of
this OSS repo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants