Skip to content

🐛 (helm/v2-alpha): remove deprecated v1-alpha plugin entry from PROJECT file#5436

Merged
k8s-ci-robot merged 1 commit intokubernetes-sigs:masterfrom
camilamacedo86:fix-project-file-helm-v2
Feb 5, 2026
Merged

🐛 (helm/v2-alpha): remove deprecated v1-alpha plugin entry from PROJECT file#5436
k8s-ci-robot merged 1 commit intokubernetes-sigs:masterfrom
camilamacedo86:fix-project-file-helm-v2

Conversation

@camilamacedo86
Copy link
Member

@camilamacedo86 camilamacedo86 commented Feb 5, 2026

When scaffolding helm/v2-alpha plugin, the deprecated helm.kubebuilder.io/v1-alpha entry now gets automatically removed from the PROJECT file. This prevents confusion and clutter since v2-alpha is a complete replacement for v1-alpha and both entries should not coexist.

The removal is safe and only happens if the v1-alpha entry exists, with graceful handling for projects that don't have it or use older config versions.

Closes: #5434

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: camilamacedo86

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Feb 5, 2026
Copy link

Copilot AI left a comment

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 attempts to address issue #5434 by removing the deprecated helm.kubebuilder.io/v1-alpha plugin entry from the PROJECT file when scaffolding the helm/v2-alpha plugin. The intent is to prevent confusion from having both v1-alpha and v2-alpha entries coexisting in the PROJECT file.

Changes:

  • Added a new removeV1AlphaPluginEntry() method to safely remove the v1-alpha plugin entry from the config
  • Called this method from PostScaffold() with the intention of cleaning up deprecated entries
  • Added comprehensive tests for the removal logic

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
pkg/plugins/optional/helm/v2alpha/edit.go Added constant for v1-alpha plugin key, implemented removeV1AlphaPluginEntry() method, and integrated it into PostScaffold()
pkg/plugins/optional/helm/v2alpha/edit_test.go Added unit tests for removeV1AlphaPluginEntry() and PostScaffold integration

…ECT file

When scaffolding helm/v2-alpha plugin, the deprecated helm.kubebuilder.io/v1-alpha
entry now gets automatically removed from the PROJECT file during PostScaffold.
This prevents confusion and clutter since v2-alpha is a complete replacement for
v1-alpha and both entries should not coexist.

The removal is safe and only happens if the v1-alpha entry exists, with graceful
handling for projects that don't have it or use older config versions.
@camilamacedo86 camilamacedo86 force-pushed the fix-project-file-helm-v2 branch from d3cade8 to 8061ce2 Compare February 5, 2026 10:10
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 5, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

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

@camilamacedo86 camilamacedo86 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 5, 2026
@k8s-ci-robot k8s-ci-robot merged commit d8a55b3 into kubernetes-sigs:master Feb 5, 2026
23 of 24 checks passed
@camilamacedo86 camilamacedo86 deleted the fix-project-file-helm-v2 branch February 5, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-blocker size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide fix for duplicate helm plugin in PROJECT file

3 participants