1. 20 Jan, 2018 7 commits
    • Bowei Du's avatar
      Add logging in all generated GCE calls · 3ea2f3e9
      Bowei Du authored
      3ea2f3e9
    • Kubernetes Submit Queue's avatar
      Merge pull request #58535 from bowei/check-key · 3b391c87
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 53895, 58013, 58466, 58531, 58535). 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>.
      
      GCE: check key is valid when calling the API
      
      GCE: check key is valid when calling the API
      
      ```release-note
      NONE
      ```
      3b391c87
    • Kubernetes Submit Queue's avatar
      Merge pull request #58531 from liggitt/rbac-reason · c1d8f71a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 53895, 58013, 58466, 58531, 58535). 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>.
      
      return reason for allowed rbac authorizations
      
      includes the binding, role, and subject that allowed a request so audit can make use of it
      
      xref #56209 #58083 
      
      ### example reasons
      
      > allowed by ClusterRoleBinding "system:controller:cronjob-controller" of ClusterRole "system:controller:cronjob-controller" to ServiceAccount "cronjob-controller/kube-system"
      
      > allowed by RoleBinding "bob-viewer/default" of ClusterRole "view" to User "bob"
      
      ### perf impact
      ```shell
      go test ./plugin/pkg/auth/authorizer/rbac/ -run foo -bench . -benchmem
      ```
      on master:
      ```
      BenchmarkAuthorize/allow_list_pods-8         	  500000	      2674 ns/op	    1632 B/op	      27 allocs/op
      BenchmarkAuthorize/allow_update_pods/status-8         	  500000	      2858 ns/op	    1632 B/op	      27 allocs/op
      BenchmarkAuthorize/forbid_educate_dolphins-8          	  500000	      2654 ns/op	    1632 B/op	      27 allocs/op
      ```
      
      with this PR:
      ```
      BenchmarkAuthorize/allow_list_pods-8         	  500000	      2697 ns/op	    1664 B/op	      28 allocs/op
      BenchmarkAuthorize/allow_update_pods/status-8         	  500000	      2873 ns/op	    1680 B/op	      29 allocs/op
      BenchmarkAuthorize/forbid_educate_dolphins-8          	  500000	      2687 ns/op	    1664 B/op	      28 allocs/op
      ```
      
      
      ```release-note
      NONE
      ```
      c1d8f71a
    • Kubernetes Submit Queue's avatar
      Merge pull request #58466 from juanvallejo/jvallejo/update-openapi-ext-gvk-parsing · 0a427a99
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 53895, 58013, 58466, 58531, 58535). 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>.
      
      tolerate more than one gvklist item
      
      Some third-party resources could be part of more than one api group.
      Allow this to be the case when adding openapi models to openapi data,
      and default to the first item as the gvk key for that model.
      
      Related downstream issue: https://github.com/openshift/origin/issues/17872
      
      **Release note**:
      ```release-note
      NONE
      ```
      cc @deads2k @soltysh
      0a427a99
    • Kubernetes Submit Queue's avatar
      Merge pull request #58013 from MrHohn/kube-dns-kubeadm-1.14.8 · bd1738ac
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 53895, 58013, 58466, 58531, 58535). 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>.
      
      [kubeadm] Bump kube-dns to 1.14.8
      
      **What this PR does / why we need it**:
      Bump kube-dns to 1.14.8 for kubeadm. Ref https://github.com/kubernetes/kubernetes/pull/57918.
      
      cc @rramkumar1 
      
      **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 #NONE
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      bd1738ac
    • Kubernetes Submit Queue's avatar
      Merge pull request #53895 from kad/kubeadm-proxy-transports · 4b41a54e
      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>.
      
      kubeadm: Utilize transport defaults from API machinery for http calls inside kubeadm
      
      **What this PR does / why we need it**:
      Default Go HTTP transport does not allow to use CIDR notations in
      NO_PROXY variables, thus for certain HTTP calls that is done inside
      kubeadm user needs to put explicitly multiple IP addresses. For most of
      calls done via API machinery it is get solved by setting different Proxy
      resolver. This patch allows to use CIDR notations in NO_PROXY variables
      for currently all other HTTP calls that is made inside kubeadm.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes kubernetes/kubeadm#324
      
      **Special notes for your reviewer**:
      Based on discussion in #52788, replacing this patch replacing all calls inside kubeadm that are done via DefaultTransport to explicitly defined and initialized with API machinery defaults Transport and http client.
      
      **Release note**:
      ```release-note
      - kubeadm now supports CIDR notations in NO_PROXY environment variable
      ```
      4b41a54e
    • Kubernetes Submit Queue's avatar
      Merge pull request #58080 from simonferquel/kubeadm-extra-flags · 7fb295e0
      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>.
      
      kubeadm: Allows to specify custom flag values for control plane components
      
      This makes it possible to override / add flag values to the k8s api server, controller manager and scheduler components on `kubeadm init` and `kubeadm alpha controlplane <component>`
      
      **What this PR does / why we need it**:
      This PR makes kubeadm a little more flexible by allowing to specify flag values (or override kubeadm defaults) for the control plane components.
      One good example is to deploy Kubernetes with a different admission-control flag on API server
      
      **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 #58072
      
      **Special notes for your reviewer**:
      Not sure about what should be fixed. The PR merely adds flags to the CLI exposing existing functionality (which I suppose is already tested)
      
      **Release note**:
      ```release-note
      kubeadm now accept `--apiserver-extra-args`, `--controller-manager-extra-args` and `--scheduler-extra-args` to override / specify additional flags for control plane components
      ```
      7fb295e0
  2. 19 Jan, 2018 33 commits