1. 06 Sep, 2018 9 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #68233 from luxas/ccm_cleanup · c3062bae
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 68171, 67945, 68233). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.
      
      Move the CloudControllerManagerConfiguration to an API group in `cmd/`
      
      **What this PR does / why we need it**:
      This PR is the last piece of https://github.com/kubernetes/kubernetes/issues/67233.
      It moves the `CloudControllerManagerConfiguration` to its own `cloudcontrollermanager.config.k8s.io` config API group, but unlike the other components this API group is "private" (only available in `k8s.io/kubernetes`, which limits consumer base), as it's located entirely in `cmd/` vs a staging repo.
      This decision was made for now as we're not sure what the story for the ccm loading ComponentConfig files is, and probably a "real" file-loading ccm will never exist in core, only helper libraries. Eventually the ccm will only be a library in any case, and implementors will/can use the base types the ccm library API group provides. It's probably good to note that there is no practical implication of this change as the ccm **cannot** read ComponentConfig files. Hencec the code move isn't user-facing.
      
      With this change, we're able to remove `pkg/apis/componentconfig`, as this was the last consumer. That is hence done in this PR as well (so the move is easily visible in git, vs first one "big add" then a "big remove"). The only piece of code that was used was the flag helper structs, so I moved them to `pkg/util/flag` that I think makes sense for now.
      
      **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
      ref: kubernetes/community#2354
      
      **Special notes for your reviewer**:
      
      This PR builds on top of (first two commits, marked as `Co-authored by: @stewart-yu`) https://github.com/kubernetes/kubernetes/pull/67689
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      /assign @liggitt @sttts @thockin @stewart-yu
      c3062bae
    • Kubernetes Submit Queue's avatar
      Merge pull request #67945 from jsafrane/csi-workload-csidriver3-saad · 7b756e68
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 68171, 67945, 68233). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.
      
      CSI pod information in NodePublish
      
      **What this PR does / why we need it**:
      This is implementation of https://github.com/kubernetes/community/pull/2439. It brings CSI closer to Flex volume features, CSI driver can (optionally) get name/namespace/UID/ServiceAccount of the pod that requires the CSI volume mounted. This allows CSI drivers to either do AAA before the volume is mounted or tailor content of  volume to the pod.
      
      Work in progress:
        * contains #67803 to get `CSIDriver` API. Ignore the first commit.
      
      Related to #64984 #66362 (fixes only part of these issues)
      
      /sig storage
      
      cc: @saad-ali @vladimirvivien @verult @msau42 @gnufied 
      
      **Release note**:
      
      ```release-note
      CSI NodePublish call can optionally contain information about the pod that requested the CSI volume.
      ```
      7b756e68
    • Kubernetes Submit Queue's avatar
      Merge pull request #68171 from dixudx/fix_e2e_limitrange_update · 2d7b4b04
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 68171, 67945, 68233). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.
      
      [e2e] verifying LimitRange update is effective before creating new pod
      
      **What this PR does / why we need it**:
      Refer to the flaky test mentioned in #68170, LimitRange updating should be verified before creating new pod.
      
      **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 #68170
      
      **Special notes for your reviewer**:
      /cc bsalamat k82cn 
      /sig scheduling
      
      **Release note**:
      
      ```release-note
      [e2e] verifying LimitRange update is effective before creating new pod
      ```
      2d7b4b04
    • Jan Safranek's avatar
      Add unit tests for pod information in NodePublish · 32ae639e
      Jan Safranek authored
      Some refactoring of CSI tests was necessary.
      32ae639e
    • Jan Safranek's avatar
      a30fc9ca
    • Jan Safranek's avatar
      Add new RBAC rules for CSIDriver · dc6be0cb
      Jan Safranek authored
      Nodes need to watch CSIDrivers to know if they should send pod information
      in NodePublish.
      dc6be0cb
    • Jan Safranek's avatar
      db94508a
    • Jan Safranek's avatar
      e26809a4
    • Kubernetes Submit Queue's avatar
      Merge pull request #67139 from NetApp/dev-random-fix-67091 · a5550441
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.
      
      Fix an issue about generation of secret key with invalid key size in gce
      
      Replace /dev/random to /dev/urandom to avoid generation of secret key with invalid key size.
      
      
      
      **What this PR does / why we need it**:
      In GCE env, AESGCM encryption of secrets by default generates a secret key with /dev/random which sometime generates a key with invalid size.
      This cause the cluster/kube-up.sh to fail in gce environment.
      
      This PR replaces /dev/random with  /dev/urandom to have a secret key generated consistently with right size.
      
      **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 #67091
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      cluster/gce: generate consistent key sizes in config-default.sh using /dev/urandom instead of /dev/random  
      ```
      a5550441
  2. 05 Sep, 2018 31 commits