1. 12 Apr, 2017 23 commits
  2. 11 Apr, 2017 17 commits
    • Chao Xu's avatar
      move helpers.go to helper · 08aa712a
      Chao Xu authored
      08aa712a
    • Janet Kuo's avatar
    • mbohlool's avatar
    • Bowei Du's avatar
      Use auto mode networks instead of legacy networks in GCP · 07950502
      Bowei Du authored
      Use of the --range flag creates legacy networks in GCP.
      07950502
    • Bowei Du's avatar
      Update known-flags with cidr-allocator-type · 091e46ef
      Bowei Du authored
      I also sorted the file, it was almost sorted with a few exceptions.
      091e46ef
    • Bowei Du's avatar
      Adds support for PodCIDR allocation from the GCE cloud provider · f61590c2
      Bowei Du authored
      If CIDRAllocatorType is set to `CloudCIDRAllocator`, then allocation
      of CIDR allocation instead is done by the external cloud provider and
      the node controller is only responsible for reflecting the allocation
      into the node spec.
      
      - Splits off the rangeAllocator from the cidr_allocator.go file.
      - Adds cloudCIDRAllocator, which is used when the cloud provider allocates
        the CIDR ranges externally. (GCE support only)
      - Updates RBAC permission for node controller to include PATCH
      f61590c2
    • Bowei Du's avatar
      Add KUBE_GCE_ENABLE_IP_ALIASES flag to the cluster turn up scripts. · 345c6584
      Bowei Du authored
      KUBE_GCE_ENABLE_IP_ALIASES=true will enable allocation of PodCIDR ips
      using the ip alias mechanism rather than using routes.
      
      NODE_IP_RANGE will control the node instance IP cidr
      KUBE_GCE_IP_ALIAS_SIZE controls the size of each podCIDR
      IP_ALIAS_SUBNETWORK controls the name of the subnet created for the cluster
      345c6584
    • Kubernetes Submit Queue's avatar
      Merge pull request #44352 from wongma7/etcd-version · c68ae58c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 43304, 41427, 43490, 44352)
      
      Fix etcd semver validation by using 'sort -V'
      
      The old check would erroneously say e.g. v3.0.6 is greater than v3.0.17 which is obviously false. So hack/local-up-cluster.sh would be allowed to run and things would break because etcd does not meet the minimum. sort -V validates it correctly.
      ```release-note
      NONE
      ```
      c68ae58c
    • Kubernetes Submit Queue's avatar
      Merge pull request #43490 from xingzhou/add-testcases · 785299ee
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 43304, 41427, 43490, 44352)
      
      Supplement unit tests to `kubectl create rolebinding` command.
      
      Supplement unit tests to `kubectl create rolebinding` command,
      including:
      1. Unit tests for pkg/kubectl/role.go
      2. Unit tests for pkg/kubectl/cmd/create_role.go
      785299ee
    • Kubernetes Submit Queue's avatar
      Merge pull request #41427 from timothysc/etcd_3_1_godep · c17f0f60
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 43304, 41427, 43490, 44352)
      
      Update etcd-client godep to 3.1.5
      
      This transitively level sets the godeps to yank in the 3.1.5 client.  
      
      Currently WIP, b/c it required some regen and I had some weird local permissions issue. 
      
      xref: #41143
      
      /cc @xiang90 @mml
      c17f0f60
    • Kubernetes Submit Queue's avatar
      Merge pull request #43304 from mwielgus/disruptive · 32d29d48
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 43304, 41427, 43490, 44352)
      
      Node failure tests for cluster autoscaler
      
      E2e tests checking whether CA is still working with a single broken node.
      
      cc: @MaciekPytel @jszczepkowski @fgrzadkowski
      32d29d48
    • Sahdev P. Zala's avatar
      Conversion generated code changes for golint fix · 08639023
      Sahdev P. Zala authored
      The exported or public functions requires a doc comment to pass golint.
      This commit has changes of conversion generated code. The actual doc
      changes are added into a separate commit for a clean review.
      08639023
    • deads2k's avatar
      delete rolebinding from correct namespace · f80adb10
      deads2k authored
      f80adb10
    • Kubernetes Submit Queue's avatar
      Merge pull request #43888 from liggitt/unsecured-port-user · 67f2a7cc
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 43545, 44293, 44221, 43888)
      
      Avoid nil user special-casing in unsecured endpoint
      
      The unsecured handler currently adds no `user.Info` to the request context.  That means that anything that tries to authorize actions in the API server currently has to special case nil users to ensure the unsecured localhost endpoint remains capable of performing all actions. 
      
      This PR changes the unsecured localhost endpoint to be treated as a privileged user internally, so that no special casing is required by code inside the authentication layer
      
      I'm not particularly attached to the username. It doesn't bother me for it to have a slightly uncomfortable sounding name.
      67f2a7cc
    • Kubernetes Submit Queue's avatar
      Merge pull request #44221 from ncdc/fix-validateClusterInfo-empty-cluster-check · f1b9c17c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 43545, 44293, 44221, 43888)
      
      validateClusterInfo: use clientcmdapi.NewCluster()
      
      Change validateClusterInfo to use clientcmdapi.NewCluster() instead of
      clientcmdapi.Cluster{} when comparing against the passed in clusterInfo.
      clusterInfo most likely will be a combination of
      clientcmdapi.NewCluster() merged with potential overrides. This is
      necessary because otherwise, the DeepEqual between what is supposed to
      be an empty Cluster and clusterInfo will fail, resulting in an error
      that doesn't allow fall-through to checking for in-cluster
      configuration.
      
      https://github.com/kubernetes/kubernetes/pull/40508 changed `DirectClientConfig.getContext()` to start with a `clientcmdapi.NewCluster()` instead of the zero value for `clientcmdapi.Cluster`. This means that the `Extensions` map in the `Cluster` is initialized instead of `nil`, which breaks the `DeepEqual` test unless you compare `clusterInfo` against an initialized `clientcmdapi.NewCluster()`.
      
      cc @smarterclayton @sttts @vjsamuel @liggitt @deads2k @soltysh @fabianofranz @kubernetes/sig-api-machinery-pr-reviews
      f1b9c17c
    • Kubernetes Submit Queue's avatar
      Merge pull request #44293 from deads2k/api-08-unstructureditems · 86715941
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 43545, 44293, 44221, 43888)
      
      make unstructured items correspond to other items for storage
      
      "normal" `Items` elements include the struct itself, not a pointer to the struct.  Some of the deeper bits of storage rely on this behavior in reflective paths.
      
      This updates the `UnstructuredList` to be "normal".
      
      @kubernetes/sig-api-machinery-pr-reviews
      86715941
    • Kubernetes Submit Queue's avatar
      Merge pull request #43545 from luomiao/vsphere-remove-loginInfo-on-workers-update · 6283077f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 43545, 44293, 44221, 43888)
      
      Remove credentials on worker nodes for vSphere cloud provider.
      
      **What this PR does / why we need it**:
      Remove the dependency of login information on worker nodes for vsphere cloud provider:
      1. VM Name is required to be set in the cloud provider configuration file.
      2. Remove the requirement of login for Instance functions when querying local node information.
      
      **Which issue this PR fixes** : fixes #https://github.com/kubernetes/kubernetes/issues/35339
      
      **Release note**:
      6283077f