1. 24 Jun, 2017 21 commits
    • 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
    • Kubernetes Submit Queue's avatar
      Merge pull request #46955 from zjj2wry/nodecontroller_matrics · 8dabdf70
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix const naming in node/metrics
      
      **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
      ```
      8dabdf70
    • Kubernetes Submit Queue's avatar
      Merge pull request #43637 from wongma7/framework · 156ff3a7
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Move e2e fromManifest funcs to manifest package
      
      fixes https://github.com/kubernetes/kubernetes/issues/37007 again
      
      The goal here is to remove e2e/framework's dependence on e2e/generated so that external projects can import e2e/framework without issue. I reorganize & try to make all the 'fromManifest' funcs consistent (to all use generated, return err) to prevent any reintroduction of generated into framework
      
      ```release-note
      NONE
      ```
      156ff3a7
    • Kubernetes Submit Queue's avatar
      Merge pull request #47973 from sjenning/include-obj-fieldpath-event-key · aee3c5ae
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      include object fieldpath in event key
      
      Fixes https://github.com/kubernetes/kubernetes/issues/47692
      
      #47462 exposed a bug where `getEventKey()` only keys on event fields that are common at the pod level. Events generated by different containers in the same pod will yield identical event keys.  This results in events with the same message from different containers in a pod being aggregated in error.
      
      This wasn't a problem before as the event message contained container specific information and thus didn't produce the same event key.
      
      @derekwaynecarr @dhilipkumars @dchen1107
      aee3c5ae
    • Kubernetes Submit Queue's avatar
      Merge pull request #47940 from Random-Liu/update-cadvisor · d2309e2a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Update cadvisor to v0.26.1.
      
      Fixes https://github.com/kubernetes/kubernetes/issues/47744.
      
      Update cadvisor to v0.26.1 to fix https://github.com/kubernetes/kubernetes/issues/47744.
      
      ```release-note
      Update cadvisor to v0.26.1
      ```
      d2309e2a
    • Kubernetes Submit Queue's avatar
      Merge pull request #47845 from liggitt/remove-redirect · ed3c50a7
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47993, 47892, 47591, 47469, 47845)
      
      Remove redirect verb parsing
      
      The redirect verb was removed pre-1.0 in https://github.com/kubernetes/kubernetes/pull/9826 so the request parsing logic is dead code
      
      Diff best viewed without whitespace:
      https://github.com/kubernetes/kubernetes/pull/47845/files?w=1
      ed3c50a7
    • Kubernetes Submit Queue's avatar
      Merge pull request #47469 from crimsonfaith91/created · 68a05ac7
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47993, 47892, 47591, 47469, 47845)
      
      deprecate created-by annotation for cronjob
      
      **What this PR does / why we need it**: This PR deprecates created-by annotation for cronjob. This is needed as we now have ControllerRef.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: xref #44407
      
      **Special notes for your reviewer**: I will create 3 PRs to fix the issue as the annotation is used in various parts of the codebase: cronjob, pod drain, and e2e test framework. This is the first PR. Other PRs can be found here: #47471, #47475
      
      **Release note**:
      
      ```release-note
      ```
      68a05ac7
    • Kubernetes Submit Queue's avatar
      Merge pull request #47591 from CaoShuFeng/string_trim · 3f6fda97
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47993, 47892, 47591, 47469, 47845)
      
      Only do string trim when it's necessary
      
      This will enhance performance a little bit.
      **Release note**:
      
      ```
      NONE
      ```
      3f6fda97
    • Kubernetes Submit Queue's avatar
      Merge pull request #47892 from ajitak/npd-config · 14edc46c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47993, 47892, 47591, 47469, 47845)
      
      Bump up npd version to v0.4.1
      
      ```
      Bump up npd version to v0.4.1
      ```
      
      Fixes #47219
      14edc46c
    • Kubernetes Submit Queue's avatar
      Merge pull request #47993 from dnardo/ip-masq-agent · de86a835
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47993, 47892, 47591, 47469, 47845)
      
      Use a different env var to enable the ip-masq-agent addon.
      
      We shouldn't mix setting the non-masq-cidr with enabling the addon.
      
      
      
      **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
      ```
      
      https://github.com/kubernetes/kubernetes/issues/47865
      de86a835
  2. 23 Jun, 2017 19 commits