1. 08 Sep, 2017 1 commit
    • Kubernetes Submit Queue's avatar
      Merge pull request #52116 from ixdy/gcloud-regexp-flag-fix · 8ed63636
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Convert deprecated gcloud --regexp flag into --filter
      
      **What this PR does / why we need it**: #49673 missed a flag in hiding:
      ```console
      WARNING: Flag --regexp is deprecated. Use --filter="name~'REGEXP'" instead.
      ERROR: gcloud crashed (TypeError): 'NoneType' object is not iterable
      
      If you would like to report this issue, please run the following command:
        gcloud feedback
      
      To check gcloud for common problems, please run the following command:
        gcloud info --run-diagnostics
      ```
      
      (Also it's great how gcloud crashes, rather than handling the deprecation gracefully.)
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #49673
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      
      cc @pci
      8ed63636
  2. 07 Sep, 2017 25 commits
  3. 06 Sep, 2017 14 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #50708 from DirectXMan12/versions/autoscaling-v2beta1 · 3168bd4b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 51956, 50708)
      
      Move autoscaling/v2 from alpha1 to beta1
      
      This graduates autoscaling/v2alpha1 to autoscaling/v2beta1.  The move is more-or-less just a straightforward rename.
      
      Part of kubernetes/features#117
      
      ```release-note
      v2 of the autoscaling API group, including improvements to the HorizontalPodAutoscaler, has moved from alpha1 to beta1.
      ```
      3168bd4b
    • Kubernetes Submit Queue's avatar
      Merge pull request #51956 from luxas/kubeadm_upgrade_bootstraptokens · 213c8c87
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 51956, 50708)
      
      kubeadm: Upgrade Bootstrap Tokens to beta when upgrading to v1.8
      
      **What this PR does / why we need it**:
      
      Makes sure the v1.7 -> v1.8 upgrade works regarding the Bootstrap Token alpha -> beta graduation.
      Not much have to be done, but some LoC are needed to preserve the behaivor
      
      **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
      ```
      @kubernetes/sig-cluster-lifecycle-pr-reviews
      213c8c87
    • Kubernetes Submit Queue's avatar
      Merge pull request #51987 from nicksardo/gce-fix-updowntests · 50c63318
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 51839, 51987)
      
      GCE: Fall back to network if subnet is unknown
      
      Fixes #51981 
      
      /assign @bowei 
      
      **Release note**:
      ```release-note
      NONE
      ```
      50c63318
    • Kubernetes Submit Queue's avatar
      Merge pull request #51839 from jennybuckley/master · dc985975
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 51839, 51987)
      
      Disable rbac/v1alpha1, settings/v1alpha1, and scheduling/v1alpha1 by default
      
      **What this PR does / why we need it**: Disables alpha features which were previously enabled by default. Also changes tests which relied on these alpha features being enabled by default.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #47691
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      Fixed a bug where some alpha features were enabled by default.
      dc985975
    • Kubernetes Submit Queue's avatar
      Merge pull request #52018 from jsafrane/fix-expand-panic · 440884be
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49133, 51557, 51749, 50842, 52018)
      
      Fix panic in expand controller when checking PVs
      
      Unbound PVs have their Spec.ClaimRef = nil, so we should not dereference it blindly.
      
      In addition, increase AddPVCUpdate test coverage to 100%
      
      fixes #52012 #51995
      
      **Release note**:
      ```release-note
      NONE
      ```
      
      @kubernetes/sig-storage-pr-reviews 
      /assign @gnufied
      440884be
    • Kubernetes Submit Queue's avatar
      Merge pull request #50842 from CaoShuFeng/remove_versioned_test_from_filters · d369160c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49133, 51557, 51749, 50842, 52018)
      
      enhance unit tests of advance audit feature
      
      This change addresses comments from @crassirostris 
      https://github.com/kubernetes/kubernetes/pull/49115#discussion_r133416080
      
      It does three things:
      1. use auditinternal for unit test in filter stage
      2. add a seperate unit test for Audit-ID http header
      3. add unit test for audit log backend
      
      
      **Release note**:
      ```
      NONE
      ```
      d369160c
    • Kubernetes Submit Queue's avatar
      Merge pull request #51749 from caesarxuchao/quota-igore-uninitialized · 4938455b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49133, 51557, 51749, 50842, 52018)
      
      Charges quota only for initialized objects
      
      Partially fix https://github.com/kubernetes/kubernetes/issues/51842.
      
      Based on https://github.com/kubernetes/kubernetes/pull/51733/files. Only the commit "Don't charge quota when creating/updating an uninitialized object" is new.
      
      The old plan was to charge quota for each update of uninitialized object. This PR makes the quota admission only charges the update that removes the last pending initializer. Because
      * https://github.com/kubernetes/kubernetes/pull/51247, which lets sharedInformer see uninitialized objects, is not making the code freeze deadline. Hence, the quota replenishing controller won't capture deletion of uninitialized objects. We will leak quota if we charge quota for uninitialized objects.
      * @lavalamp @erictune pointed out calculating/reserving quota is expensive, we should avoid doing it for every initializer update.
      * My original argument was that quota admission should fail early so that user can easily figure out which initializer causes the quota outage. @lavalamp @erictune convinced me that user could easily figure the culprit if they watch the initialization process.
      4938455b
    • Kubernetes Submit Queue's avatar
      Merge pull request #51557 from yguo0905/stats-cri · 3b2e32e0
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49133, 51557, 51749, 50842, 52018)
      
      Implement StatsProvider interface using CRI stats
      
      Ref: https://github.com/kubernetes/kubernetes/issues/46984
      
      This is the follow up of https://github.com/kubernetes/kubernetes/pull/50932
      
      - I include the cadvisor dependency changes in this PR for now to make it build. @dashpole will update the cadvisor dependency very soon, and I will remove the change once it's updated.
      - Please take a closer look at the implementation in `cri_stats_provider.go` since we currently don't have any runtime implementing the CRI stats interface and the changes here cannot be enabled in e2e tests.
      - Pod level network stats and container level logs stats are not provided.
      - In `cadvisor_stats_provider.go`, we are able to remove the call to `getCgroupStats` in `ImageFsStats` for getting the timestamp of the stats, given that we've changed cadvisor to include the timestamp in `FsInfo`.
      - Fixed the usage of `assert.Equal` in unit tests.
      
      **Release note**:
      ```
      Support getting container stats from CRI.
      ```
      
      /assign @yujuhong 
      /assign @Random-Liu
      3b2e32e0
    • Kubernetes Submit Queue's avatar
      Merge pull request #49133 from deads2k/gc-02-permissions · 0ed05f2d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49133, 51557, 51749, 50842, 52018)
      
      add controller permissions to set blockOwnerDeletion
      
      fixes https://github.com/kubernetes/kubernetes/issues/51970
      
      `blockOwnerDeletion` requires delete permissions on the owner object.  This adds that permission for our controllers.
      
      @kubernetes/sig-auth-misc 
      
      ```release-note
      The OwnerReferencesPermissionEnforcement admission plugin now requires `update` permission on the `finalizers` subresource of the referenced owner in order to set `blockOwnerDeletion` on an owner reference.
      ```
      0ed05f2d
    • Yu-Ju Hong's avatar
      e2e: network tiers should retry on 404 errors · bb50086b
      Yu-Ju Hong authored
      The feature is still Alpha and at times, the IP address previously used
      by the load balancer in the test will not completely freed even after
      the load balancer is long gone. In this case, the test URL with the IP
      would return a 404 response. Tolerate this error and retry until the new
      load balancer is fully established.
      bb50086b
    • Nick Sardo's avatar
      Fall back to network if subnet is unknown · 2bea4f7d
      Nick Sardo authored
      2bea4f7d
    • Lucas Käldström's avatar
    • Chao Xu's avatar
      bazel · 4d1d33af
      Chao Xu authored
      4d1d33af
    • Chao Xu's avatar
      Charge quota for uninitialized objects at different time · b0c83c72
      Chao Xu authored
      Charge object count when object is created, no matter if the object is
      initialized or not.
      Charge the remaining quota when the object is initialized.
      
      Also, checking initializer.Pending and initializer.Result when
      determining if an object is initialized. We didn't need to check them
      because before 51082, having 0 pending initializer and nil
      initializers.Result is invalid.
      b0c83c72