Skip to content

Commit

Permalink
Merge pull request #191 from itdove/hc_not_ready
Browse files Browse the repository at this point in the history
  • Loading branch information
itdove authored Feb 24, 2022
2 parents caca809 + 4924c88 commit 85e9043
Show file tree
Hide file tree
Showing 32 changed files with 493 additions and 40 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

- [cm attach should handle kubeconfig blobs #173](https://github.com/stolostron/cm-cli/issues/173)
- [Create a cmd cm attach/detach hostedcluster #182](https://github.com/stolostron/cm-cli/issues/182)
- Add githubExtraConfigs in the template for `cm create authrealm`
- [import clusteradm cmds create clusterset|work and get addon|clusterset|hub-info|works #192](https://github.com/stolostron/cm-cli/issues/192)
## Breaking changes

## Bug fixes
Expand Down
2 changes: 2 additions & 0 deletions docs/help/cm_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@ create a resource
* [cm create clusterclaim](cm_create_clusterclaim.md) - Create clusterclaims
* [cm create clusterpool](cm_create_clusterpool.md) - Create a clusterpool
* [cm create clusterpoolhost](cm_create_clusterpoolhost.md) - Initialize a clusterpool management cluster
* [cm create clusterset](cm_create_clusterset.md) - create a clusterset
* [cm create work](cm_create_work.md) - create a work

2 changes: 1 addition & 1 deletion docs/help/cm_create_clusterclaim.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ cm create cc <clusterpool> <clusterclaim_name>[,<clusterclaim_name>...] --cph <c
--import If set the clusterclaim will be imported
-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/].
--output-file string The generated resources will be copied in the specified file
--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)
Expand Down
69 changes: 69 additions & 0 deletions docs/help/cm_create_clusterset.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
## cm create clusterset

create a clusterset

```
cm create clusterset [flags]
```

### Examples

```
# create a clusterset.
cm create clusterset clusterset1
```

### Options

```
-h, --help help for clusterset
```

### 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 create](cm_create.md) - create a resource

72 changes: 72 additions & 0 deletions docs/help/cm_create_work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
## cm create work

create a work

```
cm create work [flags]
```

### Examples

```
# create a work.
cm create work work-example -f xxx.yaml --cluster cluster1
```

### Options

```
-f, --filename strings
-h, --help help for work
--overwrite Overwrite the existing work if it exists already
-R, --recursive Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory. (default true)
```

### 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 create](cm_create.md) - create a resource

4 changes: 4 additions & 0 deletions docs/help/cm_get.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,17 @@ get a resource
### SEE ALSO

* [cm](cm.md) - CLI for Red Hat Advanced Cluster Management
* [cm get addon](cm_get_addon.md) - get enabled addon on specified managedcluster
* [cm get clusterclaims](cm_get_clusterclaims.md) - Display clusterclaims
* [cm get clusterpoolhosts](cm_get_clusterpoolhosts.md) - list the clusterpoolhosts
* [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 config](cm_get_config.md) - get the config of a resource
* [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
* [cm get policies](cm_get_policies.md) - Display policies
* [cm get token](cm_get_token.md) - get the bootstrap token
* [cm get works](cm_get_works.md) - get manifestwork on a specified managedcluster

72 changes: 72 additions & 0 deletions docs/help/cm_get_addon.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
## cm get addon

get enabled addon on specified managedcluster

```
cm get addon [flags]
```

### Examples

```
# Get enabled addon on specified cluster.
cm get addon --clusters cluster1
# Get all enabled addon.
cm get addon
```

### Options

```
--clusters strings Names of the managed cluster to deploy the add-on to (comma separated)
-h, --help help for addon
```

### 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 get](cm_get.md) - get a resource

2 changes: 1 addition & 1 deletion docs/help/cm_get_clusterclaims.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ cm get 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
Loading

0 comments on commit 85e9043

Please sign in to comment.