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

[BUG] typo in the output of "crane export --help" #71

Closed
ppremru opened this issue Feb 1, 2022 · 7 comments
Closed

[BUG] typo in the output of "crane export --help" #71

ppremru opened this issue Feb 1, 2022 · 7 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/minor Lowest priority. Possibly useful, but not yet enough support to actually get it done. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@ppremru
Copy link

ppremru commented Feb 1, 2022

What version of crane are you running, and what are your clutsters+platform
crane:
Version: v0.0.3
crane-lib:
Version: v0.0.5

What did you expect to happen?

What actually happened?

Please include any relevant logs or errors
Typos:

  1. Example is mispelled: "An eample is --as-extras key=string1,string2;key2=string3"
  2. Should be "to impersonate"?: "The group to impersonation."
  3. Should be "to impersonate"?: "The user to impersonation."
@ppremru ppremru added the kind/bug Categorizes issue or PR as related to a bug. label Feb 1, 2022
@apoorvajagtap
Copy link
Contributor

Hello @ppremru, I have trying to fix this one, So, could you please help with confirmation on point 2 & 3?
I understand, that you expect to have the statement in #L68 modified as following:
extras requires specifying a user or group to impersonation ?

Let me know, if I am misinterpreting. Thanks!

@djzager djzager added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Jun 18, 2022
@eriknelson
Copy link
Contributor

I believe this has been fixed by #80, thank you @apoorvajagtap !

@eriknelson eriknelson removed the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Jun 24, 2022
@ppremru
Copy link
Author

ppremru commented Jun 24, 2022

The change in L68 above is not addressing 2 & 3 in the output of "crane export --help".

At the time this bug was reported, the output looked like this: (The 3 typos are highlighted below).

Usage:
crane export [flags]

Flags:
--as-extras string The extra info for impersonation can only be used with User or Group but is not required. An eample is --as-extras key=string1,string2;key2=string3
--as-group strings The group to impersonation. This should say "The group to impersonate."
--as-user string The user to impersonation. This should say "The user to impersonate."
--context string The kube context, if empty it will use the current context. If --namespace is set it will take precedence
-e, --export-dir string The path where files are to be exported (default "export")
-h, --help help for export
-n, --namespace string The kube namespace to export.

Global Flags:
--debug Debug the command by printing more information
-f, --flags-file string Path to input file which contains a yaml representation of cli flags. Explicit flags take precedence over input file values.

.

@eriknelson eriknelson reopened this Jun 24, 2022
@github-actions github-actions bot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Jun 24, 2022
@eriknelson
Copy link
Contributor

@ppremru thanks, opening again and I'm going to triage this on to our roadmap.

@eriknelson
Copy link
Contributor

/priority minor
/triage accepted

@openshift-ci openshift-ci bot added priority/minor Lowest priority. Possibly useful, but not yet enough support to actually get it done. triage/accepted Indicates an issue or PR is ready to be actively worked on. labels Jun 24, 2022
@github-actions
Copy link

This issue synced with: https://issues.redhat.com/browse/MTRHO-77

@eriknelson eriknelson removed the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Jun 24, 2022
@apoorvajagtap
Copy link
Contributor

apoorvajagtap commented Jun 24, 2022

@eriknelson @ppremru I think, though #80 doesn't address 2 & 3, but with the latest changes, we might not need to modify the flag description. As the current output of crane export --help is as follows (--as-user option is no longer available/probably replaced by "--as", and description for "--as-group" has been modified already)

$  ./crane version                                                                                                            [±main ]
crane:
	Version: v0.0.3
crane-lib:
	Version: v0.0.6

$ ./crane export --help                                                                                                      [±main ]
Export the namespace resources in an output directory

Usage:
  crane export [flags]

Flags:
      --as string                      Username to impersonate for the operation
      --as-extras string               The extra info for impersonation can only be used with User or Group but is not required. An example is --as-extras key=string1,string2;key2=string3
      --as-group stringArray           Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
      --cache-dir string               Default cache directory (default "/home/apoorva/.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
  -e, --export-dir string              The path where files are to be exported (default "export")
  -h, --help                           help for export
      --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.
  -n, --namespace string               If present, the namespace scope for this CLI request
      --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
      --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

Global Flags:
      --debug               Debug the command by printing more information
  -f, --flags-file string   Path to input file which contains a yaml representation of cli flags. Explicit flags take precedence over input file values.

Let me know if I am missing something...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/minor Lowest priority. Possibly useful, but not yet enough support to actually get it done. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

6 participants