Reauthorizing the NamespaceScope operator with the minimum RBAC (Upgrading from Version 5.2 to Version 5.4)
If you gave the NamespaceScope operator the minimum
role-based access control (RBAC) when you installed IBM® Software
Hub, you must update the role that is
assigned to the operator so that the operator has sufficient privileges to help operators populate
roles from the operator project to the instance project.
- Upgrade phase
-
Updating your client workstation
Collecting required information
Preparing to run an upgrade in a restricted network
Preparing to run an upgrade from a private container registry
Upgrading prerequisite software
Upgrading shared cluster components
Preparing to upgrade an instance
Upgrading an instance
Setting up IBM Software Hub
- Who needs to complete this task?
-
Cluster administrator A cluster administrator must complete this task.
- When do you need to complete this task?
-
- If you ran the
authorize-instance-topologycommand when you installed IBM Software Hub, you can skip this task. - If you gave the
NamespaceScopeoperator the minimum role-based access control (RBAC), you must complete this task to give the operator sufficient privileges on the instance.Repeat as needed If you have multiple instances of IBM Software Hub, you must repeat this task for each instance of IBM Software Hub that you plan to upgrade.
- If you ran the
Before you begin
In addition, ensure that you source the environment variables before you run the commands in this task.
To confirm whether the NamespaceScope operator is using the minimum RBAC, run
the following command:
oc get role nss-managed-role-from-${PROJECT_CPD_INST_OPERATORS} \
-n ${PROJECT_CPD_INST_OPERATORS} \
-o json | jq 'any(.rules[].apiGroups[]; . == "*")'
- If the command returns
true, the operator does not need to be reauthorized. - If the command returns
false, the operator is using the minimum RBAC and must be reauthorized.
About this task
Use the show-minimum-rbac command to generate the YAML
file that you can use to give the NamespaceScope operator the minimum RBAC to help
operators populate roles from the operator project to the instance
project.
You must regenerate and reapply the roles that are assigned to NamespaceScope
operator so that the operator has sufficient privileges.
Procedure
What to do next
NamespaceScope operator ,
you're ready to complete Reauthorizing an instance administrator with the minimum RBAC to upgrade components (Upgrading from Version 5.2 to Version 5.4).