1. 12 Apr, 2017 18 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #43085 from sttts/sttts-duplicated-meta-conversions · 5ba21e83
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      apimachinery/pkg/apis/meta: remove duplicated conversions
      5ba21e83
    • Kubernetes Submit Queue's avatar
      Merge pull request #43081 from sttts/sttts-conversion-gen-dup-func-error · 7a1687dc
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      conversion-gen: make duplicate func error message readable
      
      Before you only got two hex pointer values.
      7a1687dc
    • Kubernetes Submit Queue's avatar
      Merge pull request #43698 from sttts/sttts-non-global-admission-plugin-registry · 949440b4
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Non global admission plugin registry
      
      For testing the global state is a problem. This PR turns the actual registry into a struct that must be instantiated. For the beginning, we do this in `pkg/kubeapiserver/admission`. In some follow-up (where we hunt down all globals some day), we will move this into the genericapiserver.
      949440b4
    • Kubernetes Submit Queue's avatar
      Merge pull request #44138 from sttts/sttts-cleanup-godeps-json-updater · 9db7953c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Clean up staging/godeps-json-updater.go
      9db7953c
    • Kubernetes Submit Queue's avatar
      Merge pull request #42466 from sttts/sttts-client-go-plugin-import-verify · d70b55ea
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      hack/verify-staging-imports.sh: check that plugins are not imported b…
      d70b55ea
    • Kubernetes Submit Queue's avatar
      Merge pull request #42781 from spzala/conversionlint · 1ba9202c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Conversionlint
      
      **What this PR does / why we need it**:
      This PR adds a comment placeholder for the exported or public functions in conversion generator files. Such functions without a comment results into golint failure in various generated files. The changes in this patch takes care of about 36 related lint failures. 
      Given below is an example lint error, 
      zz_generated.conversion.go:91:1: exported function Convert_v1alpha1_Binding_To_servicecatalog_Binding should have comment or be unexported
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      Considering minor changes no issue is created. 
      
      **Special notes for your reviewer**:
      Hello, I am trying to fix golint failures as we see them in the kubernetes-incubator/service-catalog project. I have separate PRs opened for lint issues related to other generator code which are in separate libraries like gengo. Thanks! 
      
      **Release note**:
      
      ```release-note
      ```
      1ba9202c
    • Dr. Stefan Schimanski's avatar
      63f547e1
    • Kubernetes Submit Queue's avatar
      Merge pull request #41561 from jamiehannaford/fix-multiple-swift-urls · 750d5c3b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Ensure only 1 Swift URL is used in cluster operations
      
      **What this PR does / why we need it**:
      
      Extracts only 1 Swift URL if multiple are returned from Keystone.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*:
      
      https://github.com/kubernetes/kubernetes/issues/34930
      
      **Special notes for your reviewer**:
      
      **Release note**:
      ```release-note
      Heat cluster operations now support environments that have multiple Swift URLs
      ```
      750d5c3b
    • Kubernetes Submit Queue's avatar
      Merge pull request #44357 from deads2k/agg-29-up · bd3146a2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      delete rolebinding from correct namespace
      
      Fixes #44212
      
      The rolebinding needs to be deleted from the namespace we create it in.
      
      @mdshuai
      bd3146a2
    • Kubernetes Submit Queue's avatar
      Merge pull request #43702 from wojtek-t/edge_based_proxy · 284615d7
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Edge-based userspace LB in kube-proxy
      
      @thockin @bowei - if one of you could take a look if that PR doesn't break some basic kube-proxy assumptions. The similar change for winuserproxy should be pretty trivial.
      
      And we should also do that for iptables, but that requires splitting the iptables code to syncProxyRules (which from what I know @thockin already started working on so we should probably wait for it to be done).
      284615d7
    • Kubernetes Submit Queue's avatar
      Merge pull request #44296 from caesarxuchao/move-api-helpers.go · abd92fab
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Move api helpers.go to a subpackage
      
      Part of https://github.com/kubernetes/kubernetes/issues/44065.
      
      This PR moves the pkg/api/helpers.go to its own subpackage. It's mostly a mechanic move, except that
      * I removed ConversionError in helpers.go, it's not used by anyone
      * I moved the 3 methods of Taint and Toleration to pkg/api/methods.go, and left a TODO saying refactoring these methods to functions.
      
      I'll send a few more PRs to make the k8s.io/kubernetes/pkg/api package only contains the code we want in the k8s.io/api repo, then we can run a [script](https://github.com/kubernetes/kubernetes/pull/41747/commits/a0015fd1be6c6a239fc40cc3c04ba5ed7b1ab22e#diff-7a2fbb4371972350ee414c6b88aee1c8) to cut the new repo.
      abd92fab
    • Kubernetes Submit Queue's avatar
      Merge pull request #44363 from bowei/use-auto-net · 640c6779
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Use auto mode networks instead of legacy networks in GCP
      
      Use of the --range flag creates legacy networks in GCP.
      
      Legacy networks will not support new GCP features.
      
      ```release-note
      NONE
      ```
      640c6779
    • Kubernetes Submit Queue's avatar
      Merge pull request #42147 from bowei/ip-alias-2 · ceccd305
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add support for IP aliases for pod IPs (GCP alpha feature)
      
      ```release-note
      Adds support for allocation of pod IPs via IP aliases.
      
      # Adds KUBE_GCE_ENABLE_IP_ALIASES flag to the cluster up scripts (`kube-{up,down}.sh`).
      
      KUBE_GCE_ENABLE_IP_ALIASES=true will enable allocation of PodCIDR ips
      using the ip alias mechanism rather than using routes. This feature is currently
      only available on GCE.
      
      ## Usage
      $ CLUSTER_IP_RANGE=10.100.0.0/16 KUBE_GCE_ENABLE_IP_ALIASES=true bash -x cluster/kube-up.sh
      
      # Adds CloudAllocator to the node CIDR allocator (kubernetes-controller manager).
      
      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
      ```
      ceccd305
    • Kubernetes Submit Queue's avatar
      Merge pull request #44368 from mbohlool/bugfix · 23b66689
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Bugfix: OpenAPI generator should pass generate type extensions
      
      OpenAPI spec generator does not pass generated type extensions (using `x-kubernetes-` tags on types). This is already working for field extensions but not for types.
      23b66689
    • Kubernetes Submit Queue's avatar
      Merge pull request #44090 from NickrenREN/remove-alpha-pv · e60cc6ee
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Remove alphaProvisioner in PVController and AlphaStorageClassAnnotation
      
      remove alpha annotation and alphaProvisioner 
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      e60cc6ee
    • Kubernetes Submit Queue's avatar
      Merge pull request #44114 from copejon/remove-flaky-from-pv-tests · bddc308b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Remove [Flaky] from presistent volume NFS tests.
      
      **What this PR does / why we need it**:
      PV e2e test flaked because of a lack of isolation of test objects (PVs, claims).  The common symptoms being volume-mounting pods timing out or an unexpected number of unbound claims being detected.
      
      PR  #43645 Introduced the selector labels to test objects that restricted binds to within each "testspace".  To accomplish this the test namespace was set as a label for all PVs and selector for all Claims.  This allows each test to act as if it's isolated while still creating and binding PVs in parallel w/ other tests.
      
      This has been tested in parallel on both 3-node gci and debian clusters as
      `--ginkgo.focus="\[Volume\]" --ginkgo.skip="\[Disruptive\]|\[Feature.*\]|\[Serial\]"`
      with out signs of flakiness.
      
      cc @jeffvance 
      
      ```release-note
      NONE
      ```
      bddc308b
    • Kubernetes Submit Queue's avatar
      Merge pull request #43406 from janetkuo/ds-semantic-equal-update · ebf1439d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add tests for semantically equal DaemonSet updates
      
      Tests for #43337, depends on #43337. The last commit is already reviewed in #43337. 
      
      @liggitt @kargakis @lukaszo @kubernetes/sig-apps-pr-reviews
      ebf1439d
    • Kubernetes Submit Queue's avatar
      Merge pull request #44280 from yujuhong/add-warning-hostpid · a00498ad
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Modify change log to warn user of the hostpid bug
      a00498ad
  2. 11 Apr, 2017 22 commits
    • Chao Xu's avatar
      move helpers.go to helper · 08aa712a
      Chao Xu authored
      08aa712a
    • 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
    • Sahdev P. Zala's avatar
      Fix goling failure in conversion public function doc · 4af92ce9
      Sahdev P. Zala authored
      The exported or public functions without a comment results into golint failure
      in various generated files. The changes in this patch takes care of about 36
      related lint failures.
      Given below is an example lint error,
      zz_generated.conversion.go:91:1: exported function
      Convert_v1alpha1_Binding_To_servicecatalog_Binding should have comment or be
      unexported
      4af92ce9
    • Kubernetes Submit Queue's avatar
      Merge pull request #42860 from jcbsmpsn/change-pem-type-to-constant · 60310ce0
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Change the PEM block type to use the constant
      60310ce0
    • Matthew Wong's avatar
      36d244f0
    • Timothy St. Clair's avatar
      Fixups for Godeps · 9c7e331e
      Timothy St. Clair authored
      9c7e331e
    • Kubernetes Submit Queue's avatar
      Merge pull request #44327 from NickrenREN/vsphere-util · c826c5a1
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Using BetaStorageClassAnnotation to avoid hardcode
      
      **Release note**:
      ```release-note
      NONE
      ```
      c826c5a1
    • Kubernetes Submit Queue's avatar
      Merge pull request #44294 from deads2k/server-16-gorestful · 673ca98f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      remove dependency on gorestful for rest handling
      
      There's no reason for us to rely upon go-restful for our REST handling.  This separates the layers so that gorestful route functions are built on top of native `http.HandlerFuncs`.
      
      @DirectXMan12 I think this is the sort of handling you wanted to be able to add and remove at will, right?  I have other commits that demonstrate how to wire these into "normal" `http.Handlers` if its useful to you.
      
      @kubernetes/sig-api-machinery-pr-reviews @smarterclayton @sttts @lavalamp
      673ca98f