1. 26 Jun, 2017 16 commits
  2. 25 Jun, 2017 1 commit
  3. 24 Jun, 2017 23 commits
    • Chao Xu's avatar
      Update CHANGELOG.md for v1.7.0-rc.1. · ee4f635d
      Chao Xu authored
      ee4f635d
    • Kubernetes Submit Queue's avatar
      Merge pull request #47348 from luxas/kubeadm_remove_validate_phase · f9bf1f3b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      kubeadm: Remove the validate phase as it's not needed
      
      **What this PR does / why we need it**:
      
      This validation code was added in v1.4 as a way to remove flakiness between deploying the control plane in Static Pods and deploying kube-discovery as a Deployment.
      
      That isn't the case anymore and we're not experiencing such flakiness, as we're using other methods like checking `/healthz` to determine a healthy control plane before proceeding.
      
      https://github.com/kubernetes/kubernetes/pull/43881 removed this logic from `kubeadm init` to having it as a phase. But that phase isn't needed or used in any way, so now I'm removing it here.
      
      **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**:
      
      Targets v1.8
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      @kubernetes/sig-cluster-lifecycle-pr-reviews @timothysc @mikedanese
      f9bf1f3b
    • Kubernetes Submit Queue's avatar
      Merge pull request #47342 from luxas/kubeadm_v18_cleanup · 8f8d82bd
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      kubeadm: Cleanup version gates for the Node Authorizer when targeting v1.8
      
      **What this PR does / why we need it**:
      
       - Similar to https://github.com/kubernetes/kubernetes/pull/47339, but for the Node Authorizer feature
       - Using the API validation code to make sure RBAC and Node authorization modes are present 
       - Defaulting to using both the RBAC and Node authorizers
       - Removing the version gate on the feature
      
      **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**:
      Targets v1.8
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      @kubernetes/sig-cluster-lifecycle-pr-reviews @timothysc @liggitt @mikedanese
      8f8d82bd
    • Kubernetes Submit Queue's avatar
      Merge pull request #48017 from liggitt/encode-nested · 06453433
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Plumb preferred version to nested object encoder
      
      Fixes https://github.com/kubernetes/kubernetes/issues/48018
      06453433
    • Kubernetes Submit Queue's avatar
      Merge pull request #47152 from ublubu/cloud-addresses · 7800b3ff
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      kubelet should let cloud-controller-manager set the node addresses
      
      *Before this change:*
      
      1. cloud-controller-manager sets all the addresses for a node.
      2. kubelet on that node replaces these addresses with an incomplete set. (i.e. replace InternalIP and Hostname and delete all other addresses--ExternalIP, etc.)
      
      *After this change:*
      
      kubelet doesn't touch its node's addresses when there is an external cloudprovider.
      
      Fixes #47155
      
      ```release-note
      NONE
      ```
      7800b3ff
    • Lucas Käldström's avatar
    • Lucas Käldström's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #46468 from alexandercampbell/cleanup-in-kubectl · d9ba19c7
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Cleanup pkg/kubectl
      
      I was reading through `pkg/kubectl` in preparation for completing https://github.com/kubernetes/kubectl/issues/11 and noticed several opportunities for improvement. This should be easy to review since it's mostly mechanical changes. The only complicated changes are in `addFromEnvFile`, which I refactored into two functions and wrote tests for.
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      d9ba19c7
    • Kubernetes Submit Queue's avatar
      Merge pull request #48005 from danehans/kubeadm_tests · a81c6592
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47869, 48013, 48016, 48005)
      
      Adds IPv6 unit test cases to kubeadm
      
      **What this PR does / why we need it**:
      Adds IPv6 test cases to kubeadm. It's needed to ensure test cases cover IPv6 related networking scenarios for kubeadm-based k8s deployments.
      
      **Which issue this PR fixes**
      This PR is in support of Issue #1443.
      
      **Special notes for your reviewer**:
      Additional PR's may follow as e2e testing is being developed by Issue #47666.
      
      **Release note**:
      ```NONE
      ```
      a81c6592
    • Kubernetes Submit Queue's avatar
      Merge pull request #48016 from liggitt/api-versions-cache · a82c9ac2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47869, 48013, 48016, 48005)
      
      Fix kubectl api-versions caching
      
      xref https://github.com/kubernetes/kubectl/issues/41
      
      The point of the `api-versions` and `version` commands is to ask the server for its API groups or versions, so we don't want to use cached data
      a82c9ac2
    • Kubernetes Submit Queue's avatar
      Merge pull request #48013 from FengyunPan/fix-federation-missing-close · 6a21ace6
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47869, 48013, 48016, 48005)
      
      [Federation]Fix forgeting to close file
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      6a21ace6
    • Kubernetes Submit Queue's avatar
      Merge pull request #47869 from timothysc/affinity_cleanup · beb5b9dd
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Removes alpha feature gate for affinity annotations.  
      
      **What this PR does / why we need it**:
      In 1.5 we added a backstop to support alpha affinity annotations.  This PR removes that support in favor of the Beta fields per discussions.  
      
      It also serves as a precursor to some of the component config work that @ncdc has done around @mikedanese design proposal.  
      
      xref: https://github.com/kubernetes/kubernetes/pull/41617 
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```
      Removes alpha feature gate for pod affinity annotations.  
      ```
      
      /cc @kubernetes/sig-scheduling-pr-reviews @kubernetes/sig-cluster-lifecycle-misc
      beb5b9dd
    • Kubernetes Submit Queue's avatar
      Merge pull request #48006 from bsalamat/e2e_test_cleanup · d39115a9
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47650, 47936, 47939, 47986, 48006)
      
      Remove e2e test that checked scheduler priority function for spreading of ReplicationController pods
      
      **What this PR does / why we need it**:
      Remove e2e test that checked scheduler priority function for spreading of ReplicationController pods.
      The test is flaky in our test clusters, but passes in our local clusters. It looks like our e2e test clusters are not deterministic enough for checking all of the scheduler priority functions. Besides, this functionality is checked extensively by our unit tests.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #47769
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      d39115a9
    • Kubernetes Submit Queue's avatar
      Merge pull request #47986 from MrHohn/e2e-esipp-change-port · 3da95b6e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47650, 47936, 47939, 47986, 48006)
      
      [esipp-e2e] Change service port to avoid collision
      
      **What this PR does / why we need it**: As https://github.com/kubernetes/kubernetes/issues/47745#issuecomment-310750499 indicates, changing service port in test to avoid collision. 
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #47745
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      3da95b6e
    • Kubernetes Submit Queue's avatar
      Merge pull request #47939 from ixdy/docker-manifest · 4b192f6c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47650, 47936, 47939, 47986, 48006)
      
      Save docker image tarfiles in _output/release-images/$arch/
      
      Additionally, add option `KUBE_BUILD_HYPERKUBE` to build hyperkube
      outside of the release flow.
      
      **What this PR does / why we need it**: Saves all of the docker tarfiles in a separate directory that the release scripts can use to push to a docker registry. This is easier than trying to guess which images should be pushed from the local docker engine, and supports work in https://github.com/kubernetes/test-infra/issues/1400. 
      
      If we eventually use this for the official release workflow (`anago`) this may prevent something like https://github.com/kubernetes/kubernetes/issues/47307 from happening again.
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      
      /release-note-none
      /assign @luxas @david-mcmahon 
      cc @madhusudancs @roberthbailey
      4b192f6c
    • Kubernetes Submit Queue's avatar
      Merge pull request #47936 from caesarxuchao/test-api-dependency · b042c76d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47650, 47936, 47939, 47986, 48006)
      
      External dependency of k8s.io/api
      
      Fix https://github.com/kubernetes/kubernetes/issues/48007
      
      It's unfortunate that k8s.io/api has external dependencies.
      
      Most of the dependencies are introduced by "k8s.io/apimachinery/pkg/util/intstr" and ugorji.
      b042c76d
    • Kubernetes Submit Queue's avatar
      Merge pull request #47650 from jianzhangbjz/enable-logging-conversions · bb886cd6
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      fixed the logging of which conversions.
      
      Hi Guys,
      
      After enable the function of logging of which conversions at [TestSpecificKind](https://github.com/jianzhangbjz/kubernetes/blob/d31a7cb301468323d91b962cb7aefeea9101e107/pkg/api/serialization_test.go#L140), I got the below errors:
      ```
      pkg/api/serialization_test.go:140: cannot refer to unexported name api.scheme
      pkg/api/serialization_test.go:140: undefined: api.scheme in api.scheme.Log
      ok  	k8s.io/kubernetes/cmd/genutils	0.066s
      ```
      So, this PR will fix that.
      bb886cd6
    • Kubernetes Submit Queue's avatar
      Merge pull request #47947 from zouyee/opa · 7dfa61a2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47776, 46220, 46878, 47942, 47947)
      
      fix comment mistake
      
      fix comment mistake
      
      
      **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
      ```
      7dfa61a2
    • Kubernetes Submit Queue's avatar
      Merge pull request #47942 from zouyee/op · e22215d3
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47776, 46220, 46878, 47942, 47947)
      
      update openstack metadata-service url
      
      **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
      ```
      e22215d3
    • Kubernetes Submit Queue's avatar
      Merge pull request #46878 from cdrage/update-cockroach · b47ac2ef
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47776, 46220, 46878, 47942, 47947)
      
      Adds --insecure to cockroachdb client command
      b47ac2ef
    • Kubernetes Submit Queue's avatar
      Merge pull request #46220 from superbrothers/add-statefulset · ff108258
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47776, 46220, 46878, 47942, 47947)
      
      Add statefulset to the completion candidates of kubectl scale
      
      **What this PR does / why we need it**: This commit adds `statefulset` to the completion candidates of kubectl scale.
      ```
      $ kubectl scale <tab>
      deployment             job                    --replicas             replicaset             replicationcontroller  statefulset
      ```
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes kubernetes/kubectl#14
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      ff108258
    • Kubernetes Submit Queue's avatar
      Merge pull request #47776 from jianzhangbjz/build-hyperkube-ppc64le · d0ee6bb1
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Parameterize the binary path and host arch for the hyperkube image
      
      As the [cluster/images/hyperkube/README.md](https://github.com/kubernetes/kubernetes/tree/master/cluster/images/hyperkube) shows, I run the command: `make build VERSION=test ARCH=ppc64le`, but got the below errors, so this PR will fix it.
      ```
      ARCH=ppc64le
      cp -r ./* /tmp/hyperkubeTFbYrI
      mkdir -p /tmp/hyperkubeTFbYrI/cni-bin
      cp ../../../_output/dockerized/bin/linux/ppc64le/hyperkube /tmp/hyperkubeTFbYrI
      cp: cannot stat '../../../_output/dockerized/bin/linux/ppc64le/hyperkube': No such file or directory
      Makefile:62: recipe for target 'build' failed
      make: *** [build] Error 1
      ```
      d0ee6bb1
    • Kubernetes Submit Queue's avatar
      Merge pull request #47740 from liggitt/websocket-protocol · 714f97d7
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add token authentication method for websocket browser clients
      
      Closes #47967
      
      Browser clients do not have the ability to set an `Authorization` header programatically on websocket requests. All they have control over is the URL and the websocket subprotocols sent (see https://developer.mozilla.org/en-US/docs/Web/API/WebSocket)
      
      This PR adds support for specifying a bearer token via a websocket subprotocol, with the format `base64url.bearer.authorization.k8s.io.<encoded-token>`
      
      1. The client must specify at least one other subprotocol, since the server must echo a selected subprotocol back
      2. `<encoded-token>` is `base64url-without-padding(token)`
      
      This enables web consoles to use websocket-based APIs (like watch, exec, logs, etc) using bearer token authentication.
      
      For example, to authenticate with the bearer token `mytoken`, the client could do:
      ```js
      var ws = new WebSocket(
        "wss://<server>/api/v1/namespaces/myns/pods/mypod/logs?follow=true",
        [
          "base64url.bearer.authorization.k8s.io.bXl0b2tlbg",
          "base64.binary.k8s.io"
        ]
      );
      ```
      
      This results in the following headers:
      ```
      Sec-WebSocket-Protocol: base64url.bearer.authorization.k8s.io.bXl0b2tlbg, base64.binary.k8s.io
      ```
      
      Which this authenticator would recognize as the token `mytoken`, and if authentication succeeded, hand off to the rest of the API server with the headers
      ```
      Sec-WebSocket-Protocol: base64.binary.k8s.io
      ```
      
      Base64-encoding the token is required, since bearer tokens can contain characters a websocket protocol may not (`/` and `=`)
      
      ```release-note
      Websocket requests may now authenticate to the API server by passing a bearer token in a websocket subprotocol of the form `base64url.bearer.authorization.k8s.io.<base64url-encoded-bearer-token>`
      ```
      714f97d7