manage
apply-rsi-patches
Apply all active resource specification injection (RS) patches in the specified project.
- Required role
-
Instance administrator An instance administrator can run this command.
Extended description
Apply all active resource specification injection (RS) patches in the specified project. If there are any projects tethered to the specified project, the patches will be applied to the appropriate pods in the tethered projects.
When you apply an RSI patch, the RSI webhook restarts any pods with the
appropriate pod selector labels that meet either of the following criteria:
- Pods with outdated patches
- Pods that have not yet been patched
Important: Apply RSI patches only if you are an advanced user on Red Hat®
OpenShift® Container Platform. It is your responsibility to ensure that
any patches that you apply to not introduce issues to your IBM® Software Hub installation.
Syntax
cpd-cli manage apply-rsi-patches \
--cpd_instance_ns=<project-name> \
[-v][-vv][-vvv]
Arguments
The apply-rsi-patches command has no arguments.
Options
Table 1: Command options
| Option | Description |
|---|---|
--cpd_instance_ns |
The project where you want to apply the patches. All active patches in the project will be applied.
|
-v-vv-vvv |
Display verbose output. Options are listed from least verbose to the most verbose.
|
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.
- Apply the active patches in the project where IBM Software Hub is installed
-
cpd-cli manage apply-rsi-patches \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS}