1. 31 Oct, 2017 6 commits
  2. 30 Oct, 2017 29 commits
  3. 29 Oct, 2017 5 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