1. 12 Jul, 2017 31 commits
    • 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
    • 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
    • Dr. Stefan Schimanski's avatar
      kube-apiserver: add integration test with real Run() func · 5835cfbc
      Dr. Stefan Schimanski authored
      - for simple Run()
      - for aggregation API group priorities
      - for CRD creation
      5835cfbc
    • Dr. Stefan Schimanski's avatar
      39e6bbb7
    • Dr. Stefan Schimanski's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #46138 from pmichali/issue44848b · 15919758
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48196, 42783, 48507, 47719, 46138)
      
      IPv6 support for getting IP from default route
      
      This is another part of the effort to update ChoseHostInterface() to support
      IPv6. In particular, this focuses on the call path, starting from
      chooseHostInterfaceFromRoute(), which attempts to find the node IP by
      using default route information.
      
      In the original code, routes are collected, and examined to find default
      routes. For a default route, the IPs for the associated interface are
      checked to see if there is one that is a V4 address, and is not a
      loopback, link local, or multicast address. If found, that IP will be
      used for the node IP.
      
      With this PR, there are some slight changes to prepare for allowing IPs
      from IPv6 default routes. The routes (IPv4 at this time - a subsequent
      PR will handle IPv6) are collected as before. If the route is a default
      route AND it's GW address is a global unicast address, then the IPs
      for the associated interface are checked. This time though, we just pick
      the IP that is on the same subnet as the gateway IP.
      
      This ensures it is not a link local, loopback, or multicast address. It
      saves time, by nt checking IPs for interfaces that don't have a "global"
      default route. It also will ensure the right IP is used, when using both
      IPv4 and IPv6 addresses.
      
      For example, if we have eth0 with global IPv4 and IPv6 addresses, and
      an IPv6 default route, we want to select the IPv6 address, as it is
      associated with the default route.
      
      Another case is that same interface, along with eth1 containing an IPv4
      address with a default route. We want to select eth1's IPv4 address,
      and not the IPv4 on eth0.
      
      This change adds more UT coverage to several methods, and removes UTs
      that are redundantly testing at a higher level. Coverage is slightly
      improved.
      
      
      
      **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)*: xref #44848
      
      **Special notes for your reviewer**:
      This goes along with PR 46044, and will have another PR to the next part.
      
      **Release note**:
      
      ```release-noteNONE
      ```
      15919758
    • Kubernetes Submit Queue's avatar
      Merge pull request #47719 from xilabao/fix-set-selector-1 · b07581e6
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48196, 42783, 48507, 47719, 46138)
      
      fix parse resource in setting selector
      
      **What this PR does / why we need it**:
      
      **Which issue this PR fixes**: fixes #47718
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      b07581e6
    • Kubernetes Submit Queue's avatar
      Merge pull request #48507 from kad/issue-292 · 683b8dea
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48196, 42783, 48507, 47719, 46138)
      
      kubeadm: Allows to use versions like 1.6.4 instead v1.6.4
      
      **What this PR does / why we need it**:
      
      As part of issue kubernetes/kubeadm#292 discussion, it
      turned out that for users it is not always obvious that
      version specification parameter must be in form "vX.Y.Z".
      This patch allows to specify it in form "X.Y.Z" and
      converts it internally to normal semantic version which
      expected in the rest of the code.
      
      **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**:
      
      **Release note**:
      
      ```release-note
      - kubeadm now can accept versions like "1.6.4" where previously it strictly required "v1.6.4"
      ```
      683b8dea
    • Kubernetes Submit Queue's avatar
      Merge pull request #42783 from xilabao/add-extra-args-validate · b44a084a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48196, 42783, 48507, 47719, 46138)
      
      add extra args validate
      
      `ExtraArgsCheck` return warnings not errors. because kubeadm may create the newer version control plane, there are new arguments that kubeadm doesn't know.
      b44a084a
    • Kubernetes Submit Queue's avatar
      Merge pull request #48196 from fabriziopandini/kubeadm-phase-certs2 · e11020fa
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      kubeadm: Implementing the certificates phase fully
      
      **What this PR does / why we need it:**
      This contains implementation of certs phases in kubeadm, which is part of the wider effort of implementing phases in kubeadm, previously in alpha stage.
      
      The original proposal for this activity can be found [here](https://github.com/kubernetes/kubeadm/pull/156/files) and related comments.
      
      Kubeadm phase implementation checklist is defined [here](https://github.com/kubernetes/kubeadm/issues/267)
      
      Common implementation guidelines and principles for all phases are defined [here](https://docs.google.com/document/d/1VQMyFIVMfRGQPP3oCUpfjiWtOr3pLxp4g7cP-hXQFXc/edit?usp=sharing)
      
      This PR implements:
      
      - [x] kubeadm phase certs 
        - [x] kubeadm phase certs all
        - [x] kubeadm phase certs ca
        - [x] kubeadm phase certs apiserver
        - [x] kubeadm phase certs apiserver-kubelet-client
        - [x] kubeadm phase certs sa
        - [x] kubeadm phase certs front-proxy-ca
        - [x] kubeadm phase certs front-proxy-client
      
      **Which issue this PR fixes:**
      none
      
      **Special notes for your reviewer:**
      
      This PR resubmits the work of #45617, and already includes @luxas reviews. 
      
      Please note that:
      - the API - phase\certs.go - is now totally free by any UX concerns, and implements only the core logic for cert generation.
      - the UX - cmd\phase\certs.go - now takes charge of UX commands and kubeadm own's rules for placing certs in the certificate dir (e.g. create only if exists)
      e11020fa
    • Kubernetes Submit Queue's avatar
      Merge pull request #46978 from spiffxp/update-labels-yaml-2 · e2f6981a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Update labels.yaml
      
      ```release-note
      NONE
      ```
      
      Reminder that at some point we need to stop allowing humans to add
      labels via github's UI, and instead drive changes through this file.
      
      We'll need to get mungegithub's check-labels munger activated and
      a documented policy for all that, so here's a bump in the meantime.
      
      ref: kubernetes/test-infra#2504 (this PR doesn't fix the issue but that's the closest prior art I can find)
      e2f6981a
    • Kubernetes Submit Queue's avatar
      Merge pull request #48322 from k82cn/k8s_47867 · d68e7378
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48402, 47203, 47460, 48335, 48322)
      
      Added case on 'terminated-but-not-yet-deleted' for Admit.
      
      **What this PR does / why we need it**:
      Added case on 'terminated-but-not-yet-deleted' for Admit.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #47867 
      
      **Release note**:
      
      ```release-note-none
      ```
      d68e7378
    • Kubernetes Submit Queue's avatar
      Merge pull request #48335 from sakeven/fix/close_resp_Body · 33718a8f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48402, 47203, 47460, 48335, 48322)
      
      HTTPExtender: should close resp.Body even when StatusCode not ok
      Signed-off-by: 's avatarsakeven <jc5930@sina.cn>
      
      
      
      **What this PR does / why we need it**:
      
      close resp.Body even when StatusCode isn't ok
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```
      NONE
      ```
      33718a8f
    • Kubernetes Submit Queue's avatar
      Merge pull request #47460 from mengqiy/fix_env · cd3f8c39
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48402, 47203, 47460, 48335, 48322)
      
      fix kubectl run --env flag
      
      fixes: kubernetes/kubectl#19
      
      cc: @ddcprg
      
      ```release-note
      `kubectl run --env` no longer supports CSV parsing. To provide multiple env vars, use the `--env` flag multiple times instead of having env vars separated by commas. E.g. `--env ONE=1 --env TWO=2` instead of `--env ONE=1,TWO=2`.
      ```
      cd3f8c39
    • Kubernetes Submit Queue's avatar
      Merge pull request #47203 from spiffxp/selfclient-ipv6-loopback · 3217495f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48402, 47203, 47460, 48335, 48322)
      
      TestLoopbackHostPort should accept IPv6 loopback host
      
      Attempting to get unit tests to pass on darwin per [our unit testing policy](https://github.com/kubernetes/community/blob/master/contributors/devel/testing.md#unit-tests)
      
      part of #48509
      
      /cc @kubernetes/sig-api-machinery-bugs
      3217495f
    • Kubernetes Submit Queue's avatar
      Merge pull request #48402 from ianchakeres/local-storage-teardown-fix · 03360d7b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Local storage teardown fix
      
      **What this PR does / why we need it**: Local storage uses bindmounts and the method IsLikelyNotMountPoint does not detect these as mountpoints. Therefore, local PVs are not properly unmounted when they are deleted.
      
      **Which issue this PR fixes**: fixes #48331
      
      **Special notes for your reviewer**:
      
      You can use these e2e tests to reproduce the issue and validate the fix works appropriately https://github.com/kubernetes/kubernetes/pull/47999
      
      The existing method IsLikelyNotMountPoint purposely does not check mountpoints reliability (https://github.com/kubernetes/kubernetes/blob/4c5b22d4c6b630ff1d76b1d15d74c6597c0aa037/pkg/util/mount/mount_linux.go#L161), since the number of mountpoints can be large. https://github.com/kubernetes/kubernetes/blob/4c5b22d4c6b630ff1d76b1d15d74c6597c0aa037/pkg/util/mount/mount.go#L46
      
      This implementation changes the behavior for local storage to detect mountpoints reliably, and avoids changing the behavior for any other callers to a UnmountPath.
      
      **Release note**:
      
      ```
      Fixes bind-mount teardown failure with non-mount point Local volumes (issue https://github.com/kubernetes/kubernetes/issues/48331).
      ```
      03360d7b
    • Kubernetes Submit Queue's avatar
      Merge pull request #47829 from CaoShuFeng/Warning-Warningf · 3e89fe24
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44412, 44810, 47130, 46017, 47829)
      
      Use glog.*f when a format string is passed
      
      ref:
      https://godoc.org/github.com/golang/glog
      
      I use the following commands to search all the invalid usage:
      $ grep "glog.Warning(" * -r | grep %
      $ grep "glog.Info(" * -r | grep %
      $ grep "glog.Error(" * -r | grep %
      $ grep ").Info(" * -r | grep % | grep glog.V(
      
      **Release note**:
      
      ```
      NONE
      ```
      3e89fe24
    • Kubernetes Submit Queue's avatar
      Merge pull request #46017 from xilabao/fix-print-of-generic-resources · a9aabd76
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44412, 44810, 47130, 46017, 47829)
      
      fix self link error of generic resources in describe command
      
      **What this PR does / why we need it**:
      fix Self Link error
      ```
      ./cluster/kubectl.sh describe clusterrole system:controller:ttl-controller
      Name:		system:controller:ttl-controller
      Namespace:	
      Labels:		kubernetes.io/bootstrapping=rbac-defaults
      Annotations:	rbac.authorization.kubernetes.io/autoupdate=true
      API Version:	rbac.authorization.k8s.io/v1alpha1
      Kind:		ClusterRole
      Metadata:
        Creation Timestamp:	2017-05-18T06:42:02Z
        Resource Version:	80
        Self Link:		/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/system%!A(MISSING)controller%!A(MISSING)ttl-controller
        UID:			19a705a4-3b95-11e7-9d55-7427ea6f0fe3
      Rules:
        API Groups:
          
        Resources:
          nodes
        Verbs:
          list
          patch
          update
          watch
        API Groups:
          
        Resources:
          events
        Verbs:
          create
          patch
          update
      Events:	<none>
      ```
      
      **Which issue this PR fixes**: fixes #48743
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      a9aabd76
    • Kubernetes Submit Queue's avatar
      Merge pull request #47130 from shashidharatd/fed-cluster-scripts-cleanup · 6c1552c5
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44412, 44810, 47130, 46017, 47829)
      
      federation: Cleanup cluster scripts of older federation bring up method
      
      **What this PR does / why we need it**:
      Remove older method of bringing up federation via scripts. Currently `kubefed` is the only supported mechanism and is well established and stable.
      
      **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
      ```
      6c1552c5
    • Kubernetes Submit Queue's avatar
      Merge pull request #44810 from FengyunPan/fix-Errorf · 8aaffb40
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44412, 44810, 47130, 46017, 47829)
      
      Return clusterErr rather than err
      
      The updateClusterIngressUIDToMasters() should return clusterErr, not err.
      If the 'err' of 'masterCluster, masterUID, err := ic.getMasterCluster()' is nil and the 'clusterErr' of 'clusterObj, clusterErr := api.Scheme.DeepCopy(cluster)' is not nil, updateClusterIngressUIDToMasters() will return ("", nil).
      
      And do not log fallbackUID when fallbackUID is nil.
      8aaffb40
    • Kubernetes Submit Queue's avatar
      Merge pull request #44412 from StackPointCloud/recheck-pvc-phase · 3f1776e0
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44412, 44810, 47130, 46017, 47829)
      
      recheck pod volumes before marking pod as processed
      
      This PR allows a pod's volumes to be re-checked until all are added correctly.  There's a limited amount of time when a persistent volume claim is still in the Pending phase, and if a pod is created in that time, the volume will not be added.  The issue is not uncommon with helm charts that create all objects in close succession, particularly when using aws-ebs volumes.
      
      fixes #28962
      3f1776e0
  2. 11 Jul, 2017 5 commits
  3. 10 Jul, 2017 4 commits