1. 08 Aug, 2017 2 commits
    • Klaus Ma's avatar
      Moved node/testutil to upper dir. · 4fdb701e
      Klaus Ma authored
      4fdb701e
    • Kubernetes Submit Queue's avatar
      Merge pull request #49168 from crimsonfaith91/apps-v1beta2 · 0967f956
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      StatefulSet scale subresource
      
      **What this PR does / why we need it**: This PR implements scale subresource for StatefulSet.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #46005
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      StatefulSet uses scale subresource when scaling in accord with ReplicationController, ReplicaSet, and Deployment implementations.
      ```
      **Feature Checklist**:
      - [x] Introduce Registry interface for storage purpose
      - [x] Introduce `ScaleREST New(), Get() and Update()` utility functions
      - [x] Create a `ScaleREST` object at `NewREST()` and return it
      - [x] Enable scale subresource by adding `/scale` field to the storage map
      
      **Testing Checklist**:
      - Unit testing
        - [x] Modify `newStorage()` to call `NewStorage()`, and change all unit tests accordingly
        - [x] Add unit tests for `ScaleREST Get() and Update()` utility functions
        - [x] Add missing unit test for `ShortNames`
      
      - Manual testing
        - [x] Verify existence of the subresource using `kubectl proxy` command
        - [x] Modify the subresource using `curl` via `POST`
      
      - e2e testing
        - [x] Add e2e tests using `RESTClient`
      0967f956
  2. 07 Aug, 2017 38 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #36197 from jianhuiz/federation-job-controller · 942f030f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Federated Job controller implementation
      
      Note that job re-balance is not there yet as it's difficult to honor job deadline
      
      requires #35945 and 35943
      fixes #34261
      @quinton-hoole @nikhiljindal @deepak-vij
      
      **Release note**:
      ```release-note
      Federated Job feature.  It is now possible to create a Federated Job 
      that is automatically deployed to one or more federated clusters 
      (as Jobs in those clusters).    Job parallelism and completions are 
      spread across clusters according to cluster selection and weighting 
      preferences.  Federated Job status reflects the aggregate status 
      across all underlying cluster Jobs.
      ```
      942f030f
    • Kubernetes Submit Queue's avatar
      Merge pull request #50265 from quinton-hoole/2017-08-07-add-shashi-as-approver-for-federation-e2e · 4b037dfd
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add Shashi as approver for e2e_federation
      
      **Release note**:
      
      ```NONE
      ```
      4b037dfd
    • Kubernetes Submit Queue's avatar
      Merge pull request #49603 from zhangxiaoyu-zidif/fix-errorf-for-get-test · 4217e10b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49524, 46760, 50206, 50166, 49603)
      
      Fix errorf for get test
      
      **What this PR does / why we need it**:
      If the error messages do not use format, use t.Error() will be fine.
      
      **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
      ```
      4217e10b
    • Kubernetes Submit Queue's avatar
      Merge pull request #50166 from DirectXMan12/bug/fix-aggregator-with-no-openapi · 4e2b9059
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49524, 46760, 50206, 50166, 49603)
      
      Handle missing OpenAPI specs on aggregated servers
      
      Previously, the aggregator would fail to actually set up the aggregator
      proxy for an API server that was missing an OpenAPI spec.  It would show
      up in discovery, but the actual proxying would fail to occur.
      
      Now, we simply log an error if we can't fetch an OpenAPI spec for a
      particular aggregated server, and continue on.
      
      Fixes #50165
      
      ```release-note
      NONE
      ```
      4e2b9059
    • Kubernetes Submit Queue's avatar
      Merge pull request #50206 from FengyunPan/add-debug · 57cbc67c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49524, 46760, 50206, 50166, 49603)
      
      [OpenStack] Add more detail error message
      
      I get same simple error messages "Unable to initialize cinder client
      for region: RegionOne" from controller-manager, but I can not find the
      reason. We should add more detail message "err" into glog.Errorf.
      
      Currently NewBlockStorageV2() return err when failed to get cinder endpoint, but there is no code to output the message of err.
      
      **Release note**:
      ```release-note
      NONE
      ```
      57cbc67c
    • Kubernetes Submit Queue's avatar
      Merge pull request #46760 from xilabao/fix-parse-pairs · 535c0f6f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49524, 46760, 50206, 50166, 49603)
      
      fix parse pairs
      
      **What this PR does / why we need it**:
      add check to `-`
      ```
      # kubectl label pod foo -               
      error: at least one label update is required
      See 'kubectl label -h' for help and examples.
      ```
      
      **Which issue this PR fixes**: 
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      535c0f6f
    • Kubernetes Submit Queue's avatar
      Merge pull request #49524 from k82cn/k8s_49522 · 35eb03e3
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49524, 46760, 50206, 50166, 49603)
      
      Handled taints on node in batch.
      
      **What this PR does / why we need it**:
      Enhanced helpers to handled taints on node in batch.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #49522 
      
      **Release note**:
      
      ```release-note
      None
      ```
      35eb03e3
    • Quinton Hoole's avatar
      Add Shashi as approver for e2e_federation · c5f011be
      Quinton Hoole authored
      c5f011be
    • Kubernetes Submit Queue's avatar
      Merge pull request #49945 from xiangpengzhao/e2e-name · d37f2f1a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49885, 49751, 49441, 49952, 49945)
      
      Rename e2e sig framework files
      
      **What this PR does / why we need it**:
      make files be consistent across all sig e2e tests dir.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      Umbrella issue #49161
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      d37f2f1a
    • Kubernetes Submit Queue's avatar
      Merge pull request #49952 from FengyunPan/repeat-check · 8de72d21
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49885, 49751, 49441, 49952, 49945)
      
      There is no need to split service key repeatedly
      
      **Release note**:
      ```release-note
      NONE
      ```
      8de72d21
    • Kubernetes Submit Queue's avatar
      Merge pull request #49441 from zhangxiaoyu-zidif/fix-err-message-for-gettest · c2a83c3e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49885, 49751, 49441, 49952, 49945)
      
      Fix error format and info for get_test.go
      
      **What this PR does / why we need it**:
      Fix error format and info for get_test.go
      **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
      ```
      c2a83c3e
    • Kubernetes Submit Queue's avatar
      Merge pull request #49751 from janetkuo/conversion-gen-apps · 37e785cd
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49885, 49751, 49441, 49952, 49945)
      
      Add conversion-gen between extensions and apps
      
      Fixes #49738
      
      Generate conversion code for apps/v1beta1 <--> extensions and apps/v1beta2 <--> extensions
      
      @kubernetes/sig-apps-api-reviews @kubernetes/sig-api-machinery-misc
      37e785cd
    • Kubernetes Submit Queue's avatar
      Merge pull request #49885 from dashpole/ignore_udp · e0089bcf
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49885, 49751, 49441, 49952, 49945)
      
      Ignore UDP metrics in kubelet
      
      Updating cadvisor godeps to 0.26.0 for the 1.7 release (#46658) added udp metrics.  However, they were not disabled in the kubelet.
      This PR disables collection of UDP metrics in the kubelet.
      This should be cherrypicked to the 1.7 branch.
      
      cc @dchen1107
      e0089bcf
    • Jun Xiang Tee's avatar
      implement statefulset scale subresource · 91f100b5
      Jun Xiang Tee authored
      91f100b5
    • jianhuiz's avatar
      add fed job e2e test · 746444e4
      jianhuiz authored
      746444e4
    • jianhuiz's avatar
      add job controller · 4dcdfd4a
      jianhuiz authored
      4dcdfd4a
    • Kubernetes Submit Queue's avatar
      Merge pull request #49914 from yguo0905/shared-pid-ns · 02d04de8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 50087, 39587, 50042, 50241, 49914)
      
      Add node e2e test for Docker's shared PID namespace
      
      Ref: https://github.com/kubernetes/kubernetes/issues/42926
      
      This PR adds a simple test for the shared PID namespace that's enabled when Docker is 1.13.1+.
      
      /sig node
      /area node-e2e
      /assign @yujuhong 
      
      **Release note**:
      ```
      None
      ```
      02d04de8
    • Kubernetes Submit Queue's avatar
      Merge pull request #50241 from jamiehannaford/kubeadm-ha-flags · 8c22b11c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 50087, 39587, 50042, 50241, 49914)
      
      Enable selfHosted feature flag
      
      **What this PR does / why we need it**:
      
      Enables feature gating for self-hosting on kubeadm
      
      **Which issue this PR fixes**
      
      Continuation of https://github.com/kubernetes/kubeadm/issues/323
      
      **Release note**:
      ```release-note
      Feature gates now determine whether a cluster is self-hosted. For more information, see the FeatureGates configuration flag.
      ```
      
      /cc @luxas
      8c22b11c
    • Kubernetes Submit Queue's avatar
      Merge pull request #50042 from jingxu97/Aug/cinderfix · d6cb4827
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 50087, 39587, 50042, 50241, 49914)
      
      AttachDisk should not call detach inside of Cinder volume provider
      d6cb4827
    • Kubernetes Submit Queue's avatar
      Merge pull request #39587 from zhouhaibing089/openstack-auth-provider · 59b8fa32
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 50087, 39587, 50042, 50241, 49914)
      
      plugin/pkg/client/auth: add openstack auth provider
      
      This is an implementation of auth provider for OpenStack world, just like python-openstackclient, we read the environment variables of a list `OS_*`, and client will cache a token to interact with each components, we can do the same here, the client side can cache a token locally at the first time, and rotate automatically when it expires.
      
      This requires an implementation of token authenticator at server side, refer:
      
      1.  [made by me] https://github.com/kubernetes/kubernetes/pull/25536, I can carry this on when it is fine to go.
      2.  [made by @kfox1111] https://github.com/kubernetes/kubernetes/pull/25391
      
      The reason why I want to add this is due to the `client-side` nature, it will be confusing to implement it downstream, we would like to add this support here, and customers can get `kubectl` like they usually do(`brew install kubernetes-cli`), and it will just work.
      
      When this is done, we can deprecate the password keystone authenticator as the following reasons:
      
      1.  as mentioned at some other places, the `domain` is another parameters which should be provided.
      2.  in case the user supplies `apikey` and `secrets`, we might want to fill the `UserInfo` with the real name which is not implemented for now.
      
      cc @erictune @liggitt 
      
      ```
      add openstack auth provider
      ```
      59b8fa32
    • Kubernetes Submit Queue's avatar
      Merge pull request #50087 from deads2k/server-39-convert · 47999c58
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 50087, 39587, 50042, 50241, 49914)
      
      convert default predicates to use the default
      
      Builds on https://github.com/kubernetes/kubernetes/pull/50019 (lgtm'd already)
      
      This converts the already default field selectors to use the default value.  I'll let CI point out the unit test failures for me to chase.
      
      @kubernetes/sig-api-machinery-misc
      47999c58
    • Solly Ross's avatar
      Handle missing OpenAPI specs on aggregated servers · 17eb5813
      Solly Ross authored
      Previously, the aggregator would fail to actually set up the aggregator
      proxy for an API server that was missing an OpenAPI spec.  It would show
      up in discovery, but the actual proxying would fail to occur.
      
      Now, we simply log an error if we can't fetch an OpenAPI spec for a
      particular aggregated server, and continue on.
      17eb5813
    • Kubernetes Submit Queue's avatar
      Merge pull request #50243 from mborsz/node · fddc7f3e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 50091, 50231, 50238, 50236, 50243)
      
      Fix storage tests for multizone test configuration.
      
      **What this PR does / why we need it**:
      This PR modifies "[sig-storage] Volumes PD should be mountable with (ext3|ext4)" tests to schedule pods in zone, where PD is created.
      This is to make the test work in multizone environment.
      
      **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
      ```
      fddc7f3e
    • Kubernetes Submit Queue's avatar
      Merge pull request #50236 from crassirostris/sig-instrumentation-e2e-last-move · 2d5729e2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 50091, 50231, 50238, 50236, 50243)
      
      Move the sig-instrumentation test to a dedicated folder
      
      Move the last remaining test to sig-instrumentation folder, also move "metrics" package to the "framework" folder
      
      Related issue: https://github.com/kubernetes/kubernetes/issues/49161
      
      /cc @xiangpengzhao @piosz
      2d5729e2
    • Kubernetes Submit Queue's avatar
      Merge pull request #50238 from mborsz/managed · 969ae1eb
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 50091, 50231, 50238, 50236, 50243)
      
      Modify e2e.go to arbitrarily pick one of zones we have nodes in for multizone tests.
      
      **What this PR does / why we need it**:
      When e2e runs in multizone configuration, zone config property can be empty.
      This PR, in that case, overrides an empty value with arbitrarily chosen zone that we have nodes in.
      
      **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
      ```
      969ae1eb
    • Kubernetes Submit Queue's avatar
      Merge pull request #50231 from crassirostris/sd-logging-e2e-soak-fix · 5cbb73d6
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 50091, 50231, 50238, 50236, 50243)
      
      Fix Stackdriver Logging soak tests issues
      
      It mostly addressed occasional panics and too verbose logs about ingestion
      
      Fixes https://github.com/kubernetes/kubernetes/issues/50237
      
      /cc @piosz @x13n
      5cbb73d6
    • Kubernetes Submit Queue's avatar
      Merge pull request #50091 from dixudx/fieldSelector_podIP · 0df3f0ef
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 50091, 50231, 50238, 50236, 50243)
      
      add fieldSelector podIP
      
      **What this PR does / why we need it**:
      Currently the `fieldSelector` for `Pod` only support `metadata.name`, `metadata.namespace`, `spec.nodeName`, `spec.restartPolicy` and `status.phase`.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #50075
      
      **Special notes for your reviewer**:
      /cc @wojtek-t @caesarxuchao @justinsb @LiliC
      
      **Release note**:
      
      ```release-note
      add fieldSelector podIP
      ```
      0df3f0ef
    • Jamie Hannaford's avatar
      Enable selfHosted feature flag · 173bc31c
      Jamie Hannaford authored
      173bc31c
    • deads2k's avatar
      convert default predicates to use the default · ec397c43
      deads2k authored
      ec397c43
    • Kubernetes Submit Queue's avatar
      Merge pull request #50184 from jinzhejz/jinzhejz_typo · dbc81feb
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      fix typo in replenishment_controller.go
      
      **What this PR does / why we need it**:
      fix typo
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #N/A
      
      **Release note**:
      ```release-note
      None
      ```
      dbc81feb
    • FengyunPan's avatar
      53742560
    • Klaus Ma's avatar
      Handled taints on node in batch. · 18ae1ba8
      Klaus Ma authored
      18ae1ba8
    • Kubernetes Submit Queue's avatar
      Merge pull request #50145 from gmarek/micro-equality · 654de23c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49868, 50143, 49377, 50141, 50145)
      
      Add MicroTime to DeepEquals overrides
      654de23c
    • Kubernetes Submit Queue's avatar
      Merge pull request #50141 from gmarek/verify · 7deb3b29
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49868, 50143, 49377, 50141, 50145)
      
      Don't expect internal clientset to be generated for groups without ne…
      
      …w types
      7deb3b29
    • Kubernetes Submit Queue's avatar
      Merge pull request #49377 from CaoShuFeng/audit_id_http_response_header · a0826e1d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49868, 50143, 49377, 50141, 50145)
      
      Return Audit-Id http response header for trouble shooting
      
      Users can use Audit-Id http response header to grep the audit events in log.
      This provides a fast way to find the events in audit.
      **Release note**:
      
      ```
      Audit-Id HTTP header is included in the apiserver responses for audited requests, except some cases when it's not possible, e.g. pods/exec.
      ```
      @sttts @tallclair
      a0826e1d
    • Kubernetes Submit Queue's avatar
      Merge pull request #50143 from gmarek/microtime · 293ab0f8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49868, 50143, 49377, 50141, 50145)
      
      Add metav1.MicroTime to exceptions in tag tests
      293ab0f8
    • Kubernetes Submit Queue's avatar
      Merge pull request #49868 from shiywang/testlog · fb661268
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49868, 50143, 49377, 50141, 50145)
      
      Status objects for 404 API errors will have the correct APIVersion
      
      Fixes https://github.com/kubernetes/kubernetes/issues/48959
      superseded https://github.com/kubernetes/kubernetes/pull/49183
      
      
      ```release-note 
      Status objects for 404 API errors will have the correct APIVersion
      ```
      fb661268
    • Maciej Borsz's avatar
      6d789ee6