1. 05 Jul, 2017 35 commits
    • 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
    • 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
    • Konstantinos Tsakalozos's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #48353 from deads2k/tpr-17-delete-01 · c10cc3de
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48480, 48353)
      
      remove tpr api access
      
      xref https://github.com/kubernetes/kubernetes/issues/48152
      
      TPR tentacles go pretty deep. This gets us started by removing API access and we'll move down from there.
      
      @kubernetes/sig-api-machinery-misc 
      @ironcladlou this should free up the GC implementation since TPRs will no longer be present and failing.
      
      ```release-note
      Removing TPR api access per https://github.com/kubernetes/kubernetes/issues/48152
      ```
      c10cc3de
    • Kubernetes Submit Queue's avatar
      Merge pull request #48480 from liggitt/namespace-reconcile · b12314e2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48480, 48353)
      
      Ensure namespace exists as part of RBAC reconciliation
      
      reconciliation can race with the controller that creates the namespaces containing the bootstrap roles. if it loses, it gets a NotFound error trying to create the namespaced role/rolebinding.
      
      Fixes https://github.com/kubernetes/kubeadm/issues/335
      
      ```release-note
      RBAC role and role-binding reconciliation now ensures namespaces exist when reconciling on startup.
      ```
      b12314e2
    • Kubernetes Submit Queue's avatar
      Merge pull request #47217 from CaoShuFeng/trival_fix · bce32b66
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      [trivial]fix function name in comment
      
      **Release note**:
      
      ```
      NONE
      ```
      bce32b66
    • Kubernetes Submit Queue's avatar
      Merge pull request #48382 from zhangxiaoyu-zidif/fix-format-changelog-1.7 · 1ebd834c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix format of CHANGELOG
      
      **What this PR does / why we need it**:
      Fix format of CHANGELOG
      
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      1ebd834c
    • Kubernetes Submit Queue's avatar
      Merge pull request #48341 from duan-yue/unused_alias · 8067e7af
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48473, 48341)
      
      remove redundant alias
      
      **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 #
      remove redundant alias
      
      **Special notes for your reviewer**:
      
      **Release note**:
      ```release-note
      NONE
      ```
      8067e7af
    • Kubernetes Submit Queue's avatar
      Merge pull request #48473 from zhangxiaoyu-zidif/refactor-preemption · 62d3e8c2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48473, 48341)
      
      Refactor podListEqual()
      
      **What this PR does / why we need it**:
      To solve the problem:
       this is not correct if there are duplicate pods in the list.
       for example: podListEqual([a, a, b], [a, b, b]) will return true
      
      **Special notes for your reviewer**:
       the original method is O(N^2), while current method is 3* O(N).
      I think it is much better.
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      62d3e8c2
    • Kubernetes Submit Queue's avatar
      Merge pull request #47384 from shiywang/api403 · c7466801
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 48383, 47384)
      
      Fix 401/403 apiserver errors do not return 'Status' objects
      
      fixes https://github.com/kubernetes/kubernetes/issues/45970
      c7466801
    • Kubernetes Submit Queue's avatar
      Merge pull request #48383 from gyliu513/refactor-daemon · 54e77557
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Factored out simulate from nodeShouldRunDaemonPod.
      
      Addressed comments from https://github.com/kubernetes/kubernetes/pull/48189#issuecomment-312223162
      
      
      
      **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
      ```
      
      /sig apps
      54e77557
    • zhangxiaoyu-zidif's avatar
      fix-review · e6c95e7a
      zhangxiaoyu-zidif authored
      e6c95e7a
    • Kubernetes Submit Queue's avatar
      Merge pull request #47504 from xiangpengzhao/fix-ep-notready · d777cd4c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Pods which exit and won't restart should not be in the Endpoints.NotReadyAddresses
      
      **What this PR does / why we need it**:
      Such pods should not be in the Endpoints.NotReadyAddresses:
      * Failed pods with restart policy=Never
      * Succeeded pods with restart policy=Never
      * Succeeded pods with restart policy=OnFailure
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #46776
      
      **Special notes for your reviewer**:
      /cc @wojtek-t 
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      d777cd4c
    • xiangpengzhao's avatar
    • Clayton Coleman's avatar
      Add a new default printer handler for HumanReadable · 6bd0c389
      Clayton Coleman authored
      Refactors and removes the need for the more complex old code,
      temporarily limits what output is shown for truly unknown objects (a
      follow up change will allow server side handling and generic fallback),
      and removes all of the generic printers in favor of a single code path.
      6bd0c389
    • Guangya Liu's avatar
  2. 04 Jul, 2017 5 commits