Skip to content

feat(plugins): remove obsolete global.greenhouse OptionValues - #2147

Open
mikolajkucinski wants to merge 4 commits into
mainfrom
feat/remove-obsolete-global-values
Open

feat(plugins): remove obsolete global.greenhouse OptionValues#2147
mikolajkucinski wants to merge 4 commits into
mainfrom
feat/remove-obsolete-global-values

Conversation

@mikolajkucinski

@mikolajkucinski mikolajkucinski commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Description

global.greenhouse.clusterNames and global.greenhouse.teamNames are injected into every Plugin and consumed by none(every Helm values file carries the full list of clusters and teams). They are no longer injected, and are stripped from Plugins that already have them persisted in .spec.optionValues.

An expression referencing either value stops the Plugin from reconciling, a chart template ranging over them renders nothing. Migrate to global.greenhouse.clusterName and global.greenhouse.metadata.*.

spec.values changes on every existing HelmRelease.

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI
  • 📦 Chore (Release)
  • ⏩ Revert

Related Tickets & Documents

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help
  • Separate ticket for tests # (issue/pr)

Added to documentation?

  • 📜 README.md
  • 🤝 Documentation pages updated
  • 🙅 no documentation needed
  • (if applicable) generated OpenAPI docs for CRD changes

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes

@github-actions github-actions Bot added size/L documentation Improvements or additions to documentation feature labels Jul 28, 2026
Signed-off-by: Mikolaj Kucinski <osidu12@gmail.com>

On-behalf-of: @SAP <mikolaj.kucinski@sap.com>
Signed-off-by: Mikolaj Kucinski <osidu12@gmail.com>

On-behalf-of: @SAP <mikolaj.kucinski@sap.com>
Signed-off-by: Mikolaj Kucinski <osidu12@gmail.com>

On-behalf-of: @SAP <mikolaj.kucinski@sap.com>
@mikolajkucinski
mikolajkucinski force-pushed the feat/remove-obsolete-global-values branch from a5e1339 to 24ec04e Compare July 29, 2026 16:28
@mikolajkucinski mikolajkucinski changed the title feat(plugin): remove obsolete global.greenhouse OptionValues feat(plugins): remove obsolete global.greenhouse OptionValues Jul 29, 2026
Signed-off-by: Mikolaj Kucinski <osidu12@gmail.com>

On-behalf-of: @SAP <mikolaj.kucinski@sap.com>
@mikolajkucinski
mikolajkucinski marked this pull request as ready for review July 30, 2026 11:53
@mikolajkucinski
mikolajkucinski requested review from a team as code owners July 30, 2026 11:53
Copilot AI review requested due to automatic review settings July 30, 2026 11:53

Copilot AI 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.

Pull request overview

Removes the obsolete global.greenhouse.clusterNames and global.greenhouse.teamNames Helm option values from being generated/injected, and ensures any already-persisted instances are stripped from Plugins/templating flows. The PR also updates documentation to reflect the reduced injected value set and adds regression tests to cover the new behavior.

Changes:

  • Stop generating/injecting global.greenhouse.clusterNames and global.greenhouse.teamNames, and strip them if already present in .spec.optionValues.
  • Add test coverage for “not injected”, “stripped”, and “no mutation” behaviors.
  • Update user/reference/contributor docs with the new injected-value set and migration warnings.

Reviewed changes

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

Show a summary per file
File Description
internal/helm/values.go Removes generation of the retired values and strips them from merged option values.
internal/helm/helm_test.go Updates/extends unit tests to assert retired values are not generated/injected and are stripped safely.
internal/cmd/plugin_template.go Strips retired values from rendered preset values during templating.
internal/cmd/plugin_template_test.go Adds coverage ensuring retired values in presets are not rendered.
docs/user-guides/plugin/metadata-expressions.md Removes retired vars from the list and adds a migration warning.
docs/reference/components/pluginpreset.md Removes retired vars from reference and adds a migration warning.
docs/reference/components/plugin.md Documents the injected Greenhouse values and the removal warning.
docs/contribute/plugins.md Updates contributor docs to reflect the reduced injected value set and links to reference docs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread internal/helm/values.go
})
}

// GetGreenhouseValues generate values for greenhouse core resources in the form:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation feature size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] - Remove obsolete global.greenhouse OptionValues

3 participants