Applying the required permissions to the projects (namespaces) for IBM Software Hub Control Center

Before you install IBM Software Hub Control Center (Control Center), you must ensure that the project where the operators will be installed can watch the project where the Control Center software is installed.

Who needs to complete this task?

Cluster administrator A cluster administrator must complete this task.

When do you need to complete this task?

One-time setup You must complete this task before you install Control Center.

Before you begin

Best practice: You can run the commands in this task exactly as written if you use set up environment variables for IBM Software Hub Control Center. For instructions, see Setting up environment variables for IBM Software Hub Control Center

In addition, ensure that you source the environment variables before you run the commands in this task.

About this task

Run the authorize-instance-topologycommand to apply the required permissions to the projects that are associated with IBM Software Hub Control Center.

The authorize-instance-topology command:
  • Creates the specified projects if they don't already exist.
  • Creates the NamespaceScope operator in the operators project.
  • Applies the require role to the operands project.
  • Binds the applied role to the service account of the NamespaceScope operator.

Procedure

To apply the required permissions to the projects:

  1. Log the cpd-cli in to the Red Hat® OpenShift® Container Platform cluster:
    ${CONTROL_CPDM_OC_LOGIN}
    Remember: CONTROL_CPDM_OC_LOGIN is an alias for the cpd-cli manage login-to-ocp command when you are connecting to the Control Center cluster.
  2. Run the authorize-instance-topology command to apply the required permissions to the projects:
    cpd-cli manage authorize-instance-topology \
    --cpd_operator_ns=${CONTROL_PROJECT_OPERATORS} \
    --cpd_instance_ns=${CONTROL_PROJECT_OPERANDS}

What to do next

Now that you've applied the required permissions to the projects, you're ready to complete Installing the IBM Software Hub Control Center software.