Skip to content

Update the bundle version for VAP and add it as a release step.#4759

Open
bexxmodd wants to merge 8 commits intokubernetes-sigs:mainfrom
bexxmodd:vap/semver1
Open

Update the bundle version for VAP and add it as a release step.#4759
bexxmodd wants to merge 8 commits intokubernetes-sigs:mainfrom
bexxmodd:vap/semver1

Conversation

@bexxmodd
Copy link
Copy Markdown
Contributor

What type of PR is this?
/kind bug
Which issue(s) this PR fixes:
Fixes #4739

Does this PR introduce a user-facing change?:

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 15, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: bexxmodd
Once this PR has been reviewed and has the lgtm label, please assign rikatz for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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 the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Apr 15, 2026
@youngnick
Copy link
Copy Markdown
Contributor

/retest

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Apr 16, 2026
Comment thread config/crd/standard/gateway.networking.k8s.io_vap_safeupgrades.yaml Outdated
@k8s-ci-robot k8s-ci-robot requested a review from kflynn April 16, 2026 19:23
Copy link
Copy Markdown
Contributor

@mikemorris mikemorris left a comment

Choose a reason for hiding this comment

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

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

@mikemorris: GitHub didn't allow me to request PR reviews from the following users: jaiveerk.

Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs.

Details

In response to this:

/cc @jaiveerk @kflynn

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 16, 2026
Copy link
Copy Markdown
Contributor

@kflynn kflynn left a comment

Choose a reason for hiding this comment

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

My only concern here is allowing v0 tags in the Standard-channel VAP, which is a bit of a strange concern in practice, but take a look. 🙂 Thanks for jumping on this! 🙂

Comment on lines +24 to +30
- expression: |
object.spec.group != 'gateway.networking.k8s.io' ||
(has(object.metadata.annotations) && object.metadata.annotations.exists(k, k == 'gateway.networking.k8s.io/bundle-version') &&
(object.metadata.annotations['gateway.networking.k8s.io/bundle-version'] == 'v0.0.0-dev' ||
(object.metadata.annotations['gateway.networking.k8s.io/bundle-version'].startsWith('v1.') &&
!matches(object.metadata.annotations['gateway.networking.k8s.io/bundle-version'], '^v1\\.[0-4](\\.|$)'))))
message: "Installing CRDs with version other than v0.0.0-dev or v1.5+ is prohibited by default. Uninstall ValidatingAdmissionPolicy safe-upgrades.gateway.networking.k8s.io to install other versions."
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.

I don't think we should treat v0 tags specially here, right? If you're already on Standard channel, you shouldn't be able to install a monthly over it -- and I realize that that looks odd, but monthlies don't include this resource at all (unless I'm really wrong) so this will only come up if you've installed with the resources on main, which... you shouldn't be doing. 🙂

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.

v0.0.0-dev is only handled in experimental vap now.

Comment thread tests/vap/vap_test.go Outdated
{"v1.0.0", true},
{"v1.1.0", true},
{"v1.3.0", true},
{"v0.0.0-dev", false},
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.

Likewise I feel like this should be channel-dependent...

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.

Updated tests to test for each channel separately.

Comment thread RELEASE.md
Comment thread RELEASE.md
@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 Apr 20, 2026
@bexxmodd
Copy link
Copy Markdown
Contributor Author

/retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. release-note-none Denotes a PR that doesn't merit a release note. 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.

Incorrect Bundle Version Annotation on VAP/VAPB for Gateway 1.5.1

5 participants