Draft: Fix Vendoring#496
Conversation
Signed-off-by: dtfranz <dfranz@redhat.com>
|
Skipping CI for Draft Pull Request. |
|
/test all |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dtfranz The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@dtfranz: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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/test-infra repository. I understand the commands that are listed here. |
…les (openshift#496) * fix: stop emitting false-positive deprecated-API warnings for RBAC rules RBAC PolicyRules only specify apiGroups and resources, not versions. The deprecatedGroupResource map was flagging any RBAC rule that referenced a group+resource combination where a beta version had been removed, even when a stable version still exists in the same group. This produced false-positive warnings for operators that use stable APIs like batch/v1 CronJob, autoscaling/v2 HPA, events.k8s.io/v1 Event, policy/v1 PDB, discovery.k8s.io/v1 EndpointSlice, and node.k8s.io/v1 RuntimeClass. Remove these entries from the deprecatedGroupResource map since RBAC rules for them are valid. Keep only PodSecurityPolicy, which was entirely removed in v1.25 with no stable replacement in the policy group. The deprecatedGvk check (for actual versioned manifests in the bundle) is unaffected and continues to correctly flag deprecated objects. Fixes openshift#378 Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca> * refactor: rename deprecatedGroupResource to removedGroupResource Rename identifiers to match actual semantics: this map tracks resources entirely removed from their API group, not merely deprecated. Renames deprecatedGroupResource -> removedGroupResource and warnIfDeprecated -> warnIfRemoved. Suggested-by: Copilot Requested-by: perdasilva Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca> --------- Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca> Upstream-repository: api Upstream-commit: 86d7cedb27dc0ec9a67903e4cf6ea18b31c80562
…les (openshift#496) * fix: stop emitting false-positive deprecated-API warnings for RBAC rules RBAC PolicyRules only specify apiGroups and resources, not versions. The deprecatedGroupResource map was flagging any RBAC rule that referenced a group+resource combination where a beta version had been removed, even when a stable version still exists in the same group. This produced false-positive warnings for operators that use stable APIs like batch/v1 CronJob, autoscaling/v2 HPA, events.k8s.io/v1 Event, policy/v1 PDB, discovery.k8s.io/v1 EndpointSlice, and node.k8s.io/v1 RuntimeClass. Remove these entries from the deprecatedGroupResource map since RBAC rules for them are valid. Keep only PodSecurityPolicy, which was entirely removed in v1.25 with no stable replacement in the policy group. The deprecatedGvk check (for actual versioned manifests in the bundle) is unaffected and continues to correctly flag deprecated objects. Fixes openshift#378 Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca> * refactor: rename deprecatedGroupResource to removedGroupResource Rename identifiers to match actual semantics: this map tracks resources entirely removed from their API group, not merely deprecated. Renames deprecatedGroupResource -> removedGroupResource and warnIfDeprecated -> warnIfRemoved. Suggested-by: Copilot Requested-by: perdasilva Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca> --------- Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca> Upstream-repository: api Upstream-commit: 86d7cedb27dc0ec9a67903e4cf6ea18b31c80562
The
make verifyci has been failing, this is an attempt to fix it.