1. 06 Jul, 2017 14 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #48538 from GheRivero/kubeadm_nodename · 14cd03ae
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add node-name flag to `join` phase
      
      **What this PR does / why we need it**: Allow to specify a node-name instead of relaying in `os.Hostname()`
      This is useful where kubelet use the name given by the cloud-provider to
      register the node.
      
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: partially fixes kubernetes/kubeadm#64
      
      **Special notes for your reviewer**:
      
      **Release note**:
      ```release-note
      Added new flag to `kubeadm join`: --node-name, that lets you specify the name of the Node object that's gonna be created
      ```
      14cd03ae
    • Kubernetes Submit Queue's avatar
      Merge pull request #46228 from jayunit100/scheduler_perf_owners · aef40105
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add ownership for the future of scheduler_perf and kubemark
      
      **What this PR does / why we need it**:
      
      The scheduler_perf project is cross-cutting with the other goals of the performance and scale initiatives, so, I've put together a list of interested parties who have been running, using, and contributing to it.
      
      cc @kubernetes/sig-scheduling-pr-reviews @ravisantoshgudimetla @sjug
      aef40105
    • Kubernetes Submit Queue's avatar
      Merge pull request #46848 from zjj2wry/err_message · c75170ad
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix some err message
      
      **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 #
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      c75170ad
    • Kubernetes Submit Queue's avatar
      Merge pull request #48536 from CaoShuFeng/application/json · f1773894
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix invalid Content-Type for 403 error
      
      https://github.com/kubernetes/kubernetes/pull/47384 makes 403 errors return Status Object. However the Content-Type is still "text/plain"
      This change fixes it.
      
      Before this change:
      kubectl get pods --as=tom
      Error from server (Forbidden): {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"pods \"\" is forbidden: User \"tom\" cannot list pods in the namespace \"default\".","reason":"Forbidden","details":{"kind":"pods"},"code":403} (get pods)
      
      After this change:
      $ kubectl get pods --as=tom
      Error from server (Forbidden): pods "" is forbidden: User "tom" cannot list pods in the namespace "default".
      
      
      
      **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 #
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```
      NONE
      ```
      f1773894
    • Cao Shufeng's avatar
      Fix invalid Content-Type for 403 error · 36e0a5ed
      Cao Shufeng authored
      https://github.com/kubernetes/kubernetes/pull/47384 makes 403 errors
      return Status Object. How the Content-Type is still "text/plain"
      This change fix it.
      36e0a5ed
    • Ghe Rivero's avatar
      Add node-name flag to `join` phase · 2e2a8157
      Ghe Rivero authored
      Allow to specify a node-name instead of relaying in `os.Hostname()`
      This is useful where kubelet use the name given by the cloud-provider to
      register the node.
      
      Partially fix: kubernetes/kubeadm#64
      2e2a8157
    • Kubernetes Submit Queue's avatar
      Merge pull request #44394 from rthallisey/pre-existing-provider · 20e629b1
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Launch kubemark with an existing Kubemark master
      
      In order to expand the use of kubemark, allow developers to use kubemark with a pre-existing Kubernetes cluster.
      
      Ref issue  #44393
      20e629b1
    • Kubernetes Submit Queue's avatar
      Merge pull request #48492 from CaoShuFeng/CanonicalHeaderKey · 40825b26
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix Audit-ID header key
      
      Now http header key "Audit-ID" doesn't have effect, because golang
      automaticly transforms "Audit-ID" into "Audit-Id". This change use
      http.Header.Get() function to canonicalize "Audit-ID" to "Audit-Id".
      
      
      **Release note**:
      
      ```
      NONE
      ```
      40825b26
    • Cao Shufeng's avatar
      Fix Audit-ID header key · f21bc7bb
      Cao Shufeng authored
      Now http header key "Audit-ID" doesn't have effect, because golang
      automaticly transforms "Audit-ID" into "Audit-Id". This change use
      http.Header.Get() function to canonicalize "Audit-ID" to "Audit-Id".
      f21bc7bb
    • Kubernetes Submit Queue's avatar
      Merge pull request #48508 from mengqiy/fix_term · 9cfb0ae5
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      fix cross build
      
      Fix the issue introduced in #48299 which breaks cross-build (https://github.com/kubernetes/kubernetes/pull/48299#issuecomment-312846398).
      move setsize.go and setsize_unsupported.go back to util/term for kubelet.
      move unmark_windows.go as well.
      
      ```release-note
      NONE
      ```
      9cfb0ae5
    • Kubernetes Submit Queue's avatar
      Merge pull request #48501 from FengyunPan/enable-ServiceAffinity · 9dd6a935
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Enable Service Affinity for OpenStack cloudprovider
      
      Fix issue: #48500
      Kubernetes's OpenStack cloudprovider can't set persistence to "SOURCE_IP"
      
      **Release note**:
      ```release-note
      NONE
      ```
      9dd6a935
    • FengyunPan's avatar
      Enable Service Affinity for OpenStack cloudprovider. · 6ee05783
      FengyunPan authored
      Fix issue: #48500
      Kubernetes's OpenStack cloudprovider can't set LB's persistence
      to "SOURCE_IP".
      6ee05783
    • Kubernetes Submit Queue's avatar
      Merge pull request #48121 from sakshamsharma/add-kms-dep · d816555e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48292, 48121)
      
      Add Google cloudkms dependency, add cloudkms service to GCE cloud provider
      
      Required to introduce a Google KMS based envelope encryption, which shall allow encrypting secrets at rest using KEK-DEK scheme.
      
      The above requires KMS API to create/delete KeyRings and CryptoKeys, and Encrypt/Decrypt data.
      
      Should target release 1.8
      
      @jcbsmpsn 
      
      Update: It appears that Godep only allows dependencies which are in use. We may have to modify this PR to include some Google KMS code.
      
      Progresses #48522
      d816555e
    • Kubernetes Submit Queue's avatar
      Merge pull request #48292 from mml/fnord · c0c3fe01
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48292, 48121)
      
      Return a slightly more verbose error when "go get" fails.
      c0c3fe01
  2. 05 Jul, 2017 26 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #48489 from xiangpengzhao/check-golint · b39a0a74
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48309, 48489)
      
      Check if golint exists first in hack/verify-golint.sh
      
      **What this PR does / why we need it**:
      Check if golint exists first in hack/verify-golint.sh
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #48488
      
      **Special notes for your reviewer**:
      nope.
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      b39a0a74
    • Kubernetes Submit Queue's avatar
      Merge pull request #48309 from MrHohn/e2e-fix-ingress-tag · afc67bdb
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      [e2e-ingress] Get node tag from instance under GKE
      
      **What this PR does / why we need it**: Making ingress CI green again.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #48167 
      
      **Special notes for your reviewer**:
      /assign @nicksardo 
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      afc67bdb
    • Matt Liggett's avatar
      Fix e2e_test.go · 421166db
      Matt Liggett authored
      421166db
    • Kubernetes Submit Queue's avatar
      Merge pull request #48194 from k82cn/k8s_48173 · 145976f7
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47327, 48194)
      
      Checked container spec when killing container.
      
      **What this PR does / why we need it**:
      Checked container spec when getting container, return error if failed.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #48173 
      
      **Release note**:
      ```release-note-none
      ```
      145976f7
    • Kubernetes Submit Queue's avatar
      Merge pull request #47327 from xingzhou/remove-error · 67da2da3
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47327, 48194)
      
      Remove useless error
      
      While doing https://github.com/kubernetes/kubernetes/pull/44898, found an useless return error.
      
      **Release note**:
      ```
      None
      ```
      67da2da3
    • Kubernetes Submit Queue's avatar
      Merge pull request #48499 from zhangxiaoyu-zidif/fix-format-changelog-v.1.7.0-alpha.4 · 3f0141ed
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      fix style of yaml and text
      
      **What this PR does / why we need it**:
      The original format is very odd. So I try to fix it.
      
      **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**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      3f0141ed
    • Kubernetes Submit Queue's avatar
      Merge pull request #48502 from ironcladlou/memcachediscovery · 8b583465
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47700, 48464, 48502)
      
      Add a refreshing discovery client
      
      Introduce a discovery client (implementing `CachedDiscoveryInterface`) which caches discovery information in memory and which can be actively refreshed by the user.
      
      This implementation fetches from discovery upon refresh and could later be improved to maintain updates from a watch.
      
      Extracted from https://github.com/kubernetes/kubernetes/pull/47665 and https://github.com/kubernetes/kubernetes/pull/46000 to help reduce the scope of https://github.com/kubernetes/kubernetes/pull/48065.
      
      ```release-note
      NONE
      ```
      8b583465
    • Kubernetes Submit Queue's avatar
      Merge pull request #48464 from wanghaoran1988/fix_err_type · d630c0b6
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47700, 48464, 48502)
      
      fix error type
      
      **What this PR does / why we need it**:
      invalidToken should be errInvalideToken
      **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**:
      No
      **Release note**:
      ```
      None
      ```
      d630c0b6
    • Kubernetes Submit Queue's avatar
      Merge pull request #47700 from JulienBalestra/rkt-systemd-unit-limitnofile · 154bf490
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47700, 48464, 48502)
      
      Provide a way to setup the limit NO files for rkt Pods
      
      **What this PR does / why we need it**:
      
      This PR allows to customize the Systemd unit files for rkt pods.
      We start with the `systemd-unit-option.rkt.kubernetes.io/LimitNOFILE` to allows to run workloads like etcd, ES in kubernetes with rkt.
      
      **Special notes for your reviewer**:
      
      Once again, I followed @yifan-gu guidelines.
      I made a basic check over the values given inside the `systemd-unit-option.rkt.kubernetes.io/LimitNOFILE` (integer and > 0).
      If this check fails: I simply ignore the field.
      The other implementation would be to fail the whole SetUpPod.
      
      We discussed using a key like `rkt.kubernetes.io/systemd-unit-option/LimitNOFILE` but the validation only allows a single `/` in this field:
      ```The Deployment "tiller" is invalid: spec.template.annotations: Invalid value: "rkt.kubernetes.io/systemd-unit-option/LimitNOFILE": a qualified name must consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')```
      
      **Release note**:
      
      ```release-note 
      NONE
      ```
      154bf490
    • Zihong Zheng's avatar
      532a9d78
    • ymqytw's avatar
      fix cross build for windows · ce561b20
      ymqytw authored
      ce561b20
    • Kubernetes Submit Queue's avatar
      Merge pull request #48498 from deads2k/tpr-18-delete-02 · 96d8ab72
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45467, 48091, 48033, 48498)
      
      bulk delete of tpr packages
      
      related to https://github.com/kubernetes/kubernetes/issues/48152
      
      Bulk delete of the TPR code.  I made the minimal changes outside the delete to try to keep it easy to review.
      96d8ab72
    • Kubernetes Submit Queue's avatar
      Merge pull request #48033 from smarterclayton/generic_printer · 11087382
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45467, 48091, 48033, 48498)
      
      Refactor and simplify generic printer for unknown objects
      
      The first two commits are part of other PRs
      
      @kubernetes/sig-cli-pr-reviews part of the general refactoring for server side print
      11087382
    • Kubernetes Submit Queue's avatar
      Merge pull request #48091 from rpothier/kubenet-ipv6 · e14d9a7f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45467, 48091, 48033, 48498)
      
      Allow Kubenet with ipv6
      
      When running kubenet with IPv6, there is a panic as there
      is IPv4 specific code the Event function.
      With this change, Event will support IPv4 and IPv6
      
      
      
      **What this PR does / why we need it**:
      This PR allows kubenet to use IPv6. Currently there is a panic in kubenet_linux.go
      as there is IPv4 specific code.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #48089
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note-NONE
      ```
      e14d9a7f
    • Kubernetes Submit Queue's avatar
      Merge pull request #45467 from ddysher/kubectl-describe-controllerRef · e16b59aa
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix kubectl describe for pods with controllerRef
      
      **What this PR does / why we need it**:
      
      kubectl describe doesn't take controllerRef into consideration, resulting confusing result. e.g. if we have two replicaset with the same selector, one with 1 replica and the other 2 replicase, then both replicaset will show 3 running pods.
      
      ```sh
      $ kubectl describe rs replicaset-2
      Name:           replicaset-2      
      Namespace:      default
      Selector:       environment=prod
      Labels:         environment=prod
      Annotations:    <none>
      Replicas:       2 current / 2 desired
      Pods Status:    3 Running / 0 Waiting / 0 Succeeded / 0 Failed
      Pod Template:
        Labels:       environment=prod
        Containers:
         created-from-replicaset:
          Image:              nginx
          Port:               
          Environment:        <none>
          Mounts:             <none>
        Volumes:              <none>
      Events:
        FirstSeen     LastSeen        Count   From                    SubObjectPath   Type            Reason                  Message
        ---------     --------        -----   ----                    -------------   --------        ------                  -------
        5m            5m              1       replicaset-controller                   Normal          SuccessfulCreate        Created pod: replicaset-2-39szb
        5m            5m              1       replicaset-controller                   Normal          SuccessfulCreate        Created pod: replicaset-2-470jr
      ```
      
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      
      xref #24946
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      Fix kubectl describe for pods with controllerRef 
      ```
      e16b59aa
    • Anthony Yeh's avatar
      Update CHANGELOG.md for v1.6.7. · 8244d85a
      Anthony Yeh authored
      8244d85a
    • Kubernetes Submit Queue's avatar
      Merge pull request #48369 from msau42/local-storage-known-issue · fc7d887c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add local volume bug to known issues
      
      **What this PR does / why we need it**:
      Update known issues with local volume issue #48331
      fc7d887c
    • Kubernetes Submit Queue's avatar
      Merge pull request #48144 from juju-solutions/bug/worker-termination · 40a21312
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48399, 48450, 48144)
      
      Skip errors when unregistering juju kubernetes-workers
      
      **What this PR does / why we need it**: When removing a kubernetes node from using Juju and for some reason kubernetes master fails we should not error the node, instead we should proceed with the removal of the node and the master will recognise that node as unavailable because it will fail heartbeats.
      
      **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/juju-solutions/bundle-canonical-kubernetes/issues/300
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```
      Clean decommission of Juju kubernetes worker units 
      ```
      40a21312
    • Kubernetes Submit Queue's avatar
      Merge pull request #48450 from wwwtyro/rye/lxc-disable-conntrack-max · 7b13208d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48399, 48450, 48144)
      
      configure kube-proxy to run with unset conntrack param when in lxc
      
      **What this PR does / why we need it**: Configures the Juju Charm code to run kube-proxy with `conntrack-max-per-core` set to `0` when in an lxc as a workaround for issues when mounting `/sys/module/nf_conntrack/parameters/hashsize`
      
      **Release note**:
      
      ```release-note
      Configures the Juju Charm code to run kube-proxy with conntrack-max-per-core set to 0 when in an lxc as a workaround for issues when mounting /sys/module/nf_conntrack/parameters/hashsize
      ```
      7b13208d
    • Kubernetes Submit Queue's avatar
      Merge pull request #48399 from k82cn/ordered_pkgs · e773c88b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48399, 48450, 48144)
      
      Group and order imported packages.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #N/A
      
      **Release note**:
      
      ```release-note-none
      ```
      e773c88b
    • Dan Mace's avatar
      Refactor cached discovery client · 2639b75d
      Dan Mace authored
      2639b75d
    • deads2k's avatar
      bulk delete of tpr packages · 254e71bf
      deads2k authored
      254e71bf
    • Daniel Smith's avatar
      Add a refreshing discovery client · 8e7db3a0
      Daniel Smith authored
      8e7db3a0
    • Kubernetes Submit Queue's avatar
      Merge pull request #48445 from deads2k/server-28-panichandler · fdee1d54
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47162, 48444, 48445)
      
      make the panic handler first
      
      Move the panic handler to the beginning of the chain so that panics will get information in the log beyond a stack.
      fdee1d54
    • Kubernetes Submit Queue's avatar
      Merge pull request #48444 from p0lyn0mial/add_fisher_resource_to_wardle_group · cfde9e58
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47162, 48444, 48445)
      
      Introducing a cluster-scoped resource in the wardle.k8s.io group.
      
      **What this PR does / why we need it**:
      This PR adds a cluster-scoped resource to the wardle.k8s.io group.
      The cluster scoped resource has a field that indicates Flunder.Names that are disallowed.
      The resource is going to be used by an admission plugin.
      The admission plugin will list the cluster-scope resources and check against banned names.
      
      **Special notes for your reviewer**:
      Issue: #47868
      
      **Release note**:
      
      ```
      NONE
      ```
      cfde9e58
    • Kubernetes Submit Queue's avatar
      Merge pull request #47162 from FengyunPan/display-none · e5419a56
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 47162, 48444, 48445)
      
      Fix output extra comma
      
      /# kubectl get service
      NAME                     CLUSTER-IP       EXTERNAL-IP               PORT(S)          AGE
      nginx-service-test       10.200.6.109     _**,80.11.12.10**_              8000:31637/TCP   6s
      **(output a extra comma)**
      except: 
      nginx-service-test       10.200.6.109     _**80.11.12.10**_              8000:31637/TCP   6s
      
      /# cat lb.yaml 
      apiVersion: v1 
      kind: Service 
      metadata: 
        name: nginx-service-lb3
      spec: 
        ports: 
          - port: 8000
            targetPort: 80 
            protocol: TCP 
        type: LoadBalancer
        selector: 
          name: nginx
        externalIPs: 
          - 80.11.12.10
          - 1.2.3.6
      /# kubectl create -f lb.yaml
      e5419a56