1. 13 Sep, 2016 1 commit
  2. 12 Sep, 2016 38 commits
  3. 11 Sep, 2016 1 commit
    • Kubernetes Submit Queue's avatar
      Merge pull request #32230 from juanvallejo/jvallejo_update-kubectl-expose-output-to-usage-error · a7571aa3
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      update `kubectl expose` output to UsageError
      
      **Release note**:
      ```release-note
      NONE
      ```
      
      This patch updates `kubectl expose` output (with no resources provided)
      to a UsageError so that the `kubectl expose -h` suggestion is displayed.
      
      ##### Before
      `$ kubectl expose`
      ```
      error: You must provide one or more resources by argument or filename.
      Example resource specifications include:
         '-f rsrc.yaml'
         '--filename=rsrc.json'
         'pods my-pod'
         'services'
      ```
      
      ##### After
      ```
      error: You must provide one or more resources by argument or filename.
      Example resource specifications include:
         '-f rsrc.yaml'
         '--filename=rsrc.json'
         'pods my-pod'
         'services'
      See 'kubectl expose -h' for help and examples.
      ```
      a7571aa3