1. 26 May, 2017 40 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #44884 from verult/master · f8cfeef1
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46383, 45645, 45923, 44884, 46294)
      
      Created unit tests for GCE cloud provider storage interface.
      
      - Currently covers CreateDisk and DeleteDisk, GetAutoLabelsForPD
      - Created ServiceManager interface in gce.go to facilitate mocking in tests.
      
      
      
      **What this PR does / why we need it**:
      Increasing test coverage for GCE Persistent Disk.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #44573 
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      f8cfeef1
    • Kubernetes Submit Queue's avatar
      Merge pull request #45923 from verult/cxing/NodeStatusUpdaterFix · c34b359b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46383, 45645, 45923, 44884, 46294)
      
      Node status updater now deletes the node entry in attach updates...
      
      … when node is missing in NodeInformer cache.
      
      - Added RemoveNodeFromAttachUpdates as part of node status updater operations.
      
      
      
      **What this PR does / why we need it**: Fixes issue of unnecessary node status updates when node is deleted.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #42438
      
      **Special notes for your reviewer**: Unit tested added, but a more comprehensive test involving the attach detach controller requires certain testing functionality that is currently absent, and will require larger effort. Will be added at a later time.
      
      There is an edge case caused by the following steps:
      1) A node is deleted and restarted. The node exists, but is not yet recognized by Kubernetes.
      2) A pod requiring a volume attach with nodeName specifically set to this node.
      
      This would make the pod stuck in ContainerCreating state. This is low-pri since it's a specific edge case that can be avoided.
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      c34b359b
    • Kubernetes Submit Queue's avatar
      Merge pull request #45645 from zjj2wry/kubectl-create-quota · 00acd84b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46383, 45645, 45923, 44884, 46294)
      
      Fix test not use test flags
      
      **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**:
      old code not use test.flags, now use it
      
      **Release note**:
      
      ```release-note
      ```
      00acd84b
    • Kubernetes Submit Queue's avatar
      Merge pull request #46383 from mikedanese/fix-flake · b7ebdfa9
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46383, 45645, 45923, 44884, 46294)
      
      fix certificates flake
      
      Fixes https://github.com/kubernetes/kubernetes/issues/46365
      Fixes https://github.com/kubernetes/kubernetes/issues/46374
      b7ebdfa9
    • Kubernetes Submit Queue's avatar
      Merge pull request #45422 from suyogbarve/set_resources_test · 37e95db8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      test case for set_resources
      
      PR adds basic unit test for set_resources.go
      37e95db8
    • Mike Danese's avatar
      fix certificates flake · bbe1e9ca
      Mike Danese authored
      bbe1e9ca
    • Kubernetes Submit Queue's avatar
      Merge pull request #46058 from jcbsmpsn/configure-certificate-duration · bcad534e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add support for specifying certificate duration at runtime.
      bcad534e
    • Kubernetes Submit Queue's avatar
      Merge pull request #46411 from humblec/glusterfs-readme-examples · 2ada6e62
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Update GlusterFS examples readme.
      2ada6e62
    • Kubernetes Submit Queue's avatar
      Merge pull request #46473 from thockin/enable-masq-agent-gce · 5ade944e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46501, 45944, 46473)
      
      Enable the ip-masq-agent on GCE installs
      
      Setting this will trigger cluster/addons/ip-masq-agent/ip-masq-agent.yaml to be installed as an addon, which disable configure IP masquerade for all of RFC1918, rather
      than just 10.0/8.
      
      Because the flag defaulted to 10.0/8 we can't just change the default.  I think anyone who needs IP masquerade set up should probably use this instead.
      
      @justinsb @kubernetes/sig-cluster-lifecycle-misc 
      
      Fixes #11204
      
      @dnardo - any reason not to do this?
      
      Release Note:
      ```release-note
      
      GCE installs will now avoid IP masquerade for all RFC-1918 IP blocks, rather than just 10.0.0.0/8.  This means that clusters can
      be created in 192.168.0.0./16 and 172.16.0.0/12 while preserving the container IPs (which would be lost before).
      ```
      5ade944e
    • Kubernetes Submit Queue's avatar
      Merge pull request #45944 from carlory/fix-comment · b9b55713
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46501, 45944, 46473)
      
      fix func comment in helpers.go
      
      **What this PR does / why we need it**:
      fix func comment in helpers.go
      **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
      ```
      b9b55713
    • Kubernetes Submit Queue's avatar
      Merge pull request #46501 from sttts/sttts-crd-finalizer-sync · 97fd0652
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46501, 45944, 46473)
      
      apiextensions: fix missing storage on CRD delete without previous CR access
      
      Create CR storage on demand when needed from CRD finalizer controller.
      
      /cc @nikhita
      97fd0652
    • Kubernetes Submit Queue's avatar
      Merge pull request #46511 from deads2k/crd-04-short · 8951bb60
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      add crd shortname
      
      Adds a shortname, `crd`, for `CustomResourceDefinition`.
      8951bb60
    • Kubernetes Submit Queue's avatar
      Merge pull request #46507 from bboreham/dont-print-local-message · 46dfb3ab
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Don't print message at the top of `set selector` or `set subject`
      
      **What this PR does / why we need it**:
      
      Stop printing "running in local/dry-run mode..." at the top of `set selector` or `set subject`, because the user may be trying to pipe the output of this command as the input to another. 
      
      **Which issue this PR fixes**: 
      fixes #46505
      
      **Special notes for your reviewer**:
      This PR makes `set subject` and `set resources` consistent with similar commands in the same directory.
      
      **Release note**:
      
      ```release-note
      `set selector` and `set subject` no longer print "running in local/dry-run mode..." at the top, so their output can be piped as valid yaml or json
      ```
      46dfb3ab
    • Kubernetes Submit Queue's avatar
      Merge pull request #46118 from shashidharatd/federation-dns-controller · d10c9975
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      [Federation] Move service dns controller to its own package
      
      This PR does nothing but just moves service dns controller code to its own package.
      
      **Release note**:
      ```release-note
      NONE
      ```
      cc @kubernetes/sig-federation-pr-reviews 
      /assign @marun
      d10c9975
    • Kubernetes Submit Queue's avatar
      Merge pull request #46510 from deads2k/agg-31-stable · 3912675b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      remove duplicate, flaky tests
      
      These tests were replaced in https://github.com/kubernetes/kubernetes/pull/45864, but we forgot to remove the originals.  This just removes the originals, but all the test cases were covered in that other pull.
      3912675b
    • Kubernetes Submit Queue's avatar
      Merge pull request #46288 from henriquetruta/fix_typo_test · 9ecf57e3
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix typo in test_helper
      
      `CompareObjectMeta` is comparting Name attribute, but
      logging Namespace. Looks like a copy/paste error.
      9ecf57e3
    • deads2k's avatar
      add crd shortname · 4b149e74
      deads2k authored
      4b149e74
    • deads2k's avatar
      remove duplicate, flaky tests · d4415683
      deads2k authored
      d4415683
    • Kubernetes Submit Queue's avatar
      Merge pull request #46178 from zjj2wry/des_rq · 25aa6003
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      add test in descibe resourcequota
      
      **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
      ```
      25aa6003
    • Bryan Boreham's avatar
      Don't print "running in local/dry-run mode..." at the top · 219cebec
      Bryan Boreham authored
      because the user may be trying to pipe the output of this command as
      the input to another. This makes `set subject` and `set resources`
      consistent with all similar commands in this directory.
      Signed-off-by: 's avatarBryan Boreham <bryan@weave.works>
      219cebec
    • Kubernetes Submit Queue's avatar
      Merge pull request #46418 from zjj2wry/ux · 7f8fd32e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      fix err message typo and small change in UX
      
      **What this PR does / why we need it**:
      1. small ux change
      
      2. fix typo: convertable to convertible
      
      **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
      ```
      7f8fd32e
    • Dr. Stefan Schimanski's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #46400 from NickrenREN/pv-createdby · 1e1040b5
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add createdby annotation for rbd and quobyte and make dynamical createdby key const
      
      make dynamical createdby key const
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      1e1040b5
    • Kubernetes Submit Queue's avatar
      Merge pull request #46202 from lixiaobing10051267/masterServerTest · 58167fcf
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      print the name of invalid host to help to fix the bug
      
      print the name of invalid host to help to fix the bug.
      58167fcf
    • NickrenREN's avatar
      Add createdby annotation for rbd and quobyte and make dynamical createdby key const · a02d6cd5
      NickrenREN authored
      make dynamical createdby key const
      a02d6cd5
    • Kubernetes Submit Queue's avatar
      Merge pull request #46269 from xiangpengzhao/fix-make-helpinfo · 99eee154
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Update examples in Makefile with WHAT arguments changed.
      
      **What this PR does / why we need it**:
      The examples `make check WHAT` and `make vet WHAT` in Makefile don't work anymore. This PR updates them.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      xref: https://github.com/kubernetes/community/issues/327, https://github.com/kubernetes/community/pull/296, https://github.com/kubernetes/kubernetes/pull/39433
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      99eee154
    • lixiaobing1's avatar
      a78eeebe
    • Kubernetes Submit Queue's avatar
      Merge pull request #39829 from MHBauer/prepareforcreate-doc · 73314a04
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      documentation for implementors of RESTCreateStrategy
      
      **What this PR does / why we need it**:
      Documentation useful for those implementing these methods.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: no issue.
      
      **Special notes for your reviewer**:
      I am implementing these for service broker, and gives me examples of what is done or should be done.
      
      **Release note**:
      -->
      ```release-note
      NONE
      ```
      73314a04
    • shashidharatd's avatar
      Auto generated files · 8ef48a93
      shashidharatd authored
      8ef48a93
    • shashidharatd's avatar
      62b203fc
    • Kubernetes Submit Queue's avatar
      Merge pull request #46438 from wojtek-t/make_bound_frequency_runner_non_blocking · 6b14216a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Make BoundedFrequencyRunner Run() really non-blocking
      6b14216a
    • Kubernetes Submit Queue's avatar
      Merge pull request #45492 from matt-potter/multizone-dns-fed · f006dcc9
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46429, 46308, 46395, 45867, 45492)
      
      deduplicate endpoints before DNS registration
      
      **What this PR does / why we need it**: Multizone clusters will return duplicated endpoints to the federation controller manager. The FCM will then attempt to create an A record with duplicate entries, which will fail. As a result, federated services on multi-AZ clusters don't work right now. This PR deduplicates the endpoint IPs before attempting the DNS record registration. 
      
      **Which issue this PR fixes**: fixes #35997
      
      **Special notes for your reviewer**:
      I believe there is a lot of refactoring required with multizone federated clusters, most notably with regard to AWS and optimising for ALIAS records rather than A, but this PR will at least allow basic functionality to work.
      
      ```release-note NONE
      ```
      f006dcc9
    • Kubernetes Submit Queue's avatar
      Merge pull request #45867 from kow3ns/controller-history · 7d37a268
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46429, 46308, 46395, 45867, 45492)
      
      Controller history
      
      **What this PR does / why we need it**:
      Implements the ControllerRevision API object and clientset to allow for the implementation of StatefulSet update and DaemonSet history
      
      ```release-note
      ControllerRevision type added for StatefulSet and DaemonSet history.
      ```
      7d37a268
    • Kubernetes Submit Queue's avatar
      Merge pull request #46395 from mindprince/issue-46204-45803-kubelet-volumes-test-flake · 07038c94
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46429, 46308, 46395, 45867, 45492)
      
      Implement FakeVolumePlugin's ConstructVolumeSpec method according to interface expectation.
      
      This fixes #45803 and #46204.
      
      **Release note**:
      ```release-note
      NONE
      ```
      07038c94
    • Kubernetes Submit Queue's avatar
      Merge pull request #46308 from dashpole/summary_container_restart · 54a47a6f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46429, 46308, 46395, 45867, 45492)
      
      Summary Test looks at pods that have containers that restart.
      
      Occasionally, the node can report extra containers that had been restarted through the summary API.
      This test change tests a pod that restarts, and hopefully should allow us to reproduce and debug this behavior.
      
      /assign @dchen1107 
      
      /release-note-none
      54a47a6f
    • Kubernetes Submit Queue's avatar
      Merge pull request #46429 from wojtek-t/bump_go_to_183 · 59ee250c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46429, 46308, 46395, 45867, 45492)
      
      Bump Go version to 1.8.3
      
      This PR also removed this patched version of Go 1.8.1 which we used to use to workaround performance problem of Go 1.8.1.
      
      Fix https://github.com/kubernetes/kubernetes/issues/45216
      Ref #46391
      
      @timothysc @bradfitz
      59ee250c
    • Kubernetes Submit Queue's avatar
      Merge pull request #46045 from enj/enj/t/watch_decode_fatal · 3e1eceaf
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46124, 46434, 46089, 45589, 46045)
      
      Panic server on watch errors during etcd test
      
      **What this PR does / why we need it**:
      
      This change makes it so that errors during watch decoding panic the server during the etcd storage test.  This allows us to catch coder errors related to storing incompatible types at the same location in etcd.
      
      For example, https://github.com/kubernetes/kubernetes/pull/39164#discussion_r116619172 would have failed like so (instead of silently recording an error to the master log and passing the test):
      
      ```
      I0518 14:39:32.413038    4654 storage_rbac.go:257] created rolebinding.rbac.authorization.k8s.io/system:controller:bootstrap-signer in kube-public
      panic: v1beta1.NetworkPolicy is not suitable for converting to {{"networking.k8s.io" "__internal"} [{"networking.k8s.io" ""} {"networking.k8s.io" ""}]}
      
      goroutine 799 [running]:
      k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/storage/etcd3.decodeObj(0x71146c0, 0xc420eb9d80, 0x7129340, 0x733cdf8, 0xc423708360, 0x118, 0x120, 0x86, 0x0, 0x0, ...)
      	/home/mkhan/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/storage/etcd3/watcher.go:382 +0x115
      k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/storage/etcd3.(*watchChan).prepareObjs(0xc420958f60, 0xc422ee9ef0, 0xc42003c600, 0x8a3b9b, 0x70f36c0, 0xc4209585a0, 0x4583f0, 0xc4215d0f58)
      	/home/mkhan/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/storage/etcd3/watcher.go:353 +0x2cd
      k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/storage/etcd3.(*watchChan).transform(0xc420958f60, 0xc422ee9ef0, 0x0)
      	/home/mkhan/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/storage/etcd3/watcher.go:248 +0x4d
      k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/storage/etcd3.(*watchChan).processEvent(0xc420958f60, 0xc420132010)
      	/home/mkhan/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/storage/etcd3/watcher.go:213 +0x122
      created by k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/storage/etcd3.(*watchChan).run
      	/home/mkhan/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/storage/etcd3/watcher.go:116 +0xe9
      exit status 2
      FAIL	k8s.io/kubernetes/test/integration/etcd	13.065s
      Makefile:164: recipe for target 'test' failed
      ```
      
      @liggitt PTAL
      Signed-off-by: 's avatarMonis Khan <mkhan@redhat.com>
      
      **Release note**:
      
      ```
      NONE
      ```
      3e1eceaf
    • Kubernetes Submit Queue's avatar
      Merge pull request #45589 from ITSvitCo/master · 34399411
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46124, 46434, 46089, 45589, 46045)
      
      Bump elasticsearch and kibana to 5.4.0
      
      **What this PR does / why we need it**: Updates elasticsearch and kibana docker image assets to 5.4.0 version
      **Release note**:
      ```release-note
      Upgrade Elasticsearch Addon to v5.4.0
      ```
      34399411
    • Kubernetes Submit Queue's avatar
      Merge pull request #46089 from karataliu/wincri1 · 5e853709
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46124, 46434, 46089, 45589, 46045)
      
      Support TCP type runtime endpoint for kubelet
      
      **What this PR does / why we need it**:
      Currently the grpc server for kubelet and dockershim has a hardcoded endpoint: unix socket '/var/run/dockershim.sock', which is not applicable on non-unix OS.
      
      This PR is to support TCP endpoint type besides unix socket.
      
      **Which issue this PR fixes** 
      This is a first attempt to address issue https://github.com/kubernetes/kubernetes/issues/45927
      
      **Special notes for your reviewer**:
      Before this change, running on Windows node results in:
      ```
      Container Manager is unsupported in this build
      ```
      
      After adding the cm stub, error becomes:
      ```
      listen unix /var/run/dockershim.sock: socket: An address incompatible with the requested protocol was used.
      ```
      
      This PR is to fix those two issues.
      
      After this change, still meets 'seccomp' related issue when running on Windows node, needs more updates later.
      
      **Release note**:
      5e853709
    • Kubernetes Submit Queue's avatar
      Merge pull request #46434 from shyamjvs/kubemark-config-upload · c60bc539
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46124, 46434, 46089, 45589, 46045)
      
      Copy kubeconfig to kubemark master
      
      This should save the effort of digging through jenkins agent and its container to get the kubeconfig.
      Ideally we should have kubectl directly working on the kubemark master, but I'm facing some issues due to older version of kubectl present by default on the node.
      
      cc @wojtek-t @gmarek
      c60bc539