Skip to content

[Backport release-1.5] fix(cozystack-basics): gate the hostname VAP policies on the VAP API - #3876

Merged
myasnikovdaniil merged 1 commit into
release-1.5from
backport-3409-to-release-1.5
Aug 19, 2026
Merged

[Backport release-1.5] fix(cozystack-basics): gate the hostname VAP policies on the VAP API#3876
myasnikovdaniil merged 1 commit into
release-1.5from
backport-3409-to-release-1.5

Conversation

@github-actions

Copy link
Copy Markdown

Description

Backport of #3409 to release-1.5.

@github-actions

Copy link
Copy Markdown
Author

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin backport-3409-to-release-1.5
git worktree add --checkout .worktree/backport-3409-to-release-1.5 backport-3409-to-release-1.5
cd .worktree/backport-3409-to-release-1.5
git reset --hard HEAD^
git cherry-pick -x 267ea513adeee270e97f8d91d21b6242fc09f8f1
git push --force-with-lease

Backport of #3409 to release-1.5.

gateway-hostname-policy.yaml and route-hostname-policy.yaml rendered
their ValidatingAdmissionPolicy and binding documents unconditionally,
so installing the chart against an API server that does not serve
admissionregistration.k8s.io/v1/ValidatingAdmissionPolicy failed.
Guard both on the capability, matching the existing pattern in
packages/core/platform/templates/deletion-protection.yaml, and declare
the capability in the two rendering test suites so they keep exercising
the policies.

hostname-policies-capability-gate_test.yaml pins the absent-API case at
suite level, since helm-unittest merges per-test capabilities into the
suite's rather than replacing them.

The upstream change also gated a third template,
ingress-hostname-policy.yaml. That legacy-Ingress hostname policy
landed on main in d89ad7069 and was never backported, so it does not
exist on release-1.5 and is deliberately excluded here: importing it
would ship an unreviewed admission policy that starts rejecting tenant
Ingress hostnames in a patch release.

Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
@myasnikovdaniil
myasnikovdaniil force-pushed the backport-3409-to-release-1.5 branch from 0efaf26 to 9de1f16 Compare August 17, 2026 15:29
@github-actions github-actions Bot added the size/M This PR changes 30-99 lines, ignoring generated files label Aug 17, 2026
@myasnikovdaniil
myasnikovdaniil marked this pull request as ready for review August 17, 2026 16:28
@github-actions github-actions Bot added area/release Issues or PRs related to release tooling (changelog, backport, release pipeline) kind/bug Categorizes issue or PR as related to a bug labels Aug 18, 2026
@myasnikovdaniil
myasnikovdaniil merged commit 99a1d5b into release-1.5 Aug 19, 2026
10 of 14 checks passed
@myasnikovdaniil
myasnikovdaniil deleted the backport-3409-to-release-1.5 branch August 19, 2026 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/release Issues or PRs related to release tooling (changelog, backport, release pipeline) kind/bug Categorizes issue or PR as related to a bug size/M This PR changes 30-99 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant