1. 21 May, 2018 2 commits
  2. 20 May, 2018 4 commits
  3. 19 May, 2018 22 commits
  4. 18 May, 2018 12 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #63978 from kawych/master · 1e689a8b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 63969, 63902, 63689, 63973, 63978). 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>.
      
      Allow for system metrics discovery in Custom Metrics - Stackdriver Adapter test
      
      **What this PR does / why we need it**:
      Allow for system metrics discovery in Custom Metrics - Stackdriver Adapter test
      
      **Release note**:
      ```release-note
      NONE
      ```
      1e689a8b
    • Kubernetes Submit Queue's avatar
      Merge pull request #63973 from rosti/remove-internalclientset · b056924c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 63969, 63902, 63689, 63973, 63978). 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: Remove dependency on pkg/client/clientset_generated/internalclientset
      
      **What this PR does / why we need it**:
      This PR removes dependency in kubeadm on `pkg/client/clientset_generated/internalclientset` and blacklists it in `.import-restrictions`.
      The above package is pulled in transitively by the usage of the following:
      
      - [GetFlagString](https://github.com/kubernetes/kubernetes/blob/a481f4bbe828d7fdec95782c02df3743c1020820/cmd/kubeadm/app/cmd/version.go#L63) from `k8s.io/kubernetes/pkg/kubectl/cmd/util`
      
      - [LeaseEndpointReconcilerType](https://github.com/kubernetes/kubernetes/blob/a481f4bbe828d7fdec95782c02df3743c1020820/cmd/kubeadm/app/phases/controlplane/manifests.go#L205) from `k8s.io/kubernetes/pkg/master/reconcilers`
      
      Dropping the unneeded dependencies from the build shaves off 4-5MB from the amd64 executable and reduces the dependency hell in kubeadm.
      
      **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 kubernetes/kubeadm#806
      
      **Special notes for your reviewer**:
      /cc @kubernetes/sig-cluster-lifecycle-pr-reviews
      /area kubeadm
      /assign @luxas
      /assign @timothysc
      
      **Release note**:
      ```release-note
      NONE
      ```
      b056924c
    • Kubernetes Submit Queue's avatar
      Merge pull request #63689 from awly/gce-fix-kubelet-ca-path · bfca0d32
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 63969, 63902, 63689, 63973, 63978). 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>.
      
      Reuse existing CA cert path for kubelet certs
      
      **What this PR does / why we need it**: configure-helper.sh already knows the path to CA cert, re-use that to avoid typos.
      
      **Special notes for your reviewer**:
      
      **Release note**:
      ```release-note
      NONE
      ```
      bfca0d32
    • Kubernetes Submit Queue's avatar
      Merge pull request #63902 from vmware/vcp_secrets · 2d1f42e0
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 63969, 63902, 63689, 63973, 63978). 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>.
      
      Adds a mechanism in vSphere Cloud Provider to get credentials from Kubernetes secrets
      
      **What this PR does / why we need it**:
      Currently, vCenter credentials are stored in plain text in vsphere.conf. This PR adds a mechanism in vSphere Cloud Provider to get vCenter credentials from Kubernetes secrets.
      
      **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 #
      
      **Special notes for your reviewer**:
      Internally review here: https://github.com/vmware/kubernetes/pull/484
      **Workflow:**
      1. Create vsphere.conf file with ```secret-name``` and ```secret-namespace```.
      	```
      	[Global]
      	insecure-flag = 1
      	secret-name = "vcconf"
      	secret-namespace = "kube-system"
      
      	[VirtualCenter "10.160.45.119"]
      	port = 443
      	datacenters = k8s-dc-1
      
      	[Workspace]
      	server = 10.160.45.119
      	datacenter = k8s-dc-1
      	default-datastore = sharedVMFS-0
      	folder = Discovered virtual machine
      	```
      2. Launch Kubernetes cluster with vSphere Cloud Provider Configured.
      3. Create secret with vCenter credentials.
      	a. Create base64 encoding for username and password:
      	username:
      	```	
      		> echo -n 'admin' | base64
      		YWRtaW4= 
      	```
      	password:
      	```
      		> echo -n 'vsphere' | base64
      		dnNwaGVyZQ==
      	```
      
      	b. kubectl create -f vccredentials.yaml
      	```
      		#vccredentials.yaml
      		apiVersion: v1
      		kind: Secret
      		metadata:
      			name: vcconf
      		type: Opaque
      		data:
      			10.192.44.199.username: YWRtaW4=
      			10.192.44.199.password: dnNwaGVyZQ==
      	```
      4. vSphere Cloud Provider can be used now.
      
      **Note:**
      Secrets info can be provided with both (old and new) vSphere Cloud provider configuration formats.
      
      
      **Tests Done:**
      - [x] vSphere Cloud Provider unit test.
      - [x] Volume lifecyle with Username and Password in vsphere.conf (for backward compability)
      - [x] Volume lifecyle with secrets information in vsphere.conf.
      - [x] Update secrets workflow
      
      **Release note**:
      
      ```release-note
      Adds a mechanism in vSphere Cloud Provider to get credentials from Kubernetes secrets
      ```
      2d1f42e0
    • Kubernetes Submit Queue's avatar
      Merge pull request #63969 from luxas/kubeadm_config_print_defaults · d1598579
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 63969, 63902, 63689, 63973, 63978). 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>.
      
      Add a 'kubeadm config print-default' command
      
      **What this PR does / why we need it**:
      Improves the UX around creating config files.
      
      **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 https://github.com/kubernetes/kubeadm/issues/829
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      kubeadm: A `kubeadm config print-default` command has now been added that you can use as a starting point when writing your own kubeadm configuration files
      ```
      @kubernetes/sig-cluster-lifecycle-pr-reviews @liztio
      d1598579
    • Mikhail Mazurskiy's avatar
      Use Dial with context · 5e8e570d
      Mikhail Mazurskiy authored
      5e8e570d
    • juanvallejo's avatar
      sort on non-tabular output · c87cd9c0
      juanvallejo authored
      c87cd9c0
    • Kubernetes Submit Queue's avatar
      Merge pull request #63989 from MrHohn/gce-security-policy · 77a08ee2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 63569, 63918, 63980, 63295, 63989). 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 provider: add wrapper for security policy
      
      **What this PR does / why we need it**:
      Generated mock interface for beta backend service and security policy as well.
      
      **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**:
      /assign @nicksardo   
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      77a08ee2
    • Kubernetes Submit Queue's avatar
      Merge pull request #63295 from jsafrane/fix-csi-detach-delete · 7da05eb8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 63569, 63918, 63980, 63295, 63989). 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>.
      
      Fixed CSI volume detach when the volume is already detached.
      
      **What this PR does / why we need it**:
      "VolumeAttachment NotFound" error should be treated as successful detach.
      
      /sig storage
      /assign @vladimirvivien @saad-ali
      
      **Special notes for your reviewer**:
      Note that the PR changes just 4 lines in attachment code, the rest is unit test refactoring to inject fake errors.
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      7da05eb8
    • Kubernetes Submit Queue's avatar
      Merge pull request #63980 from detiber/externalEtcdFixes · 53fd0b41
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 63569, 63918, 63980, 63295, 63989). 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 - fix upgrades with static pod etcd
      
      **What this PR does / why we need it**:
      
      This PR fixes a regression introduced by https://github.com/kubernetes/kubernetes/pull/63495 which broke kubeadm upgrades for installations using a static pod etcd.
      
      **Release note**:
      ```release-note
      NONE
      ```
      53fd0b41
    • Kubernetes Submit Queue's avatar
      Merge pull request #63918 from cezarygerard/sd-event-exporter · f105ae3e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 63569, 63918, 63980, 63295, 63989). 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>.
      
      New event exporter config with support for new stackdriver resources
      
      New event exporter, with support for use new and old stackdriver resource model.
      
      This should also be cherry-picked to release-1.10 branch, as all  fluentd-gcp components support new and stackdriver resource model.
      
      ```release-note
      Update event-exporter to version v0.2.0  that supports old (gke_container/gce_instance) and new (k8s_container/k8s_node/k8s_pod) stackdriver resources.
      ```
      f105ae3e
    • Kubernetes Submit Queue's avatar
      Merge pull request #63569 from hanxiaoshuai/bugfix0509 · 08a094ca
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 63569, 63918, 63980, 63295, 63989). 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 a small mistake in function getFieldMeta
      
      **What this PR does / why we need it**:
      fix a small mistake in function getFieldMeta
      **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 #
      
      **Special notes for your reviewer**:
      ```
      if e, found := ext["x-kubernetes-patch-strategy"]; found {
      	strategy, ok := e.(string)
      	if !ok {
      		return apply.FieldMetaImpl{}, fmt.Errorf("Expected string for x-kubernetes-patch-strategy by got %T", s)
      	}
      }
      ```
      According the judgment above, I think we should print the type of e.
      **Release note**:
      
      ```release-note
      NONE
      ```
      08a094ca