1. 21 Apr, 2017 20 commits
  2. 20 Apr, 2017 20 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #39732 from tsmetana/issue_34242 · db53e804
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44722, 44704, 44681, 44494, 39732)
      
      Fix issue #34242: Attach/detach should recover from a crash
      
      When the attach/detach controller crashes and a pod with attached PV is deleted afterwards the controller will never detach the pod's attached volumes. To prevent this the controller should try to recover the state from the nodes status and figure out which volumes to detach. This requires some changes in the volume providers too: the only information available from the nodes is the volume name and the device path. The controller needs to find the correct volume plugin and reconstruct the volume spec just from the name. This required a small change also in the volume plugin interface.
      
      Fixes Issue #34242.
      cc: @jsafrane @jingxu97
      db53e804
    • Kubernetes Submit Queue's avatar
      Merge pull request #44494 from wojtek-t/faster_kube_proxy · 0a443ba4
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44722, 44704, 44681, 44494, 39732)
      
      Don't rebuild endpoints map in iptables kube-proxy all the time.
      
      @thockin - i think that this PR should help with yours https://github.com/kubernetes/kubernetes/pull/41030 - it (besides performance improvements) clearly defines when update because of endpoints is needed. If we do the same for services (I'm happy to help with it), i think it should be much simpler.
      
      But please take a look if it makes sense from your perspective too.
      0a443ba4
    • Kubernetes Submit Queue's avatar
      Merge pull request #44681 from wwwtyro/rye/disable-upstream-docker · 5cbe7b69
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44722, 44704, 44681, 44494, 39732)
      
      prevent installation of docker from upstream
      
      **What this PR does / why we need it**: Disallows installation of upstream docker from PPA in the Juju kubernetes-worker charm.
      
      **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
      Disallows installation of upstream docker from PPA in the Juju kubernetes-worker charm.
      ```
      5cbe7b69
    • Kubernetes Submit Queue's avatar
      Merge pull request #44704 from caiyixiang/del_unuse_const · 3cc0e4b5
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44722, 44704, 44681, 44494, 39732)
      
      delete unuse const
      
      delete unuseful const
      3cc0e4b5
    • Kubernetes Submit Queue's avatar
      Merge pull request #44722 from gmarek/netstat_to_file · e07497b6
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Redirect some test spam to files instead of main log files
      
      Ref #44707
      
      @kubernetes/test-infra-maintainers @wojtek-t
      e07497b6
    • Kubernetes Submit Queue's avatar
      Merge pull request #44720 from FengyunPan/use-const · f99e9a50
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Use const value for pod's conditions
      
      None
      f99e9a50
    • Jess Frazelle's avatar
      Update CHANGELOG.md for v1.4.12. · 2425f581
      Jess Frazelle authored
      2425f581
    • Kubernetes Submit Queue's avatar
      Merge pull request #44651 from knightXun/string · 870585e8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44594, 44651)
      
      remove strings.compare(), use string native operation
      
      I notice we use strings.Compare() in some code, we can remove it and use native operation.
      870585e8
    • Kubernetes Submit Queue's avatar
      Merge pull request #44594 from xiangpengzhao/describe-node-depre-phase · 6bf7914a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Delete deprecated node phase in kubect describe node.
      
      **What this PR does / why we need it**:
      Since NodePhase is no longer used, delete it in `kubect describe node` result. 
      
      **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**:
      ref: https://github.com/kubernetes/kubernetes/pull/44388
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      6bf7914a
    • Rye Terrell's avatar
      prevent installation of docker from upstream · 20c36e9c
      Rye Terrell authored
      20c36e9c
    • Kubernetes Submit Queue's avatar
      Merge pull request #44721 from piosz/remove-fluentd-manifest · 6bf9f2f0
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42177, 42176, 44721)
      
      Removed fluentd-gcp manifest pod
      
      ```release-note
      Fluentd manifest pod is no longer created on non-registered master when creating clusters using kube-up.sh.
      ```
      6bf9f2f0
    • Kubernetes Submit Queue's avatar
      Merge pull request #42176 from enisoc/controller-ref-job · 7b43f922
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42177, 42176, 44721)
      
      Job: Respect ControllerRef
      
      **What this PR does / why we need it**:
      
      This is part of the completion of the [ControllerRef](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/controller-ref.md) proposal. It brings Job into full compliance with ControllerRef. See the individual commit messages for details.
      
      **Which issue this PR fixes**:
      
      This ensures that Job does not fight with other controllers over control of Pods.
      
      Ref: #24433
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      Job controller now respects ControllerRef to avoid fighting over Pods.
      ```
      cc @erictune @kubernetes/sig-apps-pr-reviews
      7b43f922
    • Kubernetes Submit Queue's avatar
      Merge pull request #42177 from enisoc/controller-ref-cronjob · f25a6575
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42177, 42176, 44721)
      
      CronJob: Respect ControllerRef
      
      **What this PR does / why we need it**:
      
      This is part of the completion of the [ControllerRef](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/controller-ref.md) proposal. It brings CronJob into compliance with ControllerRef. See the individual commit messages for details.
      
      **Which issue this PR fixes**:
      
      This ensures that other controllers do not fight over control of objects that a CronJob owns.
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      CronJob controller now respects ControllerRef to avoid fighting with other controllers.
      ```
      cc @erictune @kubernetes/sig-apps-pr-reviews
      f25a6575
    • Mik Vyatskov's avatar
      a5757621
    • Kubernetes Submit Queue's avatar
      Merge pull request #44238 from zhouhaibing089/no-flavor-usage · 223a8e59
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44555, 44238)
      
      openstack: remove field flavor_to_resource
      
      I believe there is no usage about `flavor_to_resource`, and I think there is no need to build that information, too.
      
      cc @anguslees 
      
      **Release note:**
      
      ```
      NONE
      ```
      223a8e59
    • Kubernetes Submit Queue's avatar
      Merge pull request #44555 from luxas/remove_hyperkube_docker_multinode · 1413f2e8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Remove the old docker-multinode files that were built into the hyperkube image
      
      **What this PR does / why we need it**:
      
      ref: https://goo.gl/VxSaKx
      
      **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
      The hyperkube image has been slimmed down and no longer includes addon manifests and other various scripts. These were introduced for the now removed docker-multinode setup system.
      ```
      
      cc @jbeda @brendandburns @bgrant0607 @justinsb @mikedanese
      1413f2e8
    • Kubernetes Submit Queue's avatar
      Merge pull request #44449 from liggitt/rbac-allocations · 9543510d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Switch to pointer to policy rule, visit and short circuit during authorization
      
      Ref #40015
      
      * Switches policy rule helper methods to work with pointers
      * Switches authorization to use a short-circuiting visitor
      
      Best-case, authorization short-circuits early and avoids accumulating rules it never needs to check
      
      Worst-case (a forbidden request), it still checks all the applicable rules, but requires less allocation to do so
      
      $ go test ./plugin/pkg/auth/authorizer/rbac/... -bench=. -benchmem -run Bench
      
      on master:
      ```
      BenchmarkAuthorize/allow_list_pods-8           300000   4373 ns/op  3840 B/op  26 allocs/op
      BenchmarkAuthorize/allow_update_pods/status-8  300000   5121 ns/op  3840 B/op  26 allocs/op
      BenchmarkAuthorize/forbid_educate_dolphins-8   300000   4706 ns/op  3840 B/op  26 allocs/op
      ```
      
      with short-circuiting and policy rule pointer changes:
      ```
      BenchmarkAuthorize/allow_list_pods-8           2000000  930 ns/op   64 B/op    2 allocs/op
      BenchmarkAuthorize/allow_update_pods/status-8  1000000  1656 ns/op  64 B/op    2 allocs/op
      BenchmarkAuthorize/forbid_educate_dolphins-8   500000   3395 ns/op  1488 B/op  25 allocs/op
      ```
      9543510d
    • Anthony Yeh's avatar
      Update CHANGELOG.md for v1.7.0-alpha.2. · 06d6a9ec
      Anthony Yeh authored
      06d6a9ec
    • Jordan Liggitt's avatar
      b2994a29
    • Jordan Liggitt's avatar