You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -23,7 +25,9 @@ poetry run python ocp_addons_operators_cli/cli.py --help
23
25
```
24
26
25
27
### Usages
28
+
26
29
#### Install/uninstall addons and/or operators from YAML file
30
+
27
31
User can install/uninstall addons and/or operators by sending YAML file instead with CLI args
28
32
Example YAML file can be found [here](ocp_addons_operators_cli/manifests/addons-operators.yaml.example)
29
33
pass `--yaml-config-file=.local/addons-operators.yaml` to use YAML file.
@@ -35,46 +39,52 @@ podman run quay.io/redhat_msi/ocp-addons-operators-cli --help
35
39
```
36
40
37
41
### Global CLI configuration
42
+
38
43
*`--action`: install/uninstall product(s)
39
-
*`--brew-token`: Brew token (needed to install managed-odh addon in stage). Default value is taken from environment variable `BREW_TOKEN`.
44
+
*`--brew-token`: Brew token (needed to install managed-odh addon in stage). Also required for operators IIB installation. Default value is taken from environment variable `BREW_TOKEN`.
40
45
*`--debug`: Enable debug logs
41
46
*`--parallel`: Run install/uninstall in parallel
42
47
*`--must-gather-output-dir`: Path to must-gather output dir. `must-gather` will try to collect data when addon/operator installation fails and cluster can be accessed.
43
48
44
49
* Operators configuration
45
50
*`--kubeconfig`: Path to kubeconfig; can be overwritten by cluster-specific configuration
46
-
To install operators from saved IIB json, created by [ci-jobs-trigger](https://github.com/RedHatQE/ci-jobs-trigger):
47
-
*`--local-operators-latest-iib-path`: Path to local file containing IIB and jobs data
48
-
*`--s3-bucket-operators-latest-iib-path`: Path to S3 object containing IIB and jobs data
49
-
*`--aws-access-key-id`: AWS access key id
50
-
*`--aws-secret-access-key`: AWS secret access key
51
-
*`--aws-region`: AWS region
52
-
-`PARENT_JOB_NAME` and `OCP_VERSION` environment variables should be set
51
+
* To install operators from saved IIB json, created by [ci-jobs-trigger](https://github.com/RedHatQE/ci-jobs-trigger), following args are required:
52
+
*`--local-operators-latest-iib-path`: Path to local file containing IIB and jobs data
53
+
*`--s3-bucket-operators-latest-iib-path`: Path to S3 object containing IIB and jobs data
54
+
*`--aws-access-key-id`: AWS access key id, needed when using --s3-bucket-operators-latest-iib-path.
55
+
*`--aws-secret-access-key`: AWS secret access key, needed when using --s3-bucket-operators-latest-iib-path.
56
+
*`--aws-region`: AWS region, needed when using --s3-bucket-operators-latest-iib-path.
57
+
*`PARENT_JOB_NAME` environment variable should be set
58
+
53
59
* Addons configuration
54
60
*`--endpoint`: SSO endpoint url, defaults to https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
55
61
*`--ocm-token`: OCM token, defaults to `OCM_TOKEN` environment variable
56
62
*`--cluster-name`: Addon's cluster name; can be overwritten by cluster-specific configuration
57
63
58
64
### Addon/Operator user args
59
65
60
-
Each `--addon` or `operator` accept args, the format is `arg=value;`
66
+
Each `--addon` or `--operator` accept args, the format is `arg=value;`
67
+
61
68
###### Common args:
69
+
62
70
*`name=name`: Name of the operator/addon to install/uninstall
63
71
*`timeout=300`: timeout to wait for the operator/addon to be installed/uninstalled; format examples: `1h`, `30m`, `3600s`
64
72
65
73
###### Addon args:
74
+
66
75
*`rosa=true`: Use rosa cli to install/uninstall the addon
67
76
*`cluster-name=cluster`: Addon's cluster name; if not provided, global configuration will be used
68
77
69
78
###### Operator args:
79
+
70
80
*`iib=/path/to/iib:123456`: Install the operator using the provided IIB
71
81
*`channel=stable`: Operator channel to install from, default: 'stable'
0 commit comments