1. 16 Dec, 2017 31 commits
  2. 15 Dec, 2017 9 commits
    • David Ashpole's avatar
      Update CHANGELOG-1.9.md for v1.9.0. · 80c75ef1
      David Ashpole authored
      80c75ef1
    • Kubernetes Submit Queue's avatar
      Merge pull request #55957 from jsafrane/protection-predicate · 68c857e2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 57211, 56150, 56368, 56271, 55957). 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>.
      
      Skip pods that refer to PVCs that are being deleted
      
      **What this PR does / why we need it**:
      
      New check was added to `Schedule()` to make sure that a scheduled pod refers to existing PVCs that are not being deleted.
      
      In 1.9 we plan to add a new feature that uses finalizers on PVC to protect PVCs that are used by a running pod from being deleted. This finalizer will be removed when all pods that use a PVC are finished or deleted. See https://github.com/kubernetes/community/blob/master/contributors/design-proposals/storage/postpone-pvc-deletion-if-used-in-a-pod.md for details.
      
      I needed to pass `pvcLister` to `GenericScheduler`.
      
      UX:
      
      ```
      $ kubectl describe pod
      ...
        Type     Reason            Age              From               Message
        ----     ------            ----             ----               -------
        Warning  FailedScheduling  5s (x4 over 8s)  default-scheduler  persistentvolumeclaim "myclaim" is being deleted
        Warning  FailedScheduling  1s (x2 over 1s)  default-scheduler  persistentvolumeclaim "myclaim" not found
      
      ```
      
      
      **Release note**:
      
      ```release-note
      Scheduler skips pods that use a PVC that either does not exist or is being deleted.
      ```
      
      /sig scheduling
      /kind feature
      68c857e2
    • Kubernetes Submit Queue's avatar
      Merge pull request #56271 from tanshanshan/fix-little-scheduler · 588c1e97
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 57211, 56150, 56368, 56271, 55957). 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>.
      
      Put variable declared in the front.
      
      **What this PR does / why we need it**:
      
      put variable declared in the front.
      
      **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
      
      ```
      588c1e97
    • Kubernetes Submit Queue's avatar
      Merge pull request #56368 from xiangpengzhao/validate-ipvs-stuff · 7bbb84ca
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 57211, 56150, 56368, 56271, 55957). 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>.
      
      Validate IPVSConfiguration only when IPVS mode is enabled.
      
      **What this PR does / why we need it**:
      It's strange for users that they should configuration valid values for ipvs params even when they don't use ipvs mode. Users don't need to care about these params in this case.
      
      **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**:
      /cc @m1093782566
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      7bbb84ca
    • Kubernetes Submit Queue's avatar
      Merge pull request #56150 from php-coder/fix_format_string · f588bb02
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 57211, 56150, 56368, 56271, 55957). 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>.
      
      pkg/controller/garbagecollector/garbagecollector.go: fix string format
      
      **What this PR does / why we need it**:
      This PR fixes broken formatting in the warning message by using appropriate function:
      > W1121 13:13:39.359283   19160 garbagecollector.go:601] failed to discover preferred resources: %vGet https://127.0.0.1:37983/api: dial tcp 127.0.0.1:37983: getsockopt: connection refused
      
      **Special notes for your reviewer**:
      This change was introduced in #55259
      
      **Release note**:
      ```release-note
      NONE
      ```
      
      PTAL @ironcladlou 
      CC @simo5
      f588bb02
    • Kubernetes Submit Queue's avatar
      Merge pull request #57211 from liggitt/gc-cluster-scoped · a0d23373
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 57211, 56150, 56368, 56271, 55957). 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>.
      
      Process cluster-scoped owners correctly
      
      Rework of https://github.com/kubernetes/kubernetes/pull/54943
      Fixes #54940
      
      Uses correct scope info from the restmapper at point of object lookup.
      
      ```release-note
      Fixed a garbage collection race condition where objects with ownerRefs pointing to cluster-scoped objects could be deleted incorrectly.
      ```
      a0d23373
    • Kubernetes Submit Queue's avatar
      Merge pull request #55689 from luksa/kubectl_explain_kind_version · 761fdeac
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue. 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>.
      
      Make kubectl explain print the Kind and APIVersion of the resource
      
      **What this PR does / why we need it**:
      Kubectl explain currently doesn't print out the Kind and APIversion of the resource being explained. When running `kubectl explain hpa.spec`, for example, there is no way of knowing whether you're looking at the `autoscaling/v1` or the `autoscaling/v2beta1` version. 
      Also, `kubectl explain` is often used as a reference when writing YAML/JSON object manifests. It allows you to look up everything except the API version. Currently, you either need to know the API Version of a resource by heart or look it up in the online API docs. 
      This PR fixes both problems by having `kubectl explain` print out the full Kind and APIVersion of the resource it is explaining.
      
      Here are a few examples of the new output:
      ```
      $ kubectl explain deploy
      KIND:     Deployment
      VERSION:  extensions/v1beta1
      
      DESCRIPTION:
      ...
      
      
      $ kubectl explain hpa.spec
      KIND:     HorizontalPodAutoscaler
      VERSION:  autoscaling/v1
      
      RESOURCE: spec <Object>
      
      DESCRIPTION:
      ...
      
      
      $ kubectl explain hpa.spec.maxReplicas
      KIND:     HorizontalPodAutoscaler
      VERSION:  autoscaling/v1
      
      FIELD:    maxReplicas <integer>
      
      DESCRIPTION:
      ...
      
      
      $ kubectl explain hpa.spec --recursive
      KIND:     HorizontalPodAutoscaler
      VERSION:  autoscaling/v1
      
      RESOURCE: spec <Object>
      
      DESCRIPTION:
           behaviour of autoscaler. More info:
           https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.
      
           specification of a horizontal pod autoscaler.
      
      FIELDS:
         maxReplicas	<integer>
         minReplicas	<integer>
         scaleTargetRef	<Object>
            apiVersion	<string>
            kind	<string>
            name	<string>
         targetCPUUtilizationPercentage	<integer>
      ```
      
      **Release note**:
      
      ```release-note
      Kubectl explain now prints out the Kind and API version of the resource being explained
      ```
      761fdeac
    • Kubernetes Submit Queue's avatar
      Merge pull request #56774 from CaoShuFeng/mustrunas · 722cb7a7
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue. 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>.
      
      rename mustrunas to capabilities
      
      The file context has nothing to do with `mustrunas`, so it's quite
      odd to use `mustrunas` as the file name. I guess it's copied from other
      places.
      
      
      **Release note**:
      ```release-note
      NONE
      ```
      
      fixes #57227
      722cb7a7
    • Kubernetes Submit Queue's avatar
      Merge pull request #55296 from hzxuzhonghu/fix-1 · 2631039e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 56161, 56324, 55685, 56409, 55296). 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 typo
      
      **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
      ```
      2631039e