1. 11 Jan, 2017 40 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #33584 from marketlogicsoftware/kayrus/enable_elk_k8s_metadata · 12e8271c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Enable kubernetes_metadata by default for ELK stack
      
      Looks like it was accidentally removed and was not restored back in this PR https://github.com/kubernetes/kubernetes/pull/29883
      Because actually this plugin still exists in the image, but new ELK deployment don't allow you to index namespaces, pod names, etc.
      12e8271c
    • Kubernetes Submit Queue's avatar
      Merge pull request #39747 from deads2k/generic-19-test-update · cb7792d4
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      add owners to apimachinery
      
      Adds owners to apimachinery/pkg and I need a commit to use as an example for my sync'ing script.
      
      @kubernetes/sig-api-machinery-misc @smarterclayton @lavalamp should be non-contentious I'd think.
      cb7792d4
    • Kubernetes Submit Queue's avatar
      Merge pull request #39725 from ixdy/docker-build-pull · e3b4386a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Update amd64 kube-proxy base image to debian-iptables-amd64:v5
      
      **What this PR does / why we need it**: this was supposed to go into #39695, but I screwed up the rebase.
      
      ```release-note
      NONE
      ```
      e3b4386a
    • Kubernetes Submit Queue's avatar
      Merge pull request #39721 from euank/rkt-api-restart · 04326905
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 39731, 39662, 39721)
      
      container-linux: restart rkt-api on failure
      
      This works around a flake I saw which had the same root cause as
      https://github.com/coreos/rkt/issues/3513.
      
      This will potentially help reduce the impact of such future problems as
      well.
      
      ```release-note
      NONE
      ```
      04326905
    • Kubernetes Submit Queue's avatar
      Merge pull request #39662 from rf232/dashboard-v1.5.1 · 9814369e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 39731, 39662, 39721)
      
      Update dashboard version to v1.5.1
      
      **What this PR does / why we need it**:
      Latest Dashboard developments, including a CSRF issue in the dashboard POST handlers
      
      **Release note**:
      ```
      Set Dashboard UI version to v1.5.1
      ```
      9814369e
    • Kubernetes Submit Queue's avatar
      Merge pull request #39731 from apprenda/dockertools_fix · 636902c7
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix kubelet cross build
      
      **What this PR does / why we need it**: Cross builds are not passing for MacOS and Windows. We are expecting Windows binaries for `kubelet` and `kube-proxy` to be released by the first time with 1.5.2 to be released later today.
      
      **Which issue this PR fixes**:
      fixes #39005
      fixes #39714
      
      **Special notes for your reviewer**: /cc @feiskyer @smarterclayton @vishh this should be P0 in order to be merged before 1.5.2 and obviously fix the cross build.
      636902c7
    • deads2k's avatar
      add owners to apimachinery · 261603ee
      deads2k authored
      261603ee
    • Kubernetes Submit Queue's avatar
      Merge pull request #39038 from ncdc/fix-kubectl-get-list · 6e5b455b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix kubectl get -f <file> -o <nondefault printer> so it prints all items in the file
      
      **What this PR does / why we need it**: Fix kubectl get -f <file> -o <nondefault printer> so it prints all the objects in the file, instead of just the first one. Also add a test for this feature.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #38907 
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      ```
      
      cc @AdoHe @deads2k @liggitt @fabianofranz @kubernetes/kubectl @kubernetes/sig-cli-misc
      6e5b455b
    • Kubernetes Submit Queue's avatar
      Merge pull request #39613 from shiywang/remove_unused_parameter · 55bee3ad
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 39475, 38666, 39327, 38396, 39613)
      
      Remove unused parameter
      
      @pwittrock  PTAL, thanks
      
      ```release-note
      NONE
      ```
      55bee3ad
    • Kubernetes Submit Queue's avatar
      Merge pull request #38396 from intelsdi-x/new_portforwardertester_in_test · 76b58efc
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 39475, 38666, 39327, 38396, 39613)
      
      e2e tests: new portforwardertester with another three tests for case …
      
      PR include:
      - add new e2e test cases for BIND_ADDRESS='0.0.0.0'
      - add to portforwardertester.go os.Getenv("BIND_ADDRESS") and if not set, it should be localhost for backward compability with existing tests
      - for existing tests pass explicity BIND_ADDRESS='localhost'
      - rename existing tests
      
      It was mention in the issue: #32128 
      
      cc @mzylowski @pskrzyns
      76b58efc
    • Kubernetes Submit Queue's avatar
      Merge pull request #39327 from shashidharatd/federation · 9d0b999e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 39475, 38666, 39327, 38396, 39613)
      
      Fix a bug in cascading deletion of federation objects
      
      When FinalizerOrphan is present and set to true in federated object we are currently removing the FinalizerOrphan first and then removing FinalizerDeleteFromUnderlyingClusters. if a reconciliation is triggered in between the finalizer removals, it has undesired effect of object deletion in federated cluster.
      
      So we should remove  FinalizerDeleteFromUnderlyingClusters first and then remove FinalizerOrphan, when FinalizerOrphan is set to true.
      
      @nikhiljindal, @madhusudancs
      9d0b999e
    • Kubernetes Submit Queue's avatar
      Merge pull request #38666 from tanshanshan/empty-check · 931bccf9
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 39475, 38666, 39327, 38396, 39613)
      
      Add checking the nil value 
      
      **What this PR does / why we need it**:
      
      Add checking the nil value.
      
      Thanks.
      
      **Special notes for your reviewer**:
      931bccf9
    • Kubernetes Submit Queue's avatar
      Merge pull request #39475 from deads2k/generic-14-apimachinery · bc861bf7
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 39475, 38666, 39327, 38396, 39613)
      
      Create k8s.io/apimachinery repo
      
      Don't panic.
      
      The diff is quite large, but its all generated change.  The first few commits are where are all the action is.  I built a script to find the fanout from 
      ```
      k8s.io/kubernetes/pkg/apimachinery/registered
      k8s.io/kubernetes/pkg/runtime/serializer
      k8s.io/kubernetes/pkg/runtime/serializer/yaml
      k8s.io/kubernetes/pkg/runtime/serializer/streaming
      k8s.io/kubernetes/pkg/runtime/serializer/recognizer/testing 
      ```
      
      It copied 
      ```
      k8s.io/kubernetes/pkg/api/meta
      k8s.io/kubernetes/pkg/apimachinery
      k8s.io/kubernetes/pkg/apimachinery/registered
      k8s.io/kubernetes/pkg/apis/meta/v1
      k8s.io/kubernetes/pkg/apis/meta/v1/unstructured
      k8s.io/kubernetes/pkg/conversion
      k8s.io/kubernetes/pkg/conversion/queryparams
      k8s.io/kubernetes/pkg/genericapiserver/openapi/common - this needs to renamed post-merge.  It's just types
      k8s.io/kubernetes/pkg/labels
      k8s.io/kubernetes/pkg/runtime
      k8s.io/kubernetes/pkg/runtime/schema
      k8s.io/kubernetes/pkg/runtime/serializer
      k8s.io/kubernetes/pkg/runtime/serializer/json
      k8s.io/kubernetes/pkg/runtime/serializer/protobuf
      k8s.io/kubernetes/pkg/runtime/serializer/recognizer
      k8s.io/kubernetes/pkg/runtime/serializer/recognizer/testing
      k8s.io/kubernetes/pkg/runtime/serializer/streaming
      k8s.io/kubernetes/pkg/runtime/serializer/versioning
      k8s.io/kubernetes/pkg/runtime/serializer/yaml
      k8s.io/kubernetes/pkg/selection
      k8s.io/kubernetes/pkg/types
      k8s.io/kubernetes/pkg/util/diff
      k8s.io/kubernetes/pkg/util/errors
      k8s.io/kubernetes/pkg/util/framer
      k8s.io/kubernetes/pkg/util/json
      k8s.io/kubernetes/pkg/util/net
      k8s.io/kubernetes/pkg/util/runtime
      k8s.io/kubernetes/pkg/util/sets
      k8s.io/kubernetes/pkg/util/validation
      k8s.io/kubernetes/pkg/util/validation/field
      k8s.io/kubernetes/pkg/util/wait
      k8s.io/kubernetes/pkg/util/yaml
      k8s.io/kubernetes/pkg/watch
      k8s.io/kubernetes/third_party/forked/golang/reflect
      ```
      
      The script does the import rewriting and gofmt.  Then you do a build, codegen, bazel update, and it produces all the updates.
      
      If we agree this is the correct approach.  I'll create a verify script to make sure that no one messes with any files in the "dead" packages above.
      
      @kubernetes/sig-api-machinery-misc @smarterclayton @sttts @lavalamp @caesarxuchao 
      
      `staging/prime-apimachinery.sh && hack/update-codegen.sh && nice make WHAT="federation/cmd/federation-apiserver/ cmd/kube-apiserver" && hack/update-openapi-spec.sh && hack/update-federation-openapi-spec.sh && hack/update-codecgen.sh && hack/update-codegen.sh && hack/update-generated-protobuf.sh && hack/update-bazel.sh`
      bc861bf7
    • Paulo Pires's avatar
      dockertools: disable swap on Linux since it's unsupported. · f4edaf2b
      Paulo Pires authored
      Refs #39005
      f4edaf2b
    • Paulo Pires's avatar
      dockertools: fix Windows implementation. · dacc3636
      Paulo Pires authored
      Fixes #39005
      Fixes #39714
      dacc3636
    • Kubernetes Submit Queue's avatar
      Merge pull request #39646 from shashidharatd/federation-misc · 3888aca8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 39714, 39646)
      
      use etcd2 as storage-backend for federation until federation features are completely tested with etcd3
      
      **What this PR does / why we need it**: move federation etcd to etcd3
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #39594
      
      **Special notes for your reviewer**: here is the [link](https://github.com/kubernetes/features/issues/44#issuecomment-270772674) to announcement making etcd3 as default
      
      **Release note**:
      
      ```release-note
      ```
      3888aca8
    • Kubernetes Submit Queue's avatar
      Merge pull request #39714 from feiskyer/fix · cd55e1b2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 39714, 39646)
      
      dockertools: fix build on OSX
      
      #39005 introduces a build problem on OSX. This PR fixes it.
      
      Refer [here](https://github.com/kubernetes/kubernetes/pull/39005#issuecomment-271781026).
      cd55e1b2
    • Andy Goldstein's avatar
      Fix kubectl get -f <file> -o <nondefault printer> · 613ada4c
      Andy Goldstein authored
      Fix kubectl get -f <file> -o <nondefault printer> so it prints all the
      objects in the file, instead of just the first one. Also add a test for
      this feature.
      613ada4c
    • deads2k's avatar
      start the apimachinery repo · 6a4d5cd7
      deads2k authored
      6a4d5cd7
    • deads2k's avatar
      allow generated changes in readonly package · 98acd800
      deads2k authored
      98acd800
    • deads2k's avatar
      a264e5f8
    • deads2k's avatar
      k8s.io/apimachinery scripts · 70778ccc
      deads2k authored
      70778ccc
    • kayrus's avatar
      8435d199
    • Jeff Grafton's avatar
    • Euan Kemp's avatar
      container-linux: restart rkt-api on failure · eeef293e
      Euan Kemp authored
      This works around a flake I saw which had the same root cause as
      https://github.com/coreos/rkt/issues/3513.
      
      This will potentially help reduce the impact of such future problems as
      well.
      eeef293e
    • Kubernetes Submit Queue's avatar
      Merge pull request #39718 from foxish/remove-statefulset-special-case · ba611194
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 39230, 39718)
      
      Remove special case for StatefulSets in scheduler
      
      **What this PR does / why we need it**: Removes special case for StatefulSet in scheduler code
      /ref: https://github.com/kubernetes/kubernetes/issues/39687
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      Scheduler treats StatefulSet pods as belonging to a single equivalence class.
      ```
      ba611194
    • Kubernetes Submit Queue's avatar
      Merge pull request #39230 from irfanurrehman/fed-init-5 · 3ed7fb69
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 39230, 39718)
      
      [Federation] Kubefed init verifies if control plane pods are up before returning success
      
      This PR updates the functionality as needed in issue https://github.com/kubernetes/kubernetes/issues/37841.
      
      cc @kubernetes/sig-cluster-federation @nikhiljindal @madhusudancs @shashidharatd
      3ed7fb69
    • Kubernetes Submit Queue's avatar
      Merge pull request #39547 from copejon/fix-pv-e2e-flake · 14e322cc
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 39495, 39547)
      
      Tag persistent volume PersistentVolume E2E [Volume][Serial][Flaky]
      
      **What this PR does / why we need it**:
      When run parallel with other tests that use PV(C)s, cross-test binding causes flakes.  Add `[Serial]` tag.
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: f
      Partly addresses #39119 
       
      **Special notes for your reviewer**:
      cc @saad-ali @jsafrane @jeffvance
      14e322cc
    • Kubernetes Submit Queue's avatar
      Merge pull request #39495 from apprenda/kubeadm_89-remove_preflight_stutter · dccd0738
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 39495, 39547)
      
      kubeadm: updated preflight types to avoid stutter
      
      Small change to kubeadm preflight pkg to remove stutter from preflight types PreFlightError and PreFlightCheck (now names Error and Checker). 
      
      **Release note**:
      
      `NONE`
      dccd0738
    • Anirudh's avatar
      dda3b01d
    • Kubernetes Submit Queue's avatar
      Merge pull request #39702 from mikedanese/kubelet-csr · 1fbb22e1
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 39684, 39577, 38989, 39534, 39702)
      
      kubelet: request client auth certificates from certificate API.
      
      This fixes kubeadm and --experiment-kubelet-bootstrap.
      
      cc @liggitt
      1fbb22e1
    • Kubernetes Submit Queue's avatar
      Merge pull request #39534 from apprenda/kubeadm_refactor_token_discovery · f74a556f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 39684, 39577, 38989, 39534, 39702)
      
      kubeadm: refactored token discovery.
      
      **What this PR does / why we need it**: refactored `kubeadm` token discovery to follow the discovery interface and use new TLS bootstrap mechanism.
      
      /cc @luxas @mikedanese
      f74a556f
    • Kubernetes Submit Queue's avatar
      Merge pull request #38989 from sjenning/set-qos-field · 3f9f7471
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 39684, 39577, 38989, 39534, 39702)
      
      Set PodStatus QOSClass field
      
      This PR continues the work for https://github.com/kubernetes/kubernetes/pull/37968
      
      It converts all local usage of the `qos` package class types to the new API level types (first commit) and sets the pod status QOSClass field in the at pod creation time on the API server in `PrepareForCreate` and in the kubelet in the pod status update path (second commit).  This way the pod QOS class is set even if the pod isn't scheduled yet.
      
      Fixes #33255
      
      @ConnorDoyle @derekwaynecarr @vishh
      3f9f7471
    • Kubernetes Submit Queue's avatar
      Merge pull request #39577 from kargakis/fix-openshift-example · efff7c03
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 39684, 39577, 38989, 39534, 39702)
      
      examples: fix OpenShift example
      
      Fixes https://github.com/kubernetes/kubernetes/issues/39575
      efff7c03
    • Kubernetes Submit Queue's avatar
      Merge pull request #39684 from deads2k/rbac-37-subresource-message · 49b900a4
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 39684, 39577, 38989, 39534, 39702)
      
      add subresource to forbidden message
      
      Fixes https://github.com/kubernetes/kubernetes/issues/39640
      
      The message will now be `user "username" cannot verb resource.group/subresource in the the namespace "ns"`.
      49b900a4
    • Pengfei Ni's avatar
      dockertools: fix build on OSX · 1f17a47f
      Pengfei Ni authored
      1f17a47f
    • Irfan Ur Rehman's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #39497 from ymqytw/fix_evictions_test · c0241245
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 39694, 39383, 39651, 39691, 39497)
      
      Fix evictions test
      
      **What this PR does / why we need it**:
      Fixes bugs in evictions test. Make vet happy.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #39412
      
      Ref: #39452
      
      cc: @calebamiles
      c0241245
    • Kubernetes Submit Queue's avatar
      Merge pull request #39691 from yujuhong/bump_timeout · ebc8e406
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 39694, 39383, 39651, 39691, 39497)
      
      Bump container-linux and gci timeout for docker health check
      
      The command `docker ps` can take longer time to respond under heavy load or
      when encountering some known issues. In these cases, the containers are running
      fine, so aggressive health check could cause serious disruption. Bump the
      timeout to 60s to be consistent with the debian-based containerVM.
      
      This addresses #38588
      ebc8e406
    • Kubernetes Submit Queue's avatar
      Merge pull request #39651 from liggitt/passwordfile-groups · 95968754
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 39694, 39383, 39651, 39691, 39497)
      
      Add support for groups to passwordfile
      
      As we move deployment methods to using RBAC, it is useful to be able to place the admin user in the bootstrap kubeconfig files in a superuser group. The tokencsv file supports specifying group membership, but the basicauth file does not. This adds it for parity.
      
      I plan to update the generated password file to put the admin user in a group (similar to the way https://github.com/kubernetes/kubernetes/pull/39537 puts that user in a group in the token file)
      
      ```release-note
      --basic-auth-file supports optionally specifying groups in the fourth column of the file
      ```
      95968754