1. 21 Apr, 2017 1 commit
    • Kubernetes Submit Queue's avatar
      Merge pull request #44356 from copejon/deflake-e2e-volume-pd · 3153cd68
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      De-Flake Volume E2E:  force GCEPD detach to prevent timeout
      
      **What this PR does / why we need it**:
      Fix flake`[k8s.io] Volumes [Volume] [k8s.io] PD should be mountable [Flaky] 5m38s.  
      
      Flake occurs as a result of an automated detach taking longer than 5 minutes, which exceeds the timeout limit of the delete function.
      
      This PR adds explicit detach and wait func calls before the deletion.  By forcing the detach and giving GCE an appropriate timeout limit, this should squash the timeout flake.  This also significantly shortens cleanup time.
      
      This PR does not remove the [Flaky] tag.  Once this PR is merged, I'll keep an eye on the test grid for ~1 week.  If no flakes surface, I'll submit a PR to pull the tag off.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes  #43977
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      3153cd68
  2. 20 Apr, 2017 33 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
    • 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
    • gmarek's avatar
      7ad55c8a
    • Piotr Szczesniak's avatar
      Removed fluentd-gcp manifest pod · 113f120e
      Piotr Szczesniak authored
      113f120e
    • Kubernetes Submit Queue's avatar
      Merge pull request #43171 from ravisantoshgudimetla/kubectl_taints_ux · 2c6fbc95
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Refactoring reorganize taints function in kubectl to expose operations
      
      **What this PR does / why we need it**:
      This adds some UX functionality when specifying taints using kubectl.
      For example:
      ```
      ./kubectl.sh taint nodes XYZ dedicated1=abca2:NoSchedule 
      node "XYZ" tainted
       ./kubectl.sh taint nodes XYZ dedicated1=abca1:NoSchedule --overwrite=True
      node "XYZ overwritten
      ./kubectl.sh taint nodes XYZ dedicated1-
      node "XYZ" untainted
      ./kubectl.sh taint nodes XYZ dedicated=abca1:NoSchedule dedicated1-
      node "XYZ" modified
      ```
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #43167 
      
      **Release note**:
      ```
      Fixed the output of kubectl taint node command with minor improvements.
      ```
      2c6fbc95
    • Tomas Smetana's avatar
      Fix issue #34242: Attach/detach should recover from a crash · 852c44ae
      Tomas Smetana authored
      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.
      852c44ae
    • Kubernetes Submit Queue's avatar
      Merge pull request #44565 from vmware/kubernetes-e2e-v7 · 94a5074b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      adding test for volume fstype validation
      
      **What this PR does / why we need it**:
      This PR is adding a test for volume fstype validation. Test verifies fstype specified in storage-class is being honored after volume creation.
      
      Steps:
      
      1. Create StorageClass with fstype set to valid type (default case included). 
      2. Create PVC which uses the StorageClass created in step 1.
      3. Wait for PV to be provisioned.
      4. Wait for PVC's status to become Bound.
      5. Create pod using PVC on specific node.
      6. Wait for Disk to be attached to the node.
      7. Execute command in the pod to get fstype.
      8. Delete pod and Wait for Volume Disk to be detached from the Node.
      9. Delete PVC, PV and Storage Class.
      
      
      
      **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
      ```
      
      cc: @jeffvance @tusharnt
      94a5074b
    • Kubernetes Submit Queue's avatar
      Merge pull request #44696 from justinsb/fix_44695 · 33bdec3f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42272, 44696)
      
      e2e test fix: Wait longer when first creating ELB
      
      On any cloud (GCE or AWS), a lag between creating the LoadBalancer and
      having it actually start serving traffic is expected.  On AWS the lag is
      larger, and we weren't correctly using the longer wait on our first
      request.
      
      Use a longer wait period on our first request.
      
      Fix #44695
      
      ```release-note
      NONE
      ```
      33bdec3f
    • caiyixiang's avatar
      delete unuse const · 31829850
      caiyixiang authored
      31829850
    • Kubernetes Submit Queue's avatar
      Merge pull request #42272 from marun/apiserver-fail-fast · afc01d92
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      apiserver: Update genericapiserver to panic on listener error
      
      Previously runServer would try to listen again if a listener error occurred.  This commit changes the response to a panic to allow a process manager (systemd/kubelet/etc) to react to the failure.
      
      **Release note**:
      
      ```release-note
      The Kubernetes API server now exits if it encounters a networking failure (e.g. the networking interface hosting its address goes away) to allow a process manager (systemd/kubelet/etc) to react to the problem.  Previously the server would log the failure and try again to bind to its configured address:port.
      ```
      
      cc: @liggitt @sttts @deads2k @derekwaynecarr
      afc01d92
    • Wojciech Tyczynski's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #40890 from marun/e2e-use-kubeconfig-host · a40fef5d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      e2e: Prefer kubeconfig host to default
      
      Previously it was necessary to pass ``-host`` to ``e2e.test`` even if ``-kubeconfig`` was specified since otherwise a localhost default would be used.  This change ensures that the default is only used when kubeconfig is not set. 
      
      cc: @jayunit100
      a40fef5d
    • FengyunPan's avatar
      Use const value for pod's conditions · 1bad02cb
      FengyunPan authored
      1bad02cb
    • Justin Santa Barbara's avatar
      e2e test fix: Wait longer when first creating ELB · 854900c4
      Justin Santa Barbara authored
      On any cloud (GCE or AWS), a lag between creating the LoadBalancer and
      having it actually start serving traffic is expected.  On AWS the lag is
      larger, and we weren't correctly using the longer wait on our first
      request.
      
      Use a longer wait period on our first request.
      
      Fix #44695
      854900c4
    • Kubernetes Submit Queue's avatar
      Merge pull request #44661 from xiangpengzhao/fix-vsphere-panic · fba605ce
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44687, 44689, 44661)
      
      Fix panic when using `kubeadm init` with vsphere cloud-provider
      
      **What this PR does / why we need it**:
      Check if the reference is nil when finding machine reference by UUID.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #44603
      
      **Special notes for your reviewer**:
      This is just a quick fix for the panic.
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      fba605ce
    • Kubernetes Submit Queue's avatar
      Merge pull request #44689 from rmmh/avoid-get-kube-dl-flake · 6d67cdd4
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44687, 44689, 44661)
      
      Retry in get-kube.sh to avoid download flakes.
      
      GCS has up to 2% 5xx rates, so retrying is critical.
      
      This is currently failing about 8 times per day [according to the dashboard](https://storage.googleapis.com/k8s-gubernator/triage/index.html?test=Extract#be2f33fb1e6dd2389d12). It could be backported to reduce the flake rate.
      
      Relase note:
      ```release-note
      NONE
      ```
      6d67cdd4
    • Kubernetes Submit Queue's avatar
      Merge pull request #44687 from cblecker/hacklib-tar · 18cd0f48
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add hack/lib to kubernetes release tarball
      
      **What this PR does / why we need it**:
      Add hack/lib to kubernetes release tarball, to fix an issue with https://get.k8s.io/ script introduced in #42748.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*:
      Fixes https://github.com/kubernetes/kubernetes/pull/42748#issuecomment-295412268
      
      **Special notes for your reviewer**:
      I'm new to bazel, so hopefully I'm not off-base here :)
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      
      cc: @ixdy @dcbw @smarterclayton
      18cd0f48
  3. 19 Apr, 2017 6 commits