1. 25 Jul, 2017 11 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #49274 from dixudx/add_const_for_rbd · ee7eb4a2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48911, 49475, 49438, 49362, 49274)
      
      set RBD default values as constant vars
      
      **What this PR does / why we need it**:
      
      When working on #49225, I found some [default RBD parameters](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#ceph-rbd) had not been declared as constant values, which will be error-prone.
      
      **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
      set RBD default values as constant vars
      ```
      ee7eb4a2
    • Kubernetes Submit Queue's avatar
      Merge pull request #49362 from zhangxiaoyu-zidif/fix-pdb-describer · f08e5302
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48911, 49475, 49438, 49362, 49274)
      
      Add namespace for describe pdb
      
      **What this PR does / why we need it**:
      add namespace for describe pdb
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      fixes https://github.com/kubernetes/kubernetes/issues/49363
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      f08e5302
    • Kubernetes Submit Queue's avatar
      Merge pull request #49438 from zhangxiaoyu-zidif/delete-err-def-for-drain · 0e94e943
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48911, 49475, 49438, 49362, 49274)
      
      Delete redundant err definition
      
      **What this PR does / why we need it**:
      Delete redundant err definition
      line 642 has its definition and initialization, so line 641 is redundant.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      NONE
      
      **Special notes for your reviewer**:
      NONE
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      0e94e943
    • Kubernetes Submit Queue's avatar
      Merge pull request #49475 from jsafrane/fix-gluster-make · 159dcbfb
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48911, 49475, 49438, 49362, 49274)
      
      Fixed glusterfs mount options
      
      Capacity of a slice is the third argument, not the second one.
      We use append() to fill the slice, so it should be empty at the beginning
      and with the right capacity.
      
      ```release-note
      NONE
      ```
      159dcbfb
    • Kubernetes Submit Queue's avatar
      Merge pull request #48911 from verult/StorageTests · 97eed3f7
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Added sig-storage labels to upgrade tests and moved them to appropriate directory
      
      **What this PR does / why we need it**: Adding necessary sig identifier for storage upgrade tests.
      
      /release-note-none
      97eed3f7
    • Kubernetes Submit Queue's avatar
      Merge pull request #49494 from shyamjvs/kubemark-fix · 647c0033
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48636, 49088, 49251, 49417, 49494)
      
      Fix bug in command retrying in kubemark
      
      This should fix some of the flakes mentioned in https://github.com/kubernetes/kubernetes/issues/46195.
      It's showing that all subsequent retries have failed if the first one failed due to `ret_val` not being reassigned on success.
      
      @bskiba Thanks for noticing :)
      647c0033
    • Kubernetes Submit Queue's avatar
      Merge pull request #49417 from caesarxuchao/rename · 0dfc696d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48636, 49088, 49251, 49417, 49494)
      
      [nit] Rename pkg/api/v1/builder.go to register.go to be consistent with others
      0dfc696d
    • Kubernetes Submit Queue's avatar
      Merge pull request #49251 from enisoc/initialized-annotation · 7e5fd72a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48636, 49088, 49251, 49417, 49494)
      
      StatefulSet: Remove `pod.alpha.kubernetes.io/initialized` annotation.
      
      The `pod.alpha.kubernetes.io/initialized` annotation was originally a tool for validating StatefulSet's ordered Pod creation guarantees during the feature's alpha phase.
      
      If set to "false" on a given Pod, it would interrupt StatefulSet's normal behavior. In v1.5.0, the annotation was deprecated and the default became "true" as part of StatefulSet's graduation to beta.
      
      The annotation is now ignored, meaning it cannot be used to interrupt StatefulSet Pod management.
      
      ```release-note
      StatefulSet: The deprecated `pod.alpha.kubernetes.io/initialized` annotation for interrupting StatefulSet Pod management is now ignored. If you were setting it to `true` or leaving it unset, no action is required. However, if you were setting it to `false`, be aware that previously-dormant StatefulSets may become active after upgrading.
      ```
      
      ref #41605
      7e5fd72a
    • Kubernetes Submit Queue's avatar
      Merge pull request #49088 from xiangpengzhao/get-crd · 8c58bb6e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48636, 49088, 49251, 49417, 49494)
      
      Add customresourcedefinition and its shortcut in "kubectl get"
      
      **What this PR does / why we need it**:
      Add customresourcedefinition and its shortcut in "kubectl get" help info.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #48927
      
      **Special notes for your reviewer**:
      /cc @orangedeng 
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      8c58bb6e
    • Kubernetes Submit Queue's avatar
      Merge pull request #48636 from jingxu97/July/allocatable · e623fed7
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48636, 49088, 49251, 49417, 49494)
      
      Fix issues for local storage allocatable feature
      
      This PR fixes the following issues:
      1. Use ResourceStorageScratch instead of ResourceStorage API to represent
      local storage capacity
      2. In eviction manager, use container manager instead of node provider
      (kubelet) to retrieve the node capacity and reserved resources. Node
      provider (kubelet) has a feature gate so that storagescratch information
      may not be exposed if feature gate is not set. On the other hand,
      container manager has all the capacity and allocatable resource
      information.
      
      This PR fixes issue #47809
      e623fed7
    • Kubernetes Submit Queue's avatar
      Merge pull request #48778 from juanvallejo/jvallejo/fix-jsonpath-negative-index-panic · dbcc199d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      stop jsonpath panicing on negative array length
      
      Related downstream issue: https://github.com/openshift/origin/issues/15075
      
      Returns error if provided jsonpath value results in a negative slice index after adding the length of the slice:
      
      ```go
      a := [0, 1, 2, 3]
      b := a[-1:] // 3
      c := a[-4:] // 0
      d := a[-5:] // out of range error
      e := a[4:]  // out of range error
      ```
      
      **Release note**:
      ```release-note
      NONE
      ```
      
      cc @fabianofranz
      dbcc199d
  2. 24 Jul, 2017 27 commits
  3. 23 Jul, 2017 2 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #48707 from danielfm/node-restriction-pod-eviction-subresource · 4d2a7212
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Allow nodes to create evictions for its own pods in NodeRestriction admission controller
      
      **What this PR does / why we need it**: This PR adds support for `pods/eviction` sub-resource to the NodeRestriction admission controller so it allows a node to evict pods bound to itself.
      
      **Which issue this PR fixes**: fixes #48666
      
      **Special notes for your reviewer**: The NodeRestriction already allows nodes to delete pods bound to itself, so allowing nodes to also delete pods via the Eviction API probably makes sense.
      
      ```release-note
      NodeRestriction allows a node to evict pods bound to itself
      ```
      4d2a7212
    • Clayton Coleman's avatar
      Use a client interface instead of a concrete type · b9bebe8a
      Clayton Coleman authored
      Aids testing
      b9bebe8a