1. 04 Jul, 2018 2 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #64896 from rphillips/fixes/kubectl_eviction · e3fa9133
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 65776, 64896). 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>.
      
      kubectl: wait for all errors and successes on podEviction
      
      **What this PR does / why we need it**: This fixes `kubectl drain` to wait until all errors and successes are processed, instead of returning the first error. It also tweaks the behavior of the cleanup to check to see if the pod is already terminating, and if it is to not reissue the pod terminate which leads to an error getting thrown. This fix will allow `kubectl drain` to complete successfully when a node is draining.
      
      **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**:
      /cc @sjenning 
      
      **Release note**:
      ```release-note
      NONE
      ```
      #### Reproduction steps
      ### sleep.yml
      ```yaml
      apiVersion: v1
      kind: Pod
      metadata:
        name: bash
      spec: 
        containers:
        - name: bash
          image: bash
          resources:
            limits:
              cpu: 500m
              memory: 500Mi
          command:
          - bash
          - -c
          - "nothing() { sleep 1; } ; trap nothing 15 ; while true; do echo \"hello\"; sleep 10; done"
        terminationGracePeriodSeconds: 3000
        restartPolicy: Never
      ```
      
      ```
      $ kubectl create ns testing
      $ kubectl create -f sleep.yml
      $ kubectl delete ns testing
      $ kubectl drain 127.0.0.1 --force
      ```
      e3fa9133
    • Kubernetes Submit Queue's avatar
      Merge pull request #65776 from luxas/kubeadm_stop_using_v1alpha1 · 28768f1d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 65776, 64896). 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: Stop using/supporting the v1alpha1 Config API
      
      **What this PR does / why we need it**:
      In v1.10 and earlier, kubeadm only had the v1alpha1 API.
      In v1.11, kubeadm could read v1alpha1 configs, but only write v1alpha2 configs
      In v1.12, kubeadm can read v1alpha2 configs, but only write v1alpha3 or v1beta1 configs.
      
      **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
      Part of https://github.com/kubernetes/kubernetes/pull/65628
      ref: kubernetes/kubeadm#911
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      @kubernetes/sig-cluster-lifecycle-pr-reviews 
      /assign @timothysc
      28768f1d
  2. 03 Jul, 2018 38 commits