Skip to content

Conversation

@perdasilva
Copy link
Contributor

@perdasilva perdasilva commented Jan 30, 2026

The Helm and Boxcutter appliers require different permissions:

  • Helm applier requires update clusterextensions/finalizers
  • Boxcutter applier requires update on clusterextensionrevisions/finalizers

This PR:

  • adds helper functions to check whether a feature gate is enabled on the cluster
  • skips the helm applier specific test is the boxcutter runtime feature gate is enabled
  • adds the boxcutter applier specific test, which is skipped if the feature is disabled
  • pulls in openshift/api as a dependency to get access to the feature gate names (and bumps client-go to get over some build errors)
  • refactors the test code slightly to use named scenario constants instead of magic ints

And most importantly removes the check against the Installed condition in the test. This check doesn't make sense the RBAC can change at any time during the extension lifecycle. Therefore, the extension could still be installed even if the preflight checks fail. As such, it is not strictly necessary.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jan 30, 2026
@openshift-ci-robot
Copy link

@perdasilva: This pull request explicitly references no jira issue.

Details

In response to this:

The Helm and Boxcutter appliers require different permissions:

  • Helm applier requires update clusterextensions/finalizers
  • Boxcutter applier requires update on clusterextensionrevisions/finalizers

This PR:

  • adds helper functions to check whether a feature gate is enabled on the cluster
  • skips the helm applier specific test is the boxcutter runtime feature gate is enabled
  • adds the boxcutter applier specific test, which is skipped if the feature is disabled
  • pulls in openshift/api as a dependency to get access to the feature gate names
  • refactors the test code slightly to use named scenario constants instead of magic ints

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot requested review from bentito and tmshort January 30, 2026 14:15
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 30, 2026
@perdasilva perdasilva changed the title NO-ISSUE: Update preflight auth checks for Boxcutter feature gate OPRUN-4446: Update preflight auth checks for Boxcutter feature gate Jan 30, 2026
@openshift-ci-robot
Copy link

openshift-ci-robot commented Jan 30, 2026

@perdasilva: This pull request references OPRUN-4446 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.22.0" version, but no target version was set.

Details

In response to this:

The Helm and Boxcutter appliers require different permissions:

  • Helm applier requires update clusterextensions/finalizers
  • Boxcutter applier requires update on clusterextensionrevisions/finalizers

This PR:

  • adds helper functions to check whether a feature gate is enabled on the cluster
  • skips the helm applier specific test is the boxcutter runtime feature gate is enabled
  • adds the boxcutter applier specific test, which is skipped if the feature is disabled
  • pulls in openshift/api as a dependency to get access to the feature gate names
  • refactors the test code slightly to use named scenario constants instead of magic ints

And most importantly removes the check against the Installed condition in the test. This check doesn't make sense the RBAC can change at any time during the extension lifecycle. Therefore, the extension could still be installed even if the preflight checks fail. As such, it is not strictly necessary.

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 openshift-eng/jira-lifecycle-plugin repository.

@perdasilva perdasilva force-pushed the boxcutter-preflight-perms branch from a8305ea to ae84ee5 Compare January 30, 2026 14:21
@perdasilva perdasilva force-pushed the boxcutter-preflight-perms branch 2 times, most recently from 6ed4658 to 05a129d Compare January 30, 2026 14:41
@openshift-ci-robot
Copy link

openshift-ci-robot commented Jan 30, 2026

@perdasilva: This pull request references OPRUN-4446 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.22.0" version, but no target version was set.

Details

In response to this:

The Helm and Boxcutter appliers require different permissions:

  • Helm applier requires update clusterextensions/finalizers
  • Boxcutter applier requires update on clusterextensionrevisions/finalizers

This PR:

  • adds helper functions to check whether a feature gate is enabled on the cluster
  • skips the helm applier specific test is the boxcutter runtime feature gate is enabled
  • adds the boxcutter applier specific test, which is skipped if the feature is disabled
  • pulls in openshift/api as a dependency to get access to the feature gate names (and bumps client-go to get over some build errors)
  • refactors the test code slightly to use named scenario constants instead of magic ints

And most importantly removes the check against the Installed condition in the test. This check doesn't make sense the RBAC can change at any time during the extension lifecycle. Therefore, the extension could still be installed even if the preflight checks fail. As such, it is not strictly necessary.

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 openshift-eng/jira-lifecycle-plugin repository.

@perdasilva perdasilva force-pushed the boxcutter-preflight-perms branch 2 times, most recently from 66cfa6e to fe70b36 Compare January 30, 2026 15:20
Per Goncalves da Silva added 2 commits January 30, 2026 16:28
…ht test

Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
@perdasilva perdasilva force-pushed the boxcutter-preflight-perms branch from fe70b36 to 9f5ac0a Compare January 30, 2026 15:28
Signed-off-by: Per Goncalves da Silva <pegoncal@redhat.com>
@perdasilva perdasilva force-pushed the boxcutter-preflight-perms branch from 9f5ac0a to 656c63c Compare January 30, 2026 16:06
Copy link
Contributor

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

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

It seems all great for me 👍
The ID tracked in the JSON is fixed now . Cool 🎉

@camilamacedo86
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 30, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 30, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: camilamacedo86, perdasilva

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

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 30, 2026

@perdasilva: all tests passed!

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

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. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants