Bug 1169685
| Summary: | [origin_devexp_390] osc describe/build-logs/namespace help info is not correct | ||
|---|---|---|---|
| Product: | OKD | Reporter: | XiuJuan Wang <xiuwang> |
| Component: | Containers | Assignee: | Fabiano Franz <ffranz> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.x | CC: | dma, ffranz, mmccomas, yadu |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-03-05 19:55:38 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Meantime,there are some typo in help docs. 1.Should no space in 'p rompt' for -a option. -a, --auth-path="/home/fedora/.kubernetes_auth": Path to the auth info file. If missing, p rompt the user. Only used if using https. 2.Should switch 'apply' to 'createall' in createall help doc Examples: $ kubectl createall -d configs/ <creates all resources listed in JSON or YAML files, found recursively under the configs directory> $ kubectl createall -f config.json <creates all resources listed in config.json> $ cat config.json | kubectl apply -f - <creates all resources listed in config.json> The commands below also have the same error: $ openshift --help $ openshift cli --help $ openshift version --help $ openshift help --help some osc commands' help info are still not detail enough, eg:osc describe, osc namespace, osc build-logs
[fedora@ip-10-169-236-217 hello-openshift]$ osc describe -h
Usage of osc:
Usage:
osc describe <resource> <id> [flags]
Available Flags:
--api-version="v1beta1": The API version to use when talking to the server
-a, --auth-path="/home/fedora/.kubernetes_auth": Path to the auth info file. If missing, prompt the user. Only used if using https.
--certificate-authority=: Path to a cert. file for the certificate authority.
--client-certificate=: Path to a client key file for TLS.
--client-key=: Path to a client key file for TLS.
-h, --help=false: help for describe
--insecure-skip-tls-verify=%!s(bool=false): If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--loglevel=0: Set the level of log output (0-5)
--match-server-version=false: Require server version to match client version
-n, --namespace="": If present, the namespace scope for this CLI request.
--ns-path="/home/fedora/.kubernetes_ns": Path to the namespace info file that holds the name space context to use for CLI requests.
-s, --server="": The address of the Kubernetes API server
--token=: Bearer token for authentication to the API server.
Error: Usage of osc:
--api-version="v1beta1": The API version to use when talking to the server
-a, --auth-path="/home/fedora/.kubernetes_auth": Path to the auth info file. If missing, prompt the user. Only used if using https.
--certificate-authority=: Path to a cert. file for the certificate authority.
--client-certificate=: Path to a client key file for TLS.
--client-key=: Path to a client key file for TLS.
--insecure-skip-tls-verify=%!s(bool=false): If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure.
--loglevel=0: Set the level of log output (0-5)
--match-server-version=false: Require server version to match client version
-n, --namespace="": If present, the namespace scope for this CLI request.
--ns-path="/home/fedora/.kubernetes_ns": Path to the namespace info file that holds the name space context to use for CLI requests.
-s, --server="": The address of the Kubernetes API server
--token=: Bearer token for authentication to the API server.
Test fedora_514, the example in help info is not correct too. eg: [fedora@ip-10-169-236-217 sample-app]$ osc create -h Create a resource by filename or stdin. JSON and YAML formats are accepted. Examples: $ kubectl create -f pod.json <create a pod using the data in pod.json> $ cat pod.json | kubectl create -f - <create a pod based on the json passed into stdin> Fixed in master. These issues have been fixed in fedora_701 'openshift cli' and 'osc' style command both show correctly. Thanks! Seems we still use the "kubectl" in the cmd examples: eg: Examples: $ kubectl namespace Using namespace default $ kubectl namespace other Set current namespace to other we may need to update the "kubectl" to "osc" in the examples too. That's ok for now, we have a separate task to review the help *content* all around the CLI. Keeping this bug as the "-h/--help" and "help <command>" fixes. Thanks for your explanation @Fabiano Franz Move bug to verified. |
Description of problem: No help docs for describe/log/build-logs/namespace of kubectl.And can't use '-h/--help' to show kubectl help,must use 'openshift kubectl' directly. Version-Release number of selected component (if applicable): devenv-fedora_434 How reproducible: always Steps to Reproduce: 1.Get kubectl help $openshift kubectl -h/--help 2.Get kubectl subcommands help openshift kubectl describe/log/build-logs/namespace -h/--help 3.Use 'openshift kubectl' directly Actual results: step 1&2:No help docs appear $ openshift kubectl decribe -h Usage of openshift: Usage: openshift [flags] openshift [command] Available Commands: start [master|node] Launch OpenShift kube The Kubernetes command line client kubectl kubectl controls the Kubernetes cluster manager and OpenShift version Display version help [command] Help about any command Available Flags: -h, --help=false: help for openshift --loglevel=0: Set the level of log output (0-5) Use "openshift help [command]" for more information about that command. Error: Usage of openshift: --loglevel=0: Set the level of log output (0-5) step 3: $ openshift kubectl Controls the Kubernetes cluster manager. Find more information at https://github.com/GoogleCloudPlatform/kubernetes and https://github.com/openshift/origin. Usage: openshift kubectl [flags] openshift kubectl [command] Available Commands: proxy Run a proxy to the Kubernetes API server get [(-o|--output=)json|yaml|...] <resource> [<id>] Display one or many resources describe <resource> <id> Show details of a specific resource <----------------------skip------------------------------> Expected results: Additional info: