1. 13 Jul, 2017 1 commit
  2. 12 Jul, 2017 39 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #48757 from codablock/fix_flake_46244 · 9e223539
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48672, 47140, 48709, 48786, 48757)
      
      Fix flaky test Test_Run_OneVolumeAttachAndDetachMultipleNodesWithReadWriteMany
      
      Only relying on the NewAttacher/Detacher call counts is not enough as they
      happen in parallel to the testing/verification code and thus the actual
      attaching/detaching may not be done yet, resulting in flaky test results.
      
      Fixes #46244
      9e223539
    • Kubernetes Submit Queue's avatar
      Merge pull request #48786 from janetkuo/show-all-fix · b996d8ab
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48672, 47140, 48709, 48786, 48757)
      
      Correctly filter terminated pods in kubectl
      
      We shouldn't use `Status.Reason` to determine whether the pod has terminated or not.
      b996d8ab
    • Kubernetes Submit Queue's avatar
      Merge pull request #48709 from jsafrane/gluster-autumount · f5f9894e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48672, 47140, 48709, 48786, 48757)
      
      glusterfs: retry without auto_unmount only when it's not supported
      
      GlusterFS volume plugin should not blindly retry all failed mounts without
      auto_unmount, it should retry them only when we are sure that auto_unmount
      was the reason the first attempt failed.
      
      @kubernetes/sig-storage-pr-reviews 
      /assign @humblec 
      
      ```release-note
      NONE
      ```
      f5f9894e
    • Kubernetes Submit Queue's avatar
      Merge pull request #47140 from brendandburns/godep · 345d7197
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48672, 47140, 48709, 48786, 48757)
      
      Update Azure SDK.
      
      Updates to the Azure SDK to pick up new APIs.
      345d7197
    • Kubernetes Submit Queue's avatar
      Merge pull request #48672 from dixudx/resolve_hard_coded_path_sep_atomic · 65b48aae
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48672, 47140, 48709, 48786, 48757)
      
      use built-in path separator instead of hard coded
      
      **What this PR does / why we need it**:
      
      We should use built-in path separator to avoid hard coded strings.
      
      **Which issue this PR fixes** :
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      None
      ```
      65b48aae
    • Kubernetes Submit Queue's avatar
      Merge pull request #48482 from jianglingxia/jlx0705 · 8e5584fe
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48405, 48742, 48748, 48571, 48482)
      
      Remove unused parameter
      
      **What this PR does / why we need it**:
      
      **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
      ```
      8e5584fe
    • Kubernetes Submit Queue's avatar
      Merge pull request #48571 from verult/DefaultCOSFlexDir · 93344ea1
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48405, 48742, 48748, 48571, 48482)
      
      Setting default FlexVolume driver directory on COS images.
      
      **What this PR does / why we need it**: The original default FlexVolume driver directory is not writable on COS. A new location is necessary to make FlexVolume work.
      
      This directory doesn't exist by default. FlexVolume users need to create this directory, bind mount it, and remount with the executable permission. The other candidate is /home/kubernetes/bin, but the directory is already getting cluttered. I will submit a different PR for a script that automates this step.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #48570
      93344ea1
    • Kubernetes Submit Queue's avatar
      Merge pull request #48748 from liggitt/node-restriction-message · 80a0f555
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48405, 48742, 48748, 48571, 48482)
      
      Improve node restriction message
      
      Help debug https://github.com/kubernetes/kubernetes/issues/48687#issuecomment-314224531
      
      /assign @luxas
      80a0f555
    • Kubernetes Submit Queue's avatar
      Merge pull request #48742 from yujuhong/rm-unused · fa729128
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48405, 48742, 48748, 48571, 48482)
      
      dockershim: clean up unused security context code
      
      Most of the code in the `dockershim/securitycontext` package are
      unused and can be removed. This PR migrates the rest of the code,
      cleans it up (e.g., remove references to kubernetes API objects),
      and removes the package entirely.
      fa729128
    • Kubernetes Submit Queue's avatar
      Merge pull request #48405 from k82cn/k8s_44188_1 · eb196f8c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48405, 48742, 48748, 48571, 48482)
      
      Removed scheduler dependencies to testapi.
      
      **What this PR does / why we need it**:
      When refactor scheduler to use client-go, k8s.io/api, it's also need to remove the dependeny to testapi.
      
      prefer to only include import/BUILD changes for #44188, so created separated PR for other enhancement removal.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: partially fixes #44188
      
      **Release note**:
      
      ```release-note-none
      ```
      eb196f8c
    • Brendan Burns's avatar
      update bazel and godep after rebase. · f32b390c
      Brendan Burns authored
      f32b390c
    • Kubernetes Submit Queue's avatar
      Merge pull request #48737 from mattmoyer/faster-kubeadm-join · 7d97208e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      kubeadm: begin polling for bootstrap cluster info immediately
      
      **What this PR does / why we need it**:
      This PR changes the behavior of the `kubeadm` loop that polls the API server waiting for discovery information (`cluster-info`). The previous (inadvertent?) behavior was to sleep for `constants.DiscoveryRetryInterval` (5 seconds) before the first request ([`PollInfinite`](https://godoc.org/k8s.io/apimachinery/pkg/util/wait#PollInfinite) vs. [`PollImmediateInfinite`](https://godoc.org/k8s.io/apimachinery/pkg/util/wait#PollImmediateInfinite)).
      
      After this change, `kubeadm` begins does the first check immediately before it moves into the slower polling mode. This takes around 5 seconds off the average time for a new node to join.
      
      #### Before (~5.5s)
      ```
      root@worker:~# time kubeadm join --token abc.123 192.168.42.10:6443
      [...]
      real	0m5.523s
      user	0m0.112s
      sys	0m0.124s
      ```
      
      #### After (~0.5s)
      ```
      root@worker:~# time kubeadm join --token abc.123 192.168.42.10:6443
      [...]
      real	0m0.587s
      user	0m0.092s
      sys	0m0.132s
      ```
      
      **Which issue this PR fixes**:
      
      **Special notes for your reviewer**:
      This is my first Kubernetes PR, so please let me know if it's formatted correctly.
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      7d97208e
    • Brendan Burns's avatar
      Code updates for new SDK. · 29a0c6f5
      Brendan Burns authored
      29a0c6f5
    • Brendan Burns's avatar
      Add in build files. · 0d26b36c
      Brendan Burns authored
      0d26b36c
    • Brendan Burns's avatar
      Bazel files. · 3856267b
      Brendan Burns authored
      3856267b
    • Brendan Burns's avatar
      Update godeps. · 56accd87
      Brendan Burns authored
      56accd87
    • Kubernetes Submit Queue's avatar
      Merge pull request #48730 from shyamjvs/reposition-scale-tests · 8e9186a5
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Move performance tests to test/e2e/scalability subdirectory
      
      Following the move to make e2e tests more organized and accountable to the respective SIGs.
      
      cc @kubernetes/sig-scalability-pr-reviews @wojtek-t @gmarek @grodrigues3
      8e9186a5
    • Kubernetes Submit Queue's avatar
      Merge pull request #48735 from nicksardo/gce-empty-network-proj · 787f5e0f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48698, 48712, 48516, 48734, 48735)
      
      GCE: Allow empty NETWORK_PROJECT_ID env var
      
      Changes:
      1. Adds `GCE_API_ENDPOINT` logic to container-linux as it was added to GCI in #47881.
      1. Apply `NETWORK_PROJECT_ID` value to gce.conf only if the env var is set.
      
      /sig network
      /area platform/gce
      
      **Release note**:
      ```release-note
      NONE
      ```
      787f5e0f
    • Kubernetes Submit Queue's avatar
      Merge pull request #48734 from tallclair/namechange · 0e461035
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48698, 48712, 48516, 48734, 48735)
      
      Name change: s/timstclair/tallclair/
      
      I changed my name, and I'm migrating my user name to be consistent.
      0e461035
    • Kubernetes Submit Queue's avatar
      Merge pull request #48516 from freehan/shared-iptables · 215e8fab
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48698, 48712, 48516, 48734, 48735)
      
      share iptables util client within kubenet
      
      reduce the number of goroutine waiting for dbus.
      215e8fab
    • Kubernetes Submit Queue's avatar
      Merge pull request #48712 from crassirostris/event-exporter-bump-version · 0912abb2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48698, 48712, 48516, 48734, 48735)
      
      Bump event-exporter version
      
      Fixes https://github.com/kubernetes/kubernetes/issues/47914
      
      ```release-note
      Reduce amount of noise in Stackdriver Logging, generated by the event-exporter component in the fluentd-gcp addon.
      ```
      0912abb2
    • Kubernetes Submit Queue's avatar
      Merge pull request #48698 from sakeven/remove_mime · 69dff8b9
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      remove svg mime type extension
      Signed-off-by: 's avatarsakeven <jc5930@sina.cn>
      
      
      
      **What this PR does / why we need it**:
      
      I found that [kubernetes requires go version 1.6 or greater](https://github.com/kubernetes/kubernetes/blob/master/hack/lib/golang.sh#L335).
      While the [commit](https://github.com/golang/go/commit/21e47d831bafb59f22b1ea8098f709677ec8ce33)  which adds "image/svg+xml" type for extension ".svg", has been merged to go from version 1.5 to 1.9beta.
      
      So it's safe to remove code ```mime.AddExtensionType(".svg", "image/svg+xml")```.
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```
      NONE
      ```
      69dff8b9
    • Kubernetes Submit Queue's avatar
      Merge pull request #47593 from fgimenez/cloudprovider-openstack-byid · 3ade1a15
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47948, 48631, 48693, 48549, 47593)
      
      OpenStack for cloud-controller-manager
      
      **What this PR does / why we need it**:
      This implements the `NodeAddressesByProviderID` and `InstanceTypeByProviderID` methods used by the cloud-controller-manager to the OpenStack provider. The instance type returned is the flavor name, for consistency `InstanceType` has been implemented too returning the same value.
      
      ```release-note
      NONE
      ```
      
      This is part of #47257 cc @wlan0
      3ade1a15
    • Kubernetes Submit Queue's avatar
      Merge pull request #48549 from maleck13/add-generated-clients · 1f1f9ef9
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47948, 48631, 48693, 48549, 47593)
      
      add generated clients. modify codegen script 
      
      **What this PR does / why we need it**:
      Adds in the generated clientsets for the sample apiserver. Modifies the update-codgen script to copy over the client from the generated location. We need it in order to be able to add integrations and unit tests that make use of the clientsets and their fakes.
      
      **Special notes for your reviewer**:
      @deads2k  @p0lyn0mial  hopefully done the correct thing here. Not 100% sure on needing the copy but it seemed what was needed to get the import paths correct?
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      1f1f9ef9
    • Kubernetes Submit Queue's avatar
      Merge pull request #48693 from CaoShuFeng/audit_id_header · 7b650c9e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47948, 48631, 48693, 48549, 47593)
      
      add a regression test for Audit-ID http header
      
      This change add a test for: https://github.com/kubernetes/kubernetes/pull/48492
      
      
      
      **What this PR does / why we need it**:
      
      **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
      ```
      7b650c9e
    • Kubernetes Submit Queue's avatar
      Merge pull request #48631 from smarterclayton/unify_proxy · e152e670
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47948, 48631, 48693, 48549, 47593)
      
      Unify generic proxy code in apimachinery
      e152e670
    • Kubernetes Submit Queue's avatar
      Merge pull request #47948 from allencloud/remove-unused-code-in-loadSystemLanguage · 2b03c2e6
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      fix system language judging bug in loadSystemLanguage
      Signed-off-by: 's avatarallencloud <allen.sun@daocloud.io>
      
      
      
      **What this PR does / why we need it**:
      This PR removes some unused code in loadSystemLanguage. Since in code `pieces := strings.Split(langStr, ".")`, even `langStr` is an empty string, `piece` is a slice with one element of empty string, so there is no chance that len(pieces) == 0.
      
      According to these, I think it is OK to remove the unused code in loadSystemLanguage.
      
      According to the discuss we had, finally we decided to use a more accurate way to change the code, using `if len(pieces) != 1` to make the decision. 
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      NONE
      
      **Special notes for your reviewer**:
      NONE
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      2b03c2e6
    • Shyam Jeedigunta's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #48614 from xing-yang/function_name · b8f1bb41
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46865, 48661, 48598, 48658, 48614)
      
      Fix function names in the comments
      
      This patch fixes function and type names in the comments
      in predicates.go.
      
      
      
      **What this PR does / why we need it**: 
      It fixes function and type names in the comments in predicates.go.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      This does not have an issue # because it is a trivial fix.
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      ```
      b8f1bb41
    • Kubernetes Submit Queue's avatar
      Merge pull request #48658 from CaoShuFeng/WriteHeader · fee4421b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46865, 48661, 48598, 48658, 48614)
      
      remove extra WriteHeader function
      
      The deleted two functions will be called later in the function
      SerializeObject(). Not necessary to call them twice.
      
      **Release note**:
      ```
      NONE
      ```
      fee4421b
    • Kubernetes Submit Queue's avatar
      Merge pull request #48598 from gmarek/metrics · de30789b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46865, 48661, 48598, 48658, 48614)
      
      Move metrics_grabbert to test/e2e
      
      cc @aleksandra-malinowska
      de30789b
    • Kubernetes Submit Queue's avatar
      Merge pull request #48661 from mikedanese/bump-docker · 33f3332a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46865, 48661, 48598, 48658, 48614)
      
      bump rules_docker to pickup performance improvements
      33f3332a
    • Kubernetes Submit Queue's avatar
      Merge pull request #46865 from sttts/sttts-kube-apiserver-run-test · 172df7e2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      kube-apiserver: tests for aggregation and CRDs via delegation
      
      In our integration tests we do not use the real kube-apiserver setup code, but mock our own. Here I use the actual `cmd/kube-apiserver/app.Run()` func with an testing etcd server. This can test the whole delegation chain of aggregator, apiextensions and kube-apiserver.
      172df7e2
    • Kubernetes Submit Queue's avatar
      Merge pull request #48543 from humblec/heketi-voloptions-api · b139d9d7
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Update heketi dependencies to SHA@53ed62346cbd870d02be06fead8652a8fd6208c6
      
      PR #44174 Requires this api change.
      Signed-off-by: 's avatarHumble Chirammal <hchiramm@redhat.com>
      b139d9d7
    • Kubernetes Submit Queue's avatar
      Merge pull request #39173 from caesarxuchao/include-leaderelection · b66be981
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47232, 48625, 48613, 48567, 39173)
      
      Include leaderelection in client-go; 
      
      Fix #39117
      Fix https://github.com/kubernetes/client-go/issues/28
      
      This PR:
      * includes the leaderelection to the staging client-go
      * to avoid conflict with golang's testing package, renames package /testing to /testutil, and renames cache/testing to cache/testframework
      
      ```release-note
      client-go now includes the leaderelection package
      ```
      b66be981
    • Kubernetes Submit Queue's avatar
      Merge pull request #48567 from jingxu97/July/getcapacity · dbb42838
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47232, 48625, 48613, 48567, 39173)
      
      Fix issue when setting fileysystem capacity in container manager
      
      In Container manager, we set up the capacity by retrieving information
      from cadvisor. However unlike machineinfo, filesystem information is
      available at a later unknown time. This PR uses a go routine to keep
      retriving the information until it is avaialble or timeout.
      This PR fixes issue #48452
      dbb42838
    • Kubernetes Submit Queue's avatar
      Merge pull request #48613 from dcbw/userspace-proxy-host-ip · 923ef03d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47232, 48625, 48613, 48567, 39173)
      
      proxy/userspace: honor listen IP address as host IP if given
      
      Allows the proxier to be used on an interface that's not the default route,
      otherwise hostIP gets set to the default route interface even if that's
      not what the user intended.
      
      If listen IP isn't given, falls back to previous behavior.
      
      ```release-note
      To allow the userspace proxy to work correctly on multi-interface hosts when using the non-default-route interface, you may now set the `bindAddress` configuration option to an IP address assigned to a network interface.  The proxy will use that IP address for any required NAT operations instead of the IP address of the interface which has the default route.
      ```
      
      @kubernetes/sig-network-misc @thockin @wojtek-t
      923ef03d
    • Kubernetes Submit Queue's avatar
      Merge pull request #48625 from MrHohn/kube-proxy-metrics-flags · d396ac53
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47232, 48625, 48613, 48567, 39173)
      
      Make kube-proxy's MetricsBindAddress configurable via flag
      
      **What this PR does / why we need it**: From #48600, `MetricsBindAddress` used to be configurable through flag (coupled with `HealthzBindAddress`). But this functionality went away after #44968 separated healthz server from metrics server. This PR adds that functionality back.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: 
      
      **Special notes for your reviewer**:
      /assign @ncdc 
      cc @bowei @r0bj
      
      **Release note**:
      
      ```release-note
      none
      ```
      d396ac53
    • Kubernetes Submit Queue's avatar
      Merge pull request #47232 from gyliu513/remove-mesos-cp · a3430ad0
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Removed mesos as cloud provider from Kubernetes.
      
      **What this PR does / why we need it**:
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #47205
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      Move Mesos Cloud Provider out of Kubernetes Repo
      ```
      a3430ad0