Manually creating projects (namespaces) for IBM Software Hub Control Center

The IBM Software Hub command-line interface can automatically create projects that don't exist on the cluster. However, you can optionally create the projects for IBM Software Hub Control Center (Control Center) manually.

Who needs to complete this task?

Cluster administrator A cluster administrator must complete this task.

When do you need to complete this task?

This task is optional.

  • Skip this task if you want to allow the IBM Software Hub command-line interface (cpd-cli) to automatically create the projects for Control Center.
  • Complete this task if you do not want to allow the IBM Software Hub command-line interface (cpd-cli) to automatically create the projects for Control Center.

    One-time setup Complete this task once on each cluster where you plan to 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

An instance of Control Center has two projects where the Control Center software is installed: the operators project and the operands project.

Operators project
The project where the operators are installed.

In installation and administration commands, the ${CONTROL_PROJECT_OPERATORS} environment variable refers to the operators project.

Operands project
The project where the Control Center software is installed.

In installation and administration commands, the ${CONTROL_PROJECT_OPERANDS} environment variable refers to the operands project.

Important: You cannot use the same operators project and operands project as an instance of IBM Software Hub. Control Center must be installed in separate projects.

Procedure

To create the required 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. Create the operators project for the Control Center:
    oc new-project ${CONTROL_PROJECT_OPERATORS}
  3. Create the operands project for the Control Center:
    oc new-project ${CONTROL_PROJECT_OPERANDS}

What to do next

Now that you've created the projects for Control Center, you're ready to complete Applying the required permissions to the projects (namespaces) for IBM Software Hub Control Center.