Skip to content

CNTRLPLANE-194: add auth-api-bootstrap stage to bootkube.sh template #9424

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

everettraven
Copy link
Contributor

@everettraven everettraven commented Jan 31, 2025

Description

Adds a new bootstrapping stage for the cluster-authentication-operator to render the RoleBindingRestriction CRD to the set of bootstrap manifests.

Motivation

We are working on moving the management of the RoleBindingRestriction CRD to the cluster-authentication-operator instead of it being managed by CVO as outlined in openshift/enhancements#1726. The RoleBindingRestriction CRD is required in the bootstrapping manifests as the authorization.openshift.io/RestrictSubjectBindings admission plugin will reject creation of system:* RoleBinding resources during the installation process if the RoleBindingRestriction API does not exist.

I did some testing to ensure that we can gradually transition ownership without clashing with CVO by merging, in order:

Copy link
Contributor

openshift-ci bot commented Jan 31, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 31, 2025
@everettraven everettraven changed the title WIP: add auth-api-bootstrap stage to bootkube.sh template CNTRLPLANE-194: add auth-api-bootstrap stage to bootkube.sh template Feb 3, 2025
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Feb 3, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Feb 3, 2025

@everettraven: This pull request references CNTRLPLANE-194 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 story to target the "4.19.0" version, but no target version was set.

In response to this:

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-robot
Copy link
Contributor

openshift-ci-robot commented Feb 3, 2025

@everettraven: This pull request references CNTRLPLANE-194 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 story to target the "4.19.0" version, but no target version was set.

In response to this:

Description

Adds a new bootstrapping stage for the cluster-authentication-operator to render the RoleBindingRestriction CRD to the set of bootstrap manifests.

Motivation

We are working on moving the management of the RoleBindingRestriction CRD to the cluster-authentication-operator instead of it being managed by CVO as outlined in openshift/enhancements#1726. The RoleBindingRestriction CRD is required in the bootstrapping manifests as the authorization.openshift.io/RestrictSubjectBindings admission plugin will reject creation of system:* RoleBinding resources during the installation process if the RoleBindingRestriction API does not exist.

I did some testing to ensure that we can gradually transition ownership without clashing with CVO by merging, in order:

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.

@everettraven everettraven force-pushed the feature/auth-bootstrapping branch from a47868c to 7613c38 Compare February 3, 2025 16:41
@everettraven everettraven marked this pull request as ready for review February 3, 2025 16:41
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 3, 2025
@everettraven
Copy link
Contributor Author

Can't merge until openshift/cluster-authentication-operator#748 has merged first.

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 3, 2025
@openshift-ci openshift-ci bot requested review from bfournie and rwsu February 3, 2025 16:42
@everettraven everettraven force-pushed the feature/auth-bootstrapping branch from 7613c38 to cc1703c Compare February 10, 2025 15:00
@liouk
Copy link
Member

liouk commented Feb 10, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 10, 2025
@patrickdillon
Copy link
Contributor

/approve

If you could update your commit message according to our guidelines that would be great: https://github.com/openshift/installer/blob/main/CONTRIBUTING.md#commit-message-format

The text of your PR description should work well.

Copy link
Contributor

openshift-ci bot commented Feb 12, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: patrickdillon

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

The pull request process is described here

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 openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 12, 2025
using the cluster-authentication-operator
render subcommand to render the RoleBindingRestriction
CRD to the set of bootstrap manifests.

Signed-off-by: Bryce Palmer <[email protected]>
@everettraven everettraven force-pushed the feature/auth-bootstrapping branch from cc1703c to 9d0ac16 Compare February 12, 2025 20:43
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Feb 12, 2025
@everettraven
Copy link
Contributor Author

@patrickdillon I updated the commit message and added some flags that we recently added in https://github.com/openshift/cluster-authentication-operator/pull/748/files#diff-9169c482883c2b2e5f4038e6cd3c2505765da290271b6c1c01c5dc847266e59bR31-R38

This PR should still be held until the cluster-authentication-operator PR merges, but feel free to let me know if anything else needs any further updates.

Thanks!

@liouk
Copy link
Member

liouk commented Feb 14, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 14, 2025
@everettraven
Copy link
Contributor Author

/hold cancel

/retest

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 20, 2025
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD dcaf668 and 2 for PR HEAD 9d0ac16 in total

Copy link
Contributor

openshift-ci bot commented Feb 21, 2025

@everettraven: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-vsphere-host-groups-ovn-custom-no-upgrade 7613c38ab2be834992b790a91398e7ed6195935b link false /test e2e-vsphere-host-groups-ovn-custom-no-upgrade
ci/prow/okd-scos-e2e-aws-ovn 9d0ac16 link false /test okd-scos-e2e-aws-ovn
ci/prow/e2e-vsphere-externallb-ovn 9d0ac16 link false /test e2e-vsphere-externallb-ovn

Full PR test history. Your PR dashboard.

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.

@openshift-merge-bot openshift-merge-bot bot merged commit d9bef36 into openshift:main Feb 21, 2025
17 of 19 checks passed
render \
--asset-output-dir=/assets/auth-api-bootstrap/manifests \
--rendered-manifest-dir=/assets/manifests \
--cluster-profile=${CLUSTER_PROFILE_ANNOTATION} \
Copy link
Member

Choose a reason for hiding this comment

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

This seems to breaks nightlies:

Feb 24 08:13:18 ip-10-0-103-202 bootkube.sh[124202]: Rendering auth api manifests...
Feb 24 08:13:18 ip-10-0-103-202 bootkube.sh[124202]: /usr/local/bin/bootkube.sh: line 134: CLUSTER_PROFILE_ANNOTATION: unbound variable
Feb 24 08:13:18 ip-10-0-103-202 systemd[1]: bootkube.service: Main process exited, code=exited, status=1/FAILURE

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.

5 participants