1. 26 Oct, 2017 31 commits
  2. 25 Oct, 2017 9 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #54175 from tallclair/fluentd · 54295026
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 54336, 54470, 54334, 54175). 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>.
      
      Update fluentd-gcp DaemonSet
      
      - Use a dedicated service account to run the fluentd-gcp DS
      - Use the certificates in the prometheus-to-sd image rather than mounting the host certs
      
      This PR lets us create a more targeted PodSecurityPolicy for fluentd. (See https://github.com/kubernetes/kubernetes/pull/52367#discussion_r145433354)
      
      ```release-note
      - fluentd-gcp runs with a dedicated fluentd-gcp service account
      - Stop mounting the host certificates into fluentd's prometheus-to-sd container
      ```
      54295026
    • Kubernetes Submit Queue's avatar
      Merge pull request #54334 from andyzhangx/coreos-azure-fix · 59ad01f9
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 54336, 54470, 54334, 54175). 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 azure disk mount failure on coreos and some other distros
      
      **What this PR does / why we need it**:
      azure disk mount failure on coreos due to `/dev/disk/azure` not populated on coreos, and also on some other distros.
      After a long time back and forth discussion, I have decided to fix this issue on k8s side. Customers are leaving azure because of this udev issue, you could read details from #50150 . I have verifed the code works well on current coreos on azure.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: 
      fixes #50150: azure_dd: managed disks don't pass "FormatAndMount"
      In coreos on azure and some old distros, one udev rule is not applied, which means `/dev/disk/azure` not populated, while current disk detection code logic relies on `/dev/disk/azure`, so it would lead to azure disk mount failure, for more details, pls refer to #50150
      
      **Special notes for your reviewer**:
      In v1.6, there is no such issue becuase it's not using /dev/azure/disk to detect the LUN of new disk, so I refer the code logic of v1.6:
      https://github.com/kubernetes/kubernetes/blob/release-1.6/pkg/volume/azure_dd/vhd_util.go#L59-L66
      
      while from v1.7, it's using /dev/azure/disk, the code logic does not apply to distro which does not have udev rules(/dev/azure/disk), see:
      https://github.com/kubernetes/kubernetes/blob/release-1.7/pkg/volume/azure_dd/azure_common.go#L231-L236
      
      **Release note**:
      
      ```
      fix azure disk mount failure on coreos and some other distro due to udev rule not applied
      ```
      /sig azure
      @rootfs @brendanburns @colemickens 
      @tlyng @karataliu @szarkos
      59ad01f9
    • Kubernetes Submit Queue's avatar
      Merge pull request #54470 from frodenas/kubectl-policy-deps · 455256e2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 54336, 54470, 54334, 54175). 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>.
      
      Update kubectl drain command to use policy V1Beta1 instead of unversioned API
      
      **What this PR does / why we need it**:
      
      Removes kubectl dependency on `k8s.io/kubernetes/pkg/apis/policy` by switching to `k8s.io/api/policy/v1beta1`. Part of https://github.com/kubernetes/kubectl/issues/83.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes https://github.com/kubernetes/kubectl/issues/90
      
      **Special notes for your reviewer**:
      
      /cc @kubernetes/sig-cli-pr-reviews
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      455256e2
    • Kubernetes Submit Queue's avatar
      Merge pull request #54336 from marun/openapi-vendorable-build · 070cf3fe
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 54336, 54470, 54334, 54175). 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>.
      
      Update openapi bazel build to support vendored build
      
      This is one part (see #54335) of enabling vendoring projects like federation to generate openapi code for k8s.io/kubernetes.
      
      edit: These changes are necessary for a project to correctly generate ``vendor/k8s.io/kubernetes/pkg/generated/openapi/zz_generated.openapi.go`` for vendored ``k8s.io/kubernetes``.  Without the changes, the vendored output location for ``zz_generated.openapi.go`` would be ``k8s.io/kubernetes`` instead of ``vendor/k8s.io/kubernetes`` and the input files would similarly be from ``k8s.io/kubernetes`` instead of ``k8s.io/myproject``.
      
      /sig testing
      /release-note-none
      070cf3fe
    • Kubernetes Submit Queue's avatar
      Merge pull request #54019 from jiayingz/lifecycle · 7e31e70a
      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>.
      
      Move device plugin related code to pkg/kubelet/cm/deviceplugin/.
      
      **What this PR does / why we need it**:
      Move device plugin related code to pkg/kubelet/cm/deviceplugin/.
      Inspired by PR 53258 proposed by @dolftax. The code structure looks much cleaner this way and it also makes future code refactoring easier.
      While moving device_plugin_handler_test.go from pkg/kubelet/cm/ to pkg/kubelet/cm/deviceplugin/, we can no longer uses cm in its tests because that would cause a cycle dependency. To solve this problem, I moved the main cm GetResources functionality as well as part of the current device plugin handler Allocate functionality into a new device plugin handler function, GetDeviceRunContainerOptions(). This refactoring is also needed by another PR 51895 that moves device allocation into admission phase. Now device plugin handler Allocate() first checks whether there is cached device runtime state and only issues Allocate grpc call if there is no cached state available. The new GetDeviceRunContainerOptions() function simply returns device runtime config from the cached state. To support this change, extended the podDevices struct and checkpoint data structure with device runtime state.
      
      We expect to clean up device plugin interface in follow up PRs. Currently both device plugin handler interface and manager interface are public. This is no longer necessary after this PR given that their code now live in the same package. We should clean up unnecessary public interfaces and functions, and/or consider to merge handler and manager code into a single layer.
      
      **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**:
      Part of https://github.com/kubernetes/kubernetes/issues/53170 but not fixes it.
      
      **Release note**:
      
      ```release-note
      ```
      7e31e70a
    • Kubernetes Submit Queue's avatar
      Merge pull request #54582 from nikhita/sample-apiserver-docs · d274b67c
      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>.
      
      sample-apiserver: add docs
      
      For https://github.com/kubernetes/kubernetes/issues/54398.
      Counter-part PR: https://github.com/kubernetes/sample-apiserver/pull/17.
      
      **Release note**
      
      ```release-note
      NONE
      ```
      
      /assign @sttts
      d274b67c
    • Kubernetes Submit Queue's avatar
      Merge pull request #54341 from athampy/gh-54339 · 8f505e4c
      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>.
      
      Remove redundant call to StartLogging in service_controller. Fixes #5…
      
      …4339
      
      
      
      **What this PR does / why we need it**:
      Removes redundant call to StartLogging introduced in 96b48d43#diff-1f7f903e25ab8bcbc514bb1e532e997e
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      #54339 
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      ```
      8f505e4c
    • Tim Allclair's avatar
      Update fluentd-gcp DaemonSet · b18edfec
      Tim Allclair authored
      - Use a dedicated service account to run the fluentd-gcp DS
      - Update prometheus-to-sd from v0.1.3 to v0.2.1
      - Use the certificates in the prometheus-to-sd image rather than mounting the host certs
      b18edfec
    • Anthony Yeh's avatar
      Update CHANGELOG-1.6.md for v1.6.12. · 9f9a1cf3
      Anthony Yeh authored
      9f9a1cf3