1. 08 Aug, 2017 1 commit
  2. 07 Aug, 2017 31 commits
  3. 06 Aug, 2017 8 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #49481 from jianglingxia/jlx72417 · ae4fac41
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49370, 49481)
      
      continue Fix error format and info for get_test.go
      
      **What this PR does / why we need it**:
      continue fix the error info 
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #49441 
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
          NONE
      ae4fac41
    • Kubernetes Submit Queue's avatar
      Merge pull request #49370 from sttts/sttts-no-clientset-embedding · 979c86f3
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49370, 49481)
      
      client-gen: stop embedding of GroupVersion client intfs
      
      It is undefined (or at least uncontrollable) which methods of the clientset apigroup
      interfaces are actually inherited. Moreover, there might be nameconflicts between the
      accessors and inherited methods. This PR removes the embedding to make it unambiguous.
      
      ```release-note
      Enforce explicit references to API group client interfaces in clientsets to avoid ambiguity.
      ```
      979c86f3
    • Kubernetes Submit Queue's avatar
      Merge pull request #46687 from zjj2wry/delete_unuse_error · 702e506a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Delete unuse err check
      
      **What this PR does / why we need it**:
      err has fatal, this err check  can't execute.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      
      **Special notes for your reviewer**:
      thank you ~
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      702e506a
    • Dr. Stefan Schimanski's avatar
      Update generated code · 3b310d89
      Dr. Stefan Schimanski authored
      3b310d89
    • Dr. Stefan Schimanski's avatar
      83895dae
    • Dr. Stefan Schimanski's avatar
    • Dr. Stefan Schimanski's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #48553 from superbrothers/fix-kubectl-42 · 54902739
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix a bug that --flag=val causes completion error in zsh
      
      **What this PR does / why we need it**:
      This PR fixes a bug that flag of syntax like --flag=val causes completion error in zsh.
      
      ```
      kubectl --namespace=foo g__handle_flag:25: bad math expression: operand expected at end of string
      ```
      
      This problem is due to [dynamic scope](https://en.wikipedia.org/wiki/Scope_(computer_science)#Dynamic_scoping) of shell variables. If a variable is declared as local to a function, that scope remains until the function returns.
      
      In kubectl completion zsh, `declare -A flaghash` in __start_kubectl() is replaced with `__kubectl_declare -A flaghash` by __kubectl_convert_bash_to_zsh(). As a result of it, flaghash is declared in __kubectl_declare(), and it can not access to flaghash declared in __kubectl_declare() from __handle_flag(). Therefore an error occurs in __handle_flag().
      
      The following is the minimum reproduction code.
      
      ```sh
      #!/usr/bin/env zsh
      
      set -e
      
      __kubectl_declare() {
          builtin declare "$@"
      }
      
      __handle_flag() {
          local flagname="--namespace="
          local flagval="kube-system"
      
          flaghash[${flagname}]=${flagval}
      
          echo "flaghash[${flagname}]=${flaghash[${flagname}]}"
      }
      
      __handle_word() {
          __handle_flag
      }
      
      __start_kubectl() {
          __kubectl_declare -A flaghash
      
          __handle_word
      }
      
      __start_kubectl
      
      #
      # $ zsh reproduction.zsh
      # __handle_flag:4: bad math expression: operand expected at end of string
      #
      
      # __start_kubectl {
      #
      #     __kubectl_declare {
      #
      #         builtin declare -A flaghash
      #
      #     }
      #
      #     __handle_word {
      #
      #         __handle_flag {
      #
      #             # It is unable to access flaghash declared in __kubectl_declare from here
      #             flaghash[${flagname}]=${flagval}
      #
      #         }
      #
      #     }
      # }
      ```
      
      The following is the fixed code.
      ```sh
      #!/usr/bin/env zsh
      
      set -e
      
      __handle_flag() {
          local flagname="--namespace="
          local flagval="kube-system"
      
          flaghash[${flagname}]=${flagval}
      
          echo "flaghash[${flagname}]=${flaghash[${flagname}]}"
      }
      
      __handle_word() {
          __handle_flag
      }
      
      __start_kubectl() {
          builtin declare -A flaghash
      
          __handle_word
      }
      
      __start_kubectl
      
      #
      # $ zsh fixed.zsh
      # flaghash[--namespace=]=kube-system
      #
      
      # __start_kubectl {
      #
      #     builtin declare -A flaghash
      #
      #     __handle_word {
      #
      #         __handle_flag {
      #
      #             # It is able to access flaghash declared in __start_kubectl from here :)
      #             flaghash[${flagname}]=${flagval}
      #
      #         }
      #
      #     }
      # }
      ```
      https://gist.github.com/superbrothers/0ede4292f6d973f93e54368e227a4902
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*:
      fixes kubernetes/kubectl#42
      
      **Special notes for your reviewer**:
      @mengqiy
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      54902739