Create a custom SCC for the specified component and bind it to a
service account in the IBM Software Hub control plane
namespace.
Syntax
cpd-cli manage apply-scc \
--cpd_instance_ns=<project-name> \
--components=<component-name> \
[--preview=true|false] \
[-v][-vv][-vvv]
Arguments
The apply-scc command has no arguments.
Options
Table 1: Command options
| Option |
Description |
--cpd_instance_ns |
The project (namespace) where IBM Software Hub is
installed.
- Status
- Required.
- Syntax
--cpd_instance_ns=<project-name>
- Default value
- No default. User-defined.
- Valid values
- The project (namespace) where IBM Software Hub is
installed.
|
--components |
The component for which you want to create the custom SCC. Restriction: Currently, this command applies only to the informix
component.
- Status
- Required.
- Syntax
--components=<component-name>
- Default value
- No default. You must specify the component name.
- Valid values
informix
|
--preview |
Preview the commands that run when you issue this CLI
command. The command issues a series of
oc commands. You can see the list of oc commands that are
associated with the command.
The oc commands are
saved to the preview.sh file in the work directory.
- Status
- Optional.
- Syntax
--preview=true|false
- Default value
- false
If you omit this option, the default value is
used.
- Valid values
-
- false
- Run the commands to apply the changes to your cluster.
- true
- Preview the commands without running them.
You can copy the oc commands from
the output and run them yourself. However, this method is not recommended. When you run the commands
manually, you do not have access to the additional helper scripts that are included in the
underlying Ansible®
playbook.
|
|
-v
-vv
-vvv
|
Display verbose output. Options are listed from least verbose to the most verbose.
- Status
- Optional.
- Syntax
-
- Verbose output
-v
- Very verbose output
-vv
- Most verbose output
-vvv
- Default value
- Not applicable.
- Valid values
- Not applicable.
|
Examples
Note: The following example uses the recommended installation environment variables.
It is strongly recommended that you use a script to create
environment variables with the correct values for your
environment. For details, see Setting up installation environment variables.
- Create the SCC for Informix
-
cpd-cli manage apply-scc \
--cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \
--components=informix
- Preview the
oc commands to create the SCC for Informix
-
cpd-cli manage apply-scc \
--cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \
--components=informix \
--preview=true