Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-45664

Missing information in `oc create token --help` command for `--duration` flag

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Normal Normal
    • None
    • 4.15, 4.16, 4.17
    • oc
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

          The OC cli help prints missing information for `--duration` flag when running `oc create token --help` command

      Version-Release number of selected component (if applicable):

          4.17

      How reproducible:

          100%

      Steps to Reproduce:

      # oc create token --help | grep duration -A2  oc create token myapp --duration 10m
        # Request a token with a custom audience--   
       --duration=0s:
      	Requested lifetime of the issued token. The server may return a token with a longer or shorter lifetime.
      
      

      Actual results:

          The above command does not produce clear statement for --duration flag

      Expected results:

          The expected output as per Kubernetes doc [1] is:
      
      Requested lifetime of the issued token. If not set or if set to 0, the lifetime will be determined by the server automatically. The server may return a token with a longer or shorter lifetime.
      
      [1] https://kubernetes.io/docs/reference/kubectl/generated/kubectl_create/kubectl_create_token/

      Additional info:

          https://kubernetes.io/docs/reference/kubectl/generated/kubectl_create/kubectl_create_token/

              aguclu@redhat.com Arda Guclu
              rhn-support-dpateriy Divyam Pateriya
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: