Skip to content

feat(pluginpresets): expose PluginDefinition version in PluginPreset status#2076

Merged
Zaggy21 merged 4 commits into
mainfrom
feat/expose-deployed-pd-version-in-pp-status
Jun 17, 2026
Merged

feat(pluginpresets): expose PluginDefinition version in PluginPreset status#2076
Zaggy21 merged 4 commits into
mainfrom
feat/expose-deployed-pd-version-in-pp-status

Conversation

@Zaggy21

@Zaggy21 Zaggy21 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Description

This PR adds PluginDefinitionVersion to PluginPresetStatus. The field is populated on every reconcile and exposed as a print column.

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

…status

On-behalf-of: @SAP krzysztof.zagorski@sap.com
Signed-off-by: Zaggy21 <k.zaggy@gmail.com>
Copilot AI review requested due to automatic review settings June 16, 2026 12:34
@Zaggy21 Zaggy21 requested a review from a team as a code owner June 16, 2026 12:34
@Zaggy21 Zaggy21 linked an issue Jun 16, 2026 that may be closed by this pull request
2 tasks

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

This PR adds visibility into which PluginDefinition version a PluginPreset references by persisting the version into PluginPreset.Status and exposing it via a kubectl print column, aligning with issue #1996’s goal of making the deployed/reference version quickly observable.

Changes:

  • Add status.pluginDefinitionVersion to PluginPresetStatus and expose it as a kubebuilder print column.
  • Populate PluginDefinitionVersion during PluginPreset reconciliation by resolving the referenced (Cluster-)PluginDefinition spec.
  • Extend controller tests to assert that the status version is set.

Reviewed changes

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

File Description
internal/controller/plugin/pluginpreset_controller.go Populate PluginDefinitionVersion in status during reconcile.
internal/controller/plugin/pluginpreset_controller_test.go Add assertion that PluginDefinitionVersion is set as expected.
charts/manager/crds/greenhouse.sap_pluginpresets.yaml Add printer column and schema property for status.pluginDefinitionVersion.
api/v1alpha1/pluginpreset_types.go Add PluginDefinitionVersion field and printcolumn marker to the API type.

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

Comment thread internal/controller/plugin/pluginpreset_controller.go
@github-actions github-actions Bot added size/M documentation Improvements or additions to documentation labels Jun 16, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Krzysztof Zagorski <k.zaggy@gmail.com>
@Zaggy21 Zaggy21 merged commit 5f50e71 into main Jun 17, 2026
27 checks passed
@Zaggy21 Zaggy21 deleted the feat/expose-deployed-pd-version-in-pp-status branch June 17, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core-apis documentation Improvements or additions to documentation feature helm-charts size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] - Expose deployed PD version in PP Status

3 participants