1. 31 Oct, 2017 1 commit
    • Kubernetes Submit Queue's avatar
      Merge pull request #54533 from mengqiy/kubectl_scheme · 812f1a3e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 54533, 54777, 54763, 54806, 54703). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      Create kubectl's own instance of Scheme and Registry
      
      Create kubectl's own instance of Registry and Scheme.
      Switch most command that doesn't depend on internal types to use kubectl's own scheme and register.
      
      There are some hack of registering the internal types in some of unit test now, they should be gone after switch to the external type.
      
      Switch kubectl's factory code to use kubectl's scheme will create a lot of ripples.
      I don't want make this PR a super giant PR, so I will do it in a followup PR.
      
      Partially addressed #48564.
      
      Copy the summary from https://github.com/kubernetes/kubernetes/pull/54533#issuecomment-340522302:
      - creates pkg/kubectl/scheme (install.go and scheme.go) with
      deps on properly vendored k8s.io packages.
      - deletes about 80% percent of dependence on pkg/api/legacyscheme
      - replaces direct dependence from pkg/kubectl on
      pkg/apis/rbac
      to a vendor style dependence on
      k8s.io/api/rbac
      and removes dependencies on rbac paths containing internalversion
      - replaces almost 50% of direct dependence on pkg/api with (properly vendored)
      k8s.io/api/core/v1
      - deletes all of dependence on pkg/apis/policy and k8s.io/api/policy/v1beta1
      
      ```release-note
      NONE
      ```
      
      /assign @monopole @apelisse
      cc: @pwittrock
      812f1a3e
  2. 30 Oct, 2017 26 commits
  3. 29 Oct, 2017 7 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #53768 from smarterclayton/chunking_cli · 12e5db56
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      Support api chunking in kubectl get
      
      This enables chunking in the resource builder to make it easy to
      retrieve resources in pages and visit partial result sets. This adds
      `--chunk-size` to `kubectl get` only so that users can get comfortable
      with the use of chunking in beta. Future changes will enable chunking
      for all CLI commands so that bulk actions can be performed more
      efficiently.
      
      ```
      $ kubectl get pods --all-namespaces
      ... print batch of 500 pods ...
      ... print second batch of 500 pods ...
      ...
      ```
      
      @kubernetes/sig-cli-pr-reviews @kubernetes/sig-api-machinery-pr-reviews
      
      ```release-note
      `kubectl get` will by default fetch large lists of resources in chunks of up to 500 items rather than requesting all resources up front from the server. This reduces the perceived latency of managing large clusters since the server returns the first set of results to the client much more quickly.  A new flag `--chunk-size=SIZE` may be used to alter the number of items or disable this feature when `0` is passed.  This is a beta feature.
      ```
      12e5db56
    • Ian Chakeres's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #54756 from andrewrynhard/fix-bind-addr · c87d3d91
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      kubeadm: fix the DNS addon bind address
      
      **What this PR does / why we need it**:
      Fixes a small bug introduced in #54437 
      The net package's definition of `To16` is as follows:
      ```
      // To16 converts the IP address ip to a 16-byte representation.
      // If ip is not an IP address (it is the wrong length), To16 returns nil.
      func (ip IP) To16() IP {
      	if len(ip) == IPv4len {
      		return IPv4(ip[0], ip[1], ip[2], ip[3])
      	}
      	if len(ip) == IPv6len {
      		return ip
      	}
      	return nil
      }
      ```
      We can see that the `To16 ` function returns a non nil value when passed in an IPv4 address. This PR switches the check to use `To4()` instead, which will return `nil` when passed an IPv6 address.
      c87d3d91
    • Davanum Srinivas's avatar
      Fix TestCRD Flake · 00bcbd13
      Davanum Srinivas authored
      The DestroyFunc functions returned by generic.NewRawStorage is never
      called when we do a StartTestServer() in the test suite. For a quick
      hack for now, added TrackStorageCleanup/RegisterStorageCleanup and
      CleanupStorage. Note that unless TrackStorageCleanup is called (which
      is called only from the test suite) the other two methods are
      no-ops essentially. So no change in behavior at runtime. This vastly
      brings down the number of goroutines that are left behind when this
      test is executed and should reduce if not eliminate the flakiness
      of TestCRD
      00bcbd13
    • Andrew Rynhard's avatar
      Fix the DNS addon bind address · cfddee4f
      Andrew Rynhard authored
      cfddee4f
    • Kubernetes Submit Queue's avatar
      Merge pull request #54346 from zouyee/rbac · 1bc5f7cf
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      update rbac apiversion
      
      **What this PR does / why we need it**:
      update rbac apiversion to v1
      **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**:
      
      **Release note**:
      
      ```NONE
      ```
      1bc5f7cf
    • Kubernetes Submit Queue's avatar
      Merge pull request #54738 from m1093782566/ipvs-local-up · efe3f13f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      Clean up ipvs proxy startup in local-up.sh
      
      **What this PR does / why we need it**:
      
      Clean up ipvs proxy startup in local-up.sh
      
      **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**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      
      /sig network
      efe3f13f
  4. 28 Oct, 2017 6 commits