1. 01 Oct, 2017 2 commits
  2. 30 Sep, 2017 13 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #50743 from guangxuli/migrate_e2e_ui_test · 76564360
      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>.
      
      Migrate sig-ui e2e test
      
      **What this PR does / why we need it**:
      Migrate sig-ui e2e tests
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      
      Ref Umbrella issue #49161
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      none
      76564360
    • Kubernetes Submit Queue's avatar
      Merge pull request #53239 from enj/enj/i/role_binding_api_group/16611 · 72d97746
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 51034, 53239). 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>.
      
      Correct APIGroup for RoleBindingBuilder Subjects
      
      This change corrects `RoleBindingBuilder` to use the RBAC API group with users and groups as subjects (service accounts use the empty string since they are in the legacy core group).  This is based on the defaulting in `pkg/apis/rbac/v1/defaults.go#SetDefaults_Subject`.  This is required because the bootstrap RBAC data is built with these helpers and does not go through defaulting, whereas the data retrieved from the server has already gone through defaulting.  This can lead to the reconciliation code incorrectly adding duplicate subjects because it believes that they are missing (since the API groups do not match).
      Signed-off-by: 's avatarMonis Khan <mkhan@redhat.com>
      
      ```release-note
      Fixes an issue with RBAC reconciliation that could cause duplicated subjects in some bootstrapped rolebindings on each restart of the API server.
      ```
      
      /assign @liggitt
      /sig auth
      
      Fixes #53296
      Fixes openshift/origin/issues/16611
      72d97746
    • Kubernetes Submit Queue's avatar
      Merge pull request #51034 from wlan0/master · 6cc1816c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 51034, 53239). 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 conditional for warning while starting KCM without secret file
      
      @liggitt @spiffxp @lavalamp 
      
      Fixes #53291
      
      A small bug was introduced in this PR - https://github.com/kubernetes/kubernetes/pull/50288, where the warning message is printed when the file is specified, and it is not printed if it is left blank - exactly the opposite of the intended behavior. 
      
      This fixes that.
      
      ```
      release-note-none
      ```
      6cc1816c
    • Monis Khan's avatar
      Correct APIGroup for RoleBindingBuilder Subjects · 5eb5b3e4
      Monis Khan authored
      This change corrects RoleBindingBuilder to use the RBAC API group
      with users and groups as subjects (service accounts use the empty
      string since they are in the legacy core group).  This is based on
      the defaulting in pkg/apis/rbac/v1/defaults.go#SetDefaults_Subject.
      This is required because the bootstrap RBAC data is built with these
      helpers and does not go through defaulting, whereas the data
      retrieved from the server has already gone through defaulting.  This
      can lead to the reconciliation code incorrectly adding duplicate
      subjects because it believes that they are missing (since the API
      groups do not match).
      Signed-off-by: 's avatarMonis Khan <mkhan@redhat.com>
      5eb5b3e4
    • Kubernetes Submit Queue's avatar
      Merge pull request #51766 from thockin/godep-scripts-cleanup · d2bbeb66
      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>.
      
      Godep scripts cleanup
      
      Another try at sanitizing godep scripts.  Instead of messing with containers, or assuming anything about GOPATHs, let's just work with whatever GOPATH we are given.  If you want sane godep/restore behavior you can use `./hack/run-in-gopath.sh ./hack/godep-restore.sh`.  This will restore into your _output dir.  You can update deps yourself, and then run `./hack/run-in-gopath.sh ./hack/godep-save.sh`.
      
      xref  #44873
      
      This also checks out godep into your working GOPATH.  Without this, we have to `go get` it every time.  We should just vendor it.
      d2bbeb66
    • Kubernetes Submit Queue's avatar
      Merge pull request #53229 from pipejakob/kubeadm-upgrade-grammar · 628df56b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49705, 53229). 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 kubeadm upgrade grammar.
      
      **What this PR does / why we need it**:
      I noticed an erroneous word in the output from the kubeadm upgrade docs. This error message currently reads:
      
      "Note: Before you **do** can perform this upgrade, you have to update kubeadm to..."
      
      
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      
      CC @kubernetes/sig-cluster-lifecycle-pr-reviews
      628df56b
    • Kubernetes Submit Queue's avatar
      Merge pull request #49705 from atlassian/rbuf · bb035a28
      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>.
      
      Ring buffer for shared informer notifications
      
      **What this PR does / why we need it**:
      Improves memory allocation for shared informer listeners. Instead of always appending to the slice use as a ring buffer, avoiding reslice operations as long as there is room in the slice. See https://github.com/kubernetes/kubernetes/pull/47045#issuecomment-317621259 for details. This is a follow up PR for #47045.
      
      Results from BenchmarkListener:
      ```
      Current code (from the #47045):
      1000000	      1540 ns/op	     109 B/op	       1 allocs/op
      ```
      ```
      New code:
      1000000	      1162 ns/op	      16 B/op	       1 allocs/op
      ```
      
      **Special notes for your reviewer**:
      Only review the last commit, this branch is based on #47045 PR. I'll rebase onto master once it is merged.
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      /kind enhancement
      /sig api-machinery
      /cc @deads2k @ncdc
      bb035a28
    • Kubernetes Submit Queue's avatar
      Merge pull request #53266 from mikedanese/compute-rw · e3dc09d9
      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>.
      
      gce: remove compute-rw, see what breaks
      
      Fixes https://github.com/kubernetes/kubernetes/issues/8074
      
      **Release note**:
      ```release-note
      ```
      e3dc09d9
    • Kubernetes Submit Queue's avatar
      Merge pull request #53107 from Random-Liu/fix-cri-stats · 68d2722b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 53234, 53252, 53267, 53276, 53107). 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 imagefs stats
      
      Without this CRI stats based summary api won't work:
      ```console
      $ curl localhost:10255/stats/summary
      Internal Error: failed to get root cgroup stats: failed to get imageFs info: no imagefs label for configured runtime
      ```
      With this PR, we could get summary api from cri-containerd now:
      ```console
      $ curl localhost:10255/stats/summary
      {
        "node": {
         "nodeName": "127.0.0.1",
         "startTime": "2017-09-23T06:26:49Z",
         "cpu": {
          "time": "2017-09-27T05:12:08Z",
          "usageNanoCores": 275510572,
          "usageCoreNanoSeconds": 11924595625329
         },
         "memory": {
          "time": "2017-09-27T05:12:08Z",
          "availableBytes": 27737075712,
          "usageBytes": 6028234752,
          "workingSetBytes": 3884470272,
          "rssBytes": 652304384,
          "pageFaults": 98472,
          "majorPageFaults": 87
         },
         "fs": {
          "time": "2017-09-27T05:12:08Z",
          "availableBytes": 75281231872,
          "capacityBytes": 104022159360,
          "usedBytes": 28724150272,
          "inodesFree": 12003204,
          "inodes": 12800000,
          "inodesUsed": 796796
         },
         "runtime": {
          "imageFs": {
           "time": "2017-09-27T05:12:00Z",
           "availableBytes": 75281231872,
           "capacityBytes": 104022159360,
           "usedBytes": 247732356,
           "inodesFree": 12003204,
           "inodes": 12800000,
           "inodesUsed": 6103
          }
         }
        },
        "pods": [
         {
          "podRef": {
           "name": "kube-dns-7797cb8758-qxkrz",
           "namespace": "kube-system",
           "uid": "4425b069-a342-11e7-ac90-42010af00002"
          },
          "startTime": "2017-09-27T05:11:23Z",
          "containers": [
           {
            "name": "kubedns",
            "startTime": "2017-09-27T05:11:24Z",
            "cpu": {
             "time": "1970-01-01T00:00:01Z",
             "usageCoreNanoSeconds": 154194917
            },
            "memory": {
             "time": "1970-01-01T00:00:01Z",
             "workingSetBytes": 7643136
            },
            "rootfs": {
             "time": "2017-09-27T05:12:00Z",
             "availableBytes": 75281231872,
             "capacityBytes": 104022159360,
             "usedBytes": 9,
             "inodesFree": 12003204,
             "inodes": 12800000,
             "inodesUsed": 32768
            },
            "logs": {
             "time": "2017-09-27T05:12:08Z",
             "availableBytes": 75281231872,
             "capacityBytes": 104022159360,
             "inodesFree": 12003204,
             "inodes": 12800000
            },
            "userDefinedMetrics": null
           },
           {
            "name": "dnsmasq",
            "startTime": "2017-09-27T05:11:24Z",
            "cpu": {
             "time": "1970-01-01T00:00:01Z",
             "usageCoreNanoSeconds": 114482989
            },
            "memory": {
             "time": "1970-01-01T00:00:01Z",
             "workingSetBytes": 7966720
            },
            "rootfs": {
             "time": "2017-09-27T05:12:00Z",
             "availableBytes": 75281231872,
             "capacityBytes": 104022159360,
             "usedBytes": 9,
             "inodesFree": 12003204,
             "inodes": 12800000,
             "inodesUsed": 28675
            },
            "logs": {
             "time": "2017-09-27T05:12:08Z",
             "availableBytes": 75281231872,
             "capacityBytes": 104022159360,
             "inodesFree": 12003204,
             "inodes": 12800000
            },
            "userDefinedMetrics": null
           },
           {
            "name": "sidecar",
            "startTime": "2017-09-27T05:11:24Z",
            "cpu": {
             "time": "1970-01-01T00:00:01Z",
             "usageCoreNanoSeconds": 140797580
            },
            "memory": {
             "time": "1970-01-01T00:00:01Z",
             "workingSetBytes": 7430144
            },
            "rootfs": {
             "time": "2017-09-27T05:12:00Z",
             "availableBytes": 75281231872,
             "capacityBytes": 104022159360,
             "usedBytes": 8,
             "inodesFree": 12003204,
             "inodes": 12800000,
             "inodesUsed": 28672
            },
            "logs": {
             "time": "2017-09-27T05:12:08Z",
             "availableBytes": 75281231872,
             "capacityBytes": 104022159360,
             "inodesFree": 12003204,
             "inodes": 12800000
            },
            "userDefinedMetrics": null
           }
          ],
          "volume": [
           {
            "time": "2017-09-27T05:12:03Z",
            "availableBytes": 15810760704,
            "capacityBytes": 15810772992,
            "usedBytes": 12288,
            "inodesFree": 3860043,
            "inodes": 3860052,
            "inodesUsed": 9,
            "name": "kube-dns-token-l2blr"
           }
          ]
         }
        ]
       }
      ```
      Signed-off-by: 's avatarLantao Liu <lantaol@google.com>
      
      ```release-note
      Fix the bug that query Kubelet's stats summary with CRI stats enabled results in error.
      ```
      68d2722b
    • Kubernetes Submit Queue's avatar
      Merge pull request #53276 from freehan/alpha-backendservice · 0ca0d76d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 53234, 53252, 53267, 53276, 53107). 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 get alpha backend service into cloud provider
      
      ```release-note
      NONE
      ```
      0ca0d76d
    • Kubernetes Submit Queue's avatar
      Merge pull request #53267 from dashpole/fix_eviction · 471d0bb7
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 53234, 53252, 53267, 53276, 53107). 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>.
      
      Prepull images after disk eviction tests
      
      Example failure: https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-node-kubelet-flaky/2855
      
      Disk eviction tests trigger image garbage collection.  It can remove images required for subsequent tests.
      
      This results in the error during pod creation:
      `timed out waiting for the condition`
      
      You can see in the events after the test:
      `I0929 15:47:05.884] I0929 15:17:09.376591    2309 util.go:4734] Event(v1.ObjectReference{Kind:"Pod", Namespace:"e2e-tests-localstorage-eviction-test-mn5v4", Name:"container-disk-hog-pod", UID:"8dba851c-a528-11e7-a9a6-42010a800fd7", APIVersion:"v1", ResourceVersion:"116", FieldPath:"spec.containers{container-disk-hog-container}"}): type: 'Warning' reason: 'ErrImageNeverPull' Container image "busybox" is not present with pull policy of Never`
      
      /assign @Random-Liu
      471d0bb7
    • Kubernetes Submit Queue's avatar
      Merge pull request #53252 from kad/kubeadm-cert-rotate-master · b32d982a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 53234, 53252, 53267, 53276, 53107). 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: Let kubelets in the cluster rotate their certificates
      
      **What this PR does / why we need it**:
      As of 1.8.0 kubelet in kubeadm configuration ships with enabled feature
      of node certificate autorotation, it makes sense to enable automatic
      certificate rotation csr signing. It will help to avoid issues like
      described in #53231 and #53237.
      
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #53237.
      
      **Special notes for your reviewer**:
      We need that patch to be applied both to master branch and cherry-pick into 1.8, so kubeadm in 1.8.1 release will create correct role bindings on upgrades between 1.7 -> 1.8 and initialization of new clusters with 1.8.x
      
      cc @luxas @liggitt @pipejakob 
      
      **Release note**:
      ```release-note
      kubeadm allows the kubelets in the cluster to automatically renew their client certificates
      ```
      b32d982a
    • Kubernetes Submit Queue's avatar
      Merge pull request #53234 from jiayingz/e2e-flaky · 1331df79
      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>.
      
      Fixes a flakiness in GPUDevicePlugin e2e test.
      
      Waits till nvidia gpu disappears from all nodes after deleting the
      device plug DaemonSet to make sure its pods are deleted from all nodes.
      
      
      
      **What this PR does / why we need it**:
      
      **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/kubernetes/issues/53281
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      ```
      1331df79
  3. 29 Sep, 2017 25 commits