Repository navigation
Add Back node-bootstrapper Service Account creation - #15896
Conversation
|
/test unit |
|
ci/openshift-jenkins/extended_conformance_install_update is caused by a problem in openshift-ansible, see openshift/openshift-ansible#5146 |
|
/test extended_conformance_install_update |
| LegacyMasterKubeletAdminClientUsername = "system:master" | ||
| MasterKubeletAdminClientUsername = "system:openshift-node-admin" | ||
|
|
||
| InfraNodeBootstrapServiceAccountName = "system:" + NodeBootstrapRoleName |
There was a problem hiding this comment.
this is not the name of the service account... this belongs more in the controller_policy.go file than here... it's more akin to the template service broker
There was a problem hiding this comment.
k8s defines the name as apiconfig.NodeBootstrapperClusterRoleName. Can we use the name from k8s.io/kubernetes/cmd/kubeadm/app/phases/apiconfig?
There was a problem hiding this comment.
no, don't reference code within kubeadm
There was a problem hiding this comment.
@liggitt what do you mean with "this is not the name of the service account" ?
There was a problem hiding this comment.
the constant is InfraNodeBootstrapServiceAccountName, but system:node-bootstrapper is not the name of the service account
304b05a to
70f03a0
Compare
| LegacyMasterKubeletAdminClientUsername = "system:master" | ||
| MasterKubeletAdminClientUsername = "system:openshift-node-admin" | ||
|
|
||
| InfraNodeBootstrapServiceAccountName = "node-bootstrapper" |
There was a problem hiding this comment.
There was a problem hiding this comment.
@enj indeed the controller_policy file now risk becoming a kitchen sink, feels wrong to me.
That is why I put the constants in ... guess what? "constants.go"
| newOriginClusterBinding(BuildStrategyJenkinsPipelineRoleBindingName, BuildStrategyJenkinsPipelineRoleName). | ||
| Groups(AuthenticatedGroup). | ||
| BindingOrDie(), | ||
| rbac.NewClusterBinding(NodeBootstrapRoleName). |
There was a problem hiding this comment.
it certainly needs a separating comment, not be grouped with the build strategies roles
|
/unassign |
This was recently dropped together with some refactoring for Controller Roles bootstrapping. Signed-off-by: Simo Sorce <[email protected]> Signed-off-by: Christian Heimes <[email protected]>
|
/lgtm I will figure out homes for the |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: enj, tiran The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
|
/test all [submit-queue is verifying that this PR is safe to merge] |
|
/test extended_conformance_gce |
|
Automatic merge from submit-queue (batch tested with PRs 15896, 15921, 15909, 15911, 15906) |
This was recently dropped together with some refactoring for Controller
Roles bootstrapping.
Fixes #15869
@simo5's PR #15890 + test fix
@openshift/sig-security