Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add enable/disable component #229

Merged
merged 2 commits into from
Jun 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- [Create a command to generate/update the $KUBECONFIG file with all clusters credentials found in a ACM HUB #222](https://github.com/stolostron/cm-cli/issues/222)
- [Add get components #227](https://github.com/stolostron/cm-cli/issues/226)
- Add support for mce CR V1
- [Create commands to enable/disable components #228](https://github.com/stolostron/cm-cli/issues/228)
## Breaking changes

- `cm create hd` template changed to a more structured template.
Expand Down
1 change: 1 addition & 0 deletions docs/help/cm.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ CLI for Red Hat Advanced Cluster Management
* [cm create](cm_create.md) - create a resource
* [cm delete](cm_delete.md) - delete a resource
* [cm detach](cm_detach.md) - detach a resources
* [cm disable](cm_disable.md) - disable a feature
* [cm enable](cm_enable.md) - enable a feature
* [cm get](cm_get.md) - get a resource
* [cm hibernate](cm_hibernate.md) - hibernate a resource
Expand Down
2 changes: 1 addition & 1 deletion docs/help/cm_console_clusterclaims.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ cm console clusterclaims
-h, --help help for clusterclaims
-L, --label-columns strings Accepts a comma separated list of labels that are going to be presented as columns. Names are case-sensitive. You can also use multiple flag options like -L label1 -L label2...
--no-headers When using the default or custom-column output format, don't print headers (default print headers).
-o, --output string Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file|custom-columns|custom-columns-file|wide See custom columns [https://kubernetes.io/docs/reference/kubectl/overview/#custom-columns], golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [https://kubernetes.io/docs/reference/kubectl/jsonpath/].
-o, --output string Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file|custom-columns-file|custom-columns|wide See custom columns [https://kubernetes.io/docs/reference/kubectl/overview/#custom-columns], golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [https://kubernetes.io/docs/reference/kubectl/jsonpath/].
--show-kind If present, list the resource type for the requested object(s).
--show-labels When printing, show all labels as the last column (default hide labels column)
--show-managed-fields If true, keep the managedFields when printing objects in JSON or YAML format.
Expand Down
57 changes: 57 additions & 0 deletions docs/help/cm_disable.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
## cm disable

disable a feature

### Options

```
-h, --help help for disable
```

### Options inherited from parent commands

```
--add-dir-header If true, adds the file directory to the header of the log messages
--alsologtostderr log to standard error as well as files
--as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
--as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
--as-uid string UID to impersonate for the operation.
--beta If set commands or functionalities in beta version will be available
--cache-dir string Default cache directory (default "${HOME}/.kube/cache")
--certificate-authority string Path to a cert file for the certificate authority
--client-certificate string Path to a client certificate file for TLS
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
--dry-run If set the generated resources will be displayed but not applied
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
--kubeconfig string Path to the kubeconfig file to use for CLI requests.
--log-backtrace-at traceLocation when logging hits line file:N, emit a stack trace (default :0)
--log-dir string If non-empty, write log files in this directory
--log-file string If non-empty, use this log file
--log-file-max-size uint Defines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
--logtostderr log to standard error instead of files (default true)
--match-server-version Require server version to match client version
-n, --namespace string If present, the namespace scope for this CLI request
--one-output If true, only write logs to their native severity level (vs also writing to each lower severity level)
--password string Password for basic authentication to the API server
--request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
-s, --server string The address and port of the Kubernetes API server
--server-namespace string The namespace where the server (RHACM/MCE) is installed
--skip-headers If true, avoid header prefixes in the log messages
--skip-log-headers If true, avoid headers when opening log files
--skip-server-check If set commands will not check the installed server (RHACM/MCE) target
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
--tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used
--token string Bearer token for authentication to the API server
--user string The name of the kubeconfig user to use
--username string Username for basic authentication to the API server
-v, --v Level number for the log level verbosity
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
```

### SEE ALSO

* [cm](cm.md) - CLI for Red Hat Advanced Cluster Management
* [cm disable component](cm_disable_component.md) - Enable components

69 changes: 69 additions & 0 deletions docs/help/cm_disable_component.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
## cm disable component

Enable components

```
cm disable component
```

### Examples

```

# disable component
cm disable component <component_name>

```

### Options

```
-h, --help help for component
```

### Options inherited from parent commands

```
--add-dir-header If true, adds the file directory to the header of the log messages
--alsologtostderr log to standard error as well as files
--as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
--as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
--as-uid string UID to impersonate for the operation.
--beta If set commands or functionalities in beta version will be available
--cache-dir string Default cache directory (default "${HOME}/.kube/cache")
--certificate-authority string Path to a cert file for the certificate authority
--client-certificate string Path to a client certificate file for TLS
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
--dry-run If set the generated resources will be displayed but not applied
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
--kubeconfig string Path to the kubeconfig file to use for CLI requests.
--log-backtrace-at traceLocation when logging hits line file:N, emit a stack trace (default :0)
--log-dir string If non-empty, write log files in this directory
--log-file string If non-empty, use this log file
--log-file-max-size uint Defines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
--logtostderr log to standard error instead of files (default true)
--match-server-version Require server version to match client version
-n, --namespace string If present, the namespace scope for this CLI request
--one-output If true, only write logs to their native severity level (vs also writing to each lower severity level)
--password string Password for basic authentication to the API server
--request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
-s, --server string The address and port of the Kubernetes API server
--server-namespace string The namespace where the server (RHACM/MCE) is installed
--skip-headers If true, avoid header prefixes in the log messages
--skip-log-headers If true, avoid headers when opening log files
--skip-server-check If set commands will not check the installed server (RHACM/MCE) target
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
--tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used
--token string Bearer token for authentication to the API server
--user string The name of the kubeconfig user to use
--username string Username for basic authentication to the API server
-v, --v Level number for the log level verbosity
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
```

### SEE ALSO

* [cm disable](cm_disable.md) - disable a feature

1 change: 1 addition & 0 deletions docs/help/cm_enable.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@ enable a feature

* [cm](cm.md) - CLI for Red Hat Advanced Cluster Management
* [cm enable addons](cm_enable_addons.md) - Import a cluster
* [cm enable component](cm_enable_component.md) - Enable components

69 changes: 69 additions & 0 deletions docs/help/cm_enable_component.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
## cm enable component

Enable components

```
cm enable component
```

### Examples

```

# enable component
cm enable component <component_name>

```

### Options

```
-h, --help help for component
```

### Options inherited from parent commands

```
--add-dir-header If true, adds the file directory to the header of the log messages
--alsologtostderr log to standard error as well as files
--as string Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
--as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
--as-uid string UID to impersonate for the operation.
--beta If set commands or functionalities in beta version will be available
--cache-dir string Default cache directory (default "${HOME}/.kube/cache")
--certificate-authority string Path to a cert file for the certificate authority
--client-certificate string Path to a client certificate file for TLS
--client-key string Path to a client key file for TLS
--cluster string The name of the kubeconfig cluster to use
--context string The name of the kubeconfig context to use
--dry-run If set the generated resources will be displayed but not applied
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
--kubeconfig string Path to the kubeconfig file to use for CLI requests.
--log-backtrace-at traceLocation when logging hits line file:N, emit a stack trace (default :0)
--log-dir string If non-empty, write log files in this directory
--log-file string If non-empty, use this log file
--log-file-max-size uint Defines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
--logtostderr log to standard error instead of files (default true)
--match-server-version Require server version to match client version
-n, --namespace string If present, the namespace scope for this CLI request
--one-output If true, only write logs to their native severity level (vs also writing to each lower severity level)
--password string Password for basic authentication to the API server
--request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
-s, --server string The address and port of the Kubernetes API server
--server-namespace string The namespace where the server (RHACM/MCE) is installed
--skip-headers If true, avoid header prefixes in the log messages
--skip-log-headers If true, avoid headers when opening log files
--skip-server-check If set commands will not check the installed server (RHACM/MCE) target
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
--tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used
--token string Bearer token for authentication to the API server
--user string The name of the kubeconfig user to use
--username string Username for basic authentication to the API server
-v, --v Level number for the log level verbosity
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
```

### SEE ALSO

* [cm enable](cm_enable.md) - enable a feature

2 changes: 2 additions & 0 deletions docs/help/cm_get.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ get a resource
* [cm get clusterpools](cm_get_clusterpools.md) - Get clusterpool
* [cm get clusters](cm_get_clusters.md) - Display the attached clusters
* [cm get clustersets](cm_get_clustersets.md) - get clustersets
* [cm get components](cm_get_components.md) - Get the list of available components
* [cm get config](cm_get_config.md) - get the config of a resource
* [cm get contexts](cm_get_contexts.md) - Get the managedcluster's contexts of a hub
* [cm get credentials](cm_get_credentials.md) - list the credentials of cloud providers
* [cm get hub-info](cm_get_hub-info.md) - get hub-info
* [cm get machinepools](cm_get_machinepools.md) - list the machinepools for a give cluster
Expand Down
Loading