1. 13 Feb, 2018 1 commit
  2. 30 Jan, 2018 33 commits
  3. 29 Jan, 2018 6 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #58775 from freehan/url-parse-fix · 29ca36f0
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 58777, 58978, 58977, 58775). 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 url parsing for staging/dev endpoint
      
      ```release-note
      NONE
      ```
      29ca36f0
    • Kubernetes Submit Queue's avatar
      Merge pull request #58977 from Random-Liu/fix-pod-sandbox-privilege · b058b299
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 58777, 58978, 58977, 58775). 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 pod sandbox privilege.
      
      Fixes https://github.com/kubernetes/kubernetes/issues/58979.
      
      In cri-containerd, we start enforcing that a privileged container can't be created in privileged sandbox in https://github.com/containerd/cri-containerd/pull/577.
      
      However, after that the e2e-gci-device-plugin-gpu test starts failing. https://k8s-testgrid.appspot.com/sig-node-containerd#e2e-gci-device-plugin-gpu
      ```
      I0128 06:49:09.117] Jan 28 06:49:09.086: INFO: At 2018-01-28 06:41:10 +0000 UTC - event for nvidia-driver-installer-5kkrz: {kubelet bootstrap-e2e-minion-group-7s2v} Failed: (combined from similar events): Error: failed to generate container "cfb9f4f01fc2685db6469d3f6348077b94d4aa577e2e6345bf890f8871ec80dd" spec: no privileged container allowed in sandbox
      ```
      
      The reason is that kubelet doesn't check init container when setting sandbox privilege.
      Signed-off-by: 's avatarLantao Liu <lantaol@google.com>
      
      **Release note**:
      
      ```release-note
      none.
      ```
      @kubernetes/sig-node-bugs @yujuhong @feiskyer @mrunalp
      b058b299
    • Kubernetes Submit Queue's avatar
      Merge pull request #58978 from mtaufen/kc-kubeletconfigfile-step3 · f04c7624
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 58777, 58978, 58977, 58775). 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>.
      
      Removal of KubeletConfigFile feature gate: Step 3 (final)
      
      This PR completes the work started in
      https://github.com/kubernetes/kubernetes/pull/58760
      by completely removing the KubeletConfigFile feature gate.
      
      We stopped setting the gate in test-infra in
      https://github.com/kubernetes/test-infra/pull/6490.
      
      ```release-note
      The alpha KubeletConfigFile feature gate has been removed, because it was redundant with the Kubelet's --config flag. It is no longer necessary to set this gate to use the flag. The --config flag is still considered alpha.
      ```
      f04c7624
    • Kubernetes Submit Queue's avatar
      Merge pull request #58777 from filbranden/nnp1 · 85e435d3
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 58777, 58978, 58977, 58775). 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 NoNewPrivileges test when SELinux is enabled
      
      **What this PR does / why we need it**:
      
      A bug in the SELinux policy prevented NoNewPrivileges from working on Docker with SELinux support enabled.
      
      The problem has been fixed upstream (see projectatomic/container-selinux#45)
      
      But hasn't been backported yet (a fix might come in RHEL 7.5)
      
      For now, let's skip the NoNewPrivileges test when SELinux support is enabled in Docker.
      
      Tested:
      
      - Before this commit, the test fails:
      ```
          $ make test-e2e-node REMOTE=true FOCUS="allow privilege escalation"
          (on a host with SELinux enabled)
      
          • [SLOW TEST:22.798 seconds] (passed)
          [k8s.io] Security Context
            when creating containers with AllowPrivilegeEscalation
              should allow privilege escalation when true
      
          • Failure [16.539 seconds]
          [k8s.io] Security Context
            when creating containers with AllowPrivilegeEscalation
              should not allow privilege escalation when false [It]
      
              wait for pod "alpine-nnp-false-aef03e47-0090-11e8-886f-42010af00009" to success
              Expected success, but got an error:
                  <*errors.errorString | 0xc4204e26d0>: {
                      s: "pod \"alpine-nnp-false-aef03e47-0090-11e8-886f-42010af00009\" failed with reason: \"\", message: \"\"",
                  }
                  pod "alpine-nnp-false-aef03e47-0090-11e8-886f-42010af00009" failed with reason: "", message: ""
      
          • [SLOW TEST:26.572 seconds] (passed)
          [k8s.io] Security Context
            when creating containers with AllowPrivilegeEscalation
              should allow privilege escalation when not explicitly set and uid != 0
      
          Ran 3 of 257 Specs in 45.364 seconds
          FAIL! -- 2 Passed | 1 Failed | 0 Pending | 254 Skipped
      
          Ginkgo ran 1 suite in 49.389123442s
          Test Suite Failed
      ```
      - After this commit, the test is skipped:
      ```
          $ make test-e2e-node REMOTE=true FOCUS="allow privilege escalation"
          (on a host with SELinux enabled)
      
          S [SKIPPING] in Spec Setup (BeforeEach) [12.452 seconds]
          S [SKIPPING] in Spec Setup (BeforeEach) [16.298 seconds]
          S [SKIPPING] in Spec Setup (BeforeEach) [18.183 seconds]
      
          Ran 0 of 257 Specs in 39.174 seconds
          SUCCESS! -- 0 Passed | 0 Failed | 0 Pending | 257 Skipped
      
          Ginkgo ran 1 suite in 43.570630357s
          Test Suite Passed
      ```
      - No changes when SELinux is disabled:
      ```
          $ make test-e2e-node REMOTE=true FOCUS="allow privilege escalation"
          (on a host with SELinux disabled)
      
          • [SLOW TEST:15.013 seconds]
          [k8s.io] Security Context
            when creating containers with AllowPrivilegeEscalation
              should not allow privilege escalation when false
      
          • [SLOW TEST:19.155 seconds]
          [k8s.io] Security Context
            when creating containers with AllowPrivilegeEscalation
              should allow privilege escalation when true
      
          • [SLOW TEST:21.087 seconds]
          [k8s.io] Security Context
            when creating containers with AllowPrivilegeEscalation
              should allow privilege escalation when not explicitly set and uid != 0
      
          Ran 3 of 259 Specs in 38.560 seconds
          SUCCESS! -- 3 Passed | 0 Failed | 0 Pending | 256 Skipped
      
          Ginkgo ran 1 suite in 41.937918928s
          Test Suite Passed
      ```
      
      
      
      
      **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
      N/A
      
      **Special notes for your reviewer**:
      N/A
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      85e435d3
    • Yu-Ju Hong's avatar
      CRI: Add a call to reopen log file for a container · 57d8b64d
      Yu-Ju Hong authored
      This allows a daemon external to the container runtime to rotate the log
      file, and then ask the runtime to reopen the files.
      57d8b64d
    • Kubernetes Submit Queue's avatar
      Merge pull request #58298 from p0lyn0mial/generic_scaler_scalerfor_continued · 235714e7
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 58955, 58968, 58971, 58963, 58298). 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>.
      
      removes the remainder from ScalerFor method
      
      **What this PR does / why we need it**:
      this PR removes existing scalers from `ScalerFor` method
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      235714e7