feat(plugins): remove obsolete global.greenhouse OptionValues - #2147
Open
mikolajkucinski wants to merge 4 commits into
Open
feat(plugins): remove obsolete global.greenhouse OptionValues#2147mikolajkucinski wants to merge 4 commits into
mikolajkucinski wants to merge 4 commits into
Conversation
mikolajkucinski
force-pushed
the
feat/remove-obsolete-global-values
branch
from
July 29, 2026 16:28
a5e1339 to
24ec04e
Compare
Signed-off-by: Mikolaj Kucinski <osidu12@gmail.com> On-behalf-of: @SAP <mikolaj.kucinski@sap.com>
Contributor
There was a problem hiding this comment.
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.clusterNamesandglobal.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.
| }) | ||
| } | ||
|
|
||
| // GetGreenhouseValues generate values for greenhouse core resources in the form: |
jellonek
approved these changes
Jul 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
global.greenhouse.clusterNamesandglobal.greenhouse.teamNamesare 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
expressionreferencing either value stops the Plugin from reconciling, a chart template ranging over them renders nothing. Migrate toglobal.greenhouse.clusterNameandglobal.greenhouse.metadata.*.spec.valueschanges on every existing HelmRelease.What type of PR is this? (check all applicable)
Related Tickets & Documents
Added tests?
Added to documentation?
Checklist