1. 03 Apr, 2018 14 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #61404 from hzxuzhonghu/fix-webhook-crd-bug · fb795a3b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 61404, 61025). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      bug fix: create/update CRD panic when mutating webhook configured
      
      apiextentions apiserver use its own scheme to create a admission chain before creating the apiextensions apiserver config.
      Fixes #61355
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      fb795a3b
    • hzxuzhonghu's avatar
      add e2e case for crd webhook · 932a0729
      hzxuzhonghu authored
      932a0729
    • hzxuzhonghu's avatar
      4c268311
    • Kubernetes Submit Queue's avatar
      Merge pull request #61800 from rithujohn191/remove-gopass · a5133305
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 61818, 61800). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      Replace gopass.GetPasswdMasked() by terminal.ReadPassword()
      
      **What this PR does / why we need it**:
      Replace `gopass.GetPasswdMasked()` used for reading passwords from the terminal with [`terminal.ReadPassword()`](https://godoc.org/golang.org/x/crypto/ssh/terminal#ReadPassword). This removes the `gopass` import.
      
      **Special notes for your reviewer**:
      Ran the following commands to update `godep` files:
      ```
      ./hack/godep-restore.sh -v
      ./hack/godep-save.sh
      ./hack/update-staging-godeps.sh
      ./hack/update-bazel.sh
      ```
      
      /sig auth
      /kind enhancement
      /assign @ericchiang
      
      ```release-note
      NONE
      ```
      a5133305
    • Kubernetes Submit Queue's avatar
      Merge pull request #61818 from Random-Liu/fix-elastic-search · 6092df10
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 61818, 61800). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      Add CRI container log format support back for elastic search.
      
      The CRI container log format support was removed accidentally in https://github.com/kubernetes/kubernetes/pull/58525. This PR adds that back.
      
      I've tested it, and it works:
      ```
      SSSSS
      ------------------------------
      [sig-instrumentation] Cluster level logging using Elasticsearch [Feature:Elasticsearch] 
        should check that logs from containers are ingested into Elasticsearch
        /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/instrumentation/logging/elasticsearch/basic.go:39
      [BeforeEach] [sig-instrumentation] Cluster level logging using Elasticsearch [Feature:Elasticsearch]
        /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:141
      STEP: Creating a kubernetes client
      Mar 28 08:09:01.724: INFO: >>> kubeConfig: /home/lantaol/.kube/config
      STEP: Building a namespace api object
      Mar 28 08:09:02.952: INFO: No PodSecurityPolicies found; assuming PodSecurityPolicy is disabled.
      STEP: Waiting for a default service account to be provisioned in namespace
      [BeforeEach] [sig-instrumentation] Cluster level logging using Elasticsearch [Feature:Elasticsearch]
        /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/instrumentation/logging/elasticsearch/basic.go:32
      [It] should check that logs from containers are ingested into Elasticsearch
        /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/instrumentation/logging/elasticsearch/basic.go:39
      Mar 28 08:09:02.988: INFO: Checking the Elasticsearch service exists.
      Mar 28 08:09:03.025: INFO: Checking to make sure the Elasticsearch pods are running
      Mar 28 08:09:03.066: INFO: Checking to make sure we are talking to an Elasticsearch service.
      Mar 28 08:09:03.176: INFO: Checking health of Elasticsearch service.
      Mar 28 08:09:03.299: INFO: Starting repeating logging pod synthlogger
      STEP: Waiting for logs to ingest
      Mar 28 08:09:17.420: INFO: Sending a search request to Elasticsearch with the following query: kubernetes.pod_name:synthlogger AND kubernetes.namespace_name:e2e-tests-es-logging-pqlx7
      Mar 28 08:09:27.420: INFO: Sending a search request to Elasticsearch with the following query: kubernetes.pod_name:synthlogger AND kubernetes.namespace_name:e2e-tests-es-logging-pqlx7
      Mar 28 08:09:37.420: INFO: Sending a search request to Elasticsearch with the following query: kubernetes.pod_name:synthlogger AND kubernetes.namespace_name:e2e-tests-es-logging-pqlx7
      Mar 28 08:09:47.420: INFO: Sending a search request to Elasticsearch with the following query: kubernetes.pod_name:synthlogger AND kubernetes.namespace_name:e2e-tests-es-logging-pqlx7
      Mar 28 08:09:57.420: INFO: Sending a search request to Elasticsearch with the following query: kubernetes.pod_name:synthlogger AND kubernetes.namespace_name:e2e-tests-es-logging-pqlx7
      Mar 28 08:10:07.420: INFO: Sending a search request to Elasticsearch with the following query: kubernetes.pod_name:synthlogger AND kubernetes.namespace_name:e2e-tests-es-logging-pqlx7
      [AfterEach] [sig-instrumentation] Cluster level logging using Elasticsearch [Feature:Elasticsearch]
        /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:142
      Mar 28 08:10:07.607: INFO: Waiting up to 3m0s for all (but 0) nodes to be ready
      STEP: Destroying namespace "e2e-tests-es-logging-pqlx7" for this suite.
      Mar 28 08:10:57.758: INFO: Waiting up to 30s for server preferred namespaced resources to be successfully discovered
      Mar 28 08:11:00.046: INFO: namespace: e2e-tests-es-logging-pqlx7, resource: bindings, ignored listing per whitelist
      Mar 28 08:11:00.338: INFO: namespace e2e-tests-es-logging-pqlx7 deletion completed in 52.693713026s
      
      • [SLOW TEST:118.614 seconds]
      [sig-instrumentation] Cluster level logging using Elasticsearch [Feature:Elasticsearch]
      /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/instrumentation/common/framework.go:23
        should check that logs from containers are ingested into Elasticsearch
        /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/instrumentation/logging/elasticsearch/basic.go:39
      ------------------------------
      SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSMar 28 08:11:00.346: INFO: Running AfterSuite actions on all node
      Mar 28 08:11:00.346: INFO: Running AfterSuite actions on node 1
      
      Ran 1 of 845 Specs in 123.981 seconds
      SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 844 Skipped PASS
      
      Ginkgo ran 1 suite in 2m4.323020647s
      Test Suite Passed
      2018/03/28 08:11:00 process.go:152: Step './hack/ginkgo-e2e.sh --ginkgo.focus=Cluster\slevel\slogging\susing\sElasticsearch' finished in 2m5.943972428s
      2018/03/28 08:11:00 e2e.go:83: Done
      ```
      
      Mark 1.10, because this is a regression for CRI container runtimes in 1.10.
      
      The original support was added in 1.9. https://github.com/kubernetes/kubernetes/pull/54777
      
      **Release note**:
      
      ```release-note
      none
      ```
      6092df10
    • Kubernetes Submit Queue's avatar
      Merge pull request #62030 from deads2k/server-10-remove-dead · 817869e7
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 61498, 62030). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      remove kube-apiserver option that is always force to true
      
      All production flows forced the controllers to true. I don't think that test code should be depending on it either.  Removing the option.
      
      ```release-note
      NONE
      ```
      817869e7
    • Kubernetes Submit Queue's avatar
      Merge pull request #61498 from mindprince/delete-in-tree-gpu · 043204b1
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 61498, 62030). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      Delete in-tree support for NVIDIA GPUs.
      
      This removes the alpha Accelerators feature gate which was deprecated in 1.10 (#57384).
      The alternative feature DevicePlugins went beta in 1.10 (#60170).
      
      Fixes #54012
      
      ```release-note
      Support for "alpha.kubernetes.io/nvidia-gpu" resource which was deprecated in 1.10 is removed. Please use the resource exposed by DevicePlugins instead ("nvidia.com/gpu").
      ```
      043204b1
    • Rohit Agarwal's avatar
      Delete in-tree support for NVIDIA GPUs. · 87dda337
      Rohit Agarwal authored
      This removes the alpha Accelerators feature gate which was deprecated in 1.10.
      The alternative feature DevicePlugins went beta in 1.10.
      87dda337
    • Kubernetes Submit Queue's avatar
      Merge pull request #61819 from jianglingxia/jlx201803281617 · 8b94183e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 60599, 61819). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      fix format
      
      **What this PR does / why we need it**:
      
      **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
      Fixes #
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      8b94183e
    • Kubernetes Submit Queue's avatar
      Merge pull request #60599 from cblecker/gofmt-1.10 · b17afaa2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 60599, 61819). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      Update gofmt for go1.10, and fix go vet errors
      
      **What this PR does / why we need it**:
      Update gofmt for go1.10, and fix go vet errors
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      b17afaa2
    • Christoph Blecker's avatar
      Fix go vet errors · 710c8563
      Christoph Blecker authored
      710c8563
    • Christoph Blecker's avatar
      Update gofmt for go1.10 · 857aac9a
      Christoph Blecker authored
      857aac9a
    • Kubernetes Submit Queue's avatar
      Merge pull request #61860 from mindprince/kubernetes.io-resources · 1f69c344
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 60073, 58519, 61860). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      Resources prefixed with *kubernetes.io/ should remain unscheduled if they are not exposed on the node.
      
      Currently, resources prefixed with `*kubernetes.io/` get scheduled to any
      node whether it's exposing that resource or not.
      
      On the other hand, resources prefixed with `someother.domain/` don't get
      scheduled to a node until that node is exposing that resource (or if the
      resource is ignored because of scheduler extender).
      
      This commit brings the behavior of `*kubernetes.io/` prefixed resources in
      line with other extended resources and they will remain unscheduled
      until some node exposes these resources.
      
      Fixes #50658
      
      ```release-note
      Pods requesting resources prefixed with `*kubernetes.io` will remain unscheduled if there are no nodes exposing that resource.
      ```
      
      /sig scheduling
      /assign jiayingz vishh bsalamat ConnorDoyle k82cn
      1f69c344
    • Kubernetes Submit Queue's avatar
      Merge pull request #58519 from linyouchong/lyc-probe · fc19fc99
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 60073, 58519, 61860). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
      
      flexvolume prober: trigger plugin init only for the relevant plugin
      
      **What this PR does / why we need it**:
      The automatic discovery trigger init only to the specific plugin directory that was updated, and not to all the plugins in the flexvolume plugin directory.
      
      **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
      Fixes #58352
      
      **Special notes for your reviewer**:
      NONE
      **Release note**:
      
      ```
      NONE
      ```
      fc19fc99
  2. 02 Apr, 2018 26 commits