1. 17 Aug, 2017 9 commits
    • Di Xu's avatar
      update testcase err msg · 75258b27
      Di Xu authored
      75258b27
    • Di Xu's avatar
      auto-gen · fc0bdb56
      Di Xu authored
      fc0bdb56
    • Di Xu's avatar
      a8742a06
    • Kubernetes Submit Queue's avatar
      Merge pull request #47599 from yujuhong/restart-init · 4bfe9b1a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46317, 48922, 50651, 50230, 47599)
      
      Rerun init containers when the pod needs to be restarted
      
      Whenever pod sandbox needs to be recreated, all containers associated
      with it will be killed by kubelet. This change ensures that the init
      containers will be rerun in such cases.
      
      The change also refactors the compute logic so that the control flow of
      init containers act is more aligned with the regular containers. Unit
      tests are added to verify the logic.
      
      This fixes #36485
      4bfe9b1a
    • Kubernetes Submit Queue's avatar
      Merge pull request #50230 from jianglingxia/jlx080714 · 3f44fe88
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46317, 48922, 50651, 50230, 47599)
      
      fix the typo of errorf info
      
      **What this PR does / why we need it**:
      fix the error message of stateful_pod_control_test.go
      **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
      ```
      3f44fe88
    • Kubernetes Submit Queue's avatar
      Merge pull request #50651 from itowlson/log-azure-share-name · 7a58f554
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46317, 48922, 50651, 50230, 47599)
      
      Log name if Azure file share cannot be created
      
      **What this PR does / why we need it**: If the Azure storage provider fails to create a file share, it logs and error message 'failed to create share in account _foo_: _error-msg_'.  A user on the Slack azure-sig channel reported an error of "The specified resource name length is not within the permissible limits".  This PR adds logging of the name so that this error can be diagnosed in future.
      
      **Which issue this PR fixes**: This was raised on Slack and has not been created as a GitHub issue.
      
      **Special notes for your reviewer**: None
      
      **Release note**:
      
      ```release-note
      Changed the error log format when creating an Azure file share to include the name of the share.
      ```
      7a58f554
    • Kubernetes Submit Queue's avatar
      Merge pull request #48922 from ConnorDoyle/integer-resources-as-default · ce1485c6
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46317, 48922, 50651, 50230, 47599)
      
      Resources outside the `*kubernetes.io` namespace are integers and cannot be over-committed.
      
      **What this PR does / why we need it**:
      
      Fixes #50473 
      
      Rationale: since the scheduler handles all resources except CPU as integers, that could just be the default behavior for namespaced resources.
      
      cc @RenaudWasTaken @vishh 
      
      **Release note**:
      
      ```release-note
      Resources outside the `*kubernetes.io` namespace are integers and cannot be over-committed.
      ```
      ce1485c6
    • Kubernetes Submit Queue's avatar
      Merge pull request #46317 from monopole/kubectlValidator · 225b9119
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Remove kubectl's dependence on schema file in pkg/api/validation.
      
      **What this PR does / why we need it**:
      
      Makes functions in validation/schema.go private to kubectl,
      further isolating kubectl.  This move revealed a "hidden" dependence
      (a dependence not expressed in a BUILD or make file) from a feature
      level test in /hack/make-rules on a kubectl test data file.  So this
      PR also adds some BUILD rules around the relevant hack targets, to make the
      dependence official.  A later PR will move the kubectl aspect of this "hack"
      test into a kubectl test directory.  Leaving it in place for now after establishing 
      and "official" dependency, since moving the test beyond PR scope.  The
      test also depends on a small sh file in //cluster, which makes no sense.
      
      **Which issue this PR fixes**
      
      Part of a series of PRs to address kubernetes/community#598
      
      **Release note**:
      ```release-note
      NONE
      ```
      225b9119
    • Kubernetes Submit Queue's avatar
      Merge pull request #50643 from kow3ns/enableappsv1beta2 · 427d763a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Enables the v1beta2 version of the apps API group by default
      
      **What this PR does / why we need it**: Enables the v1beta2 version of the apps API group by default
      
      fixes # #50641
      
      ```release-note
      apps/v1beta2 is enabled by default. DaemonSet, Deployment, ReplicaSet, and StatefulSet have been moved to this group version.
      ```
      427d763a
  2. 16 Aug, 2017 31 commits
    • Jeffrey Regan's avatar
      Remove kubectl's dependence on schema file in pkg/api/validation. · dbc22ad6
      Jeffrey Regan authored
      **What this PR does / why we need it**:
      
      Makes functions in validation/schema.go private to kubectl,
      further isolating kubectl.
      
      **Which issue this PR fixes**
      
      Part of a series of PRs to address kubernetes/community#598
      
      **Release note**:
      ```release-note
      NONE
      ```
      dbc22ad6
    • Kubernetes Submit Queue's avatar
      Merge pull request #50756 from sttts/sttts-deepcopy-calls-kubectl · 929f1383
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 41901, 50762, 50756)
      
      kubectl: simplify deepcopy calls
      929f1383
    • Kubernetes Submit Queue's avatar
      Merge pull request #50762 from jamiehannaford/kubeadm-gated-secrets · 4a15d32b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 41901, 50762, 50756)
      
      Feature-gate self-hosted secrets
      
      **What this PR does / why we need it**:
      
      Feature gates now select whether secrets are used for TLS cert storage in self-hosted clusters.
      
      **Release note**:
      ```release-note
      TLS cert storage for self-hosted clusters is now configurable. You can store them as secrets (alpha) or as usual host mounts.
      ```
      
      /cc @luxas
      4a15d32b
    • Kubernetes Submit Queue's avatar
      Merge pull request #41901 from soltysh/cronjobs_beta · 4032896e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Promote CronJobs to batch/v1beta1 - just the API
      
      This PR promotes CronJobs to beta.
      
      @erictune @kubernetes/sig-apps-api-reviews @kubernetes/api-approvers ptal
      
      This builds on top of #41890 and needs #40932 as well
      
      ```release-note
      Promote CronJobs to batch/v1beta1.
      ```
      4032896e
    • Connor Doyle's avatar
      630af542
    • Yu-Ju Hong's avatar
      Re-run init containers if the pod sandbox needs to be recreated · 152d8b9d
      Yu-Ju Hong authored
      Whenever pod sandbox needs to be recreated, all containers associated
      with it will be killed by kubelet. This change ensures that the init
      containers will be rerun in such cases.
      
      The change also refactors the compute logic so that the control flow of
      init containers act is more aligned with the regular containers. Unit
      tests are added to verify the logic.
      152d8b9d
    • Kubernetes Submit Queue's avatar
      Merge pull request #50722 from vmware/longVmName · 5c558ddb
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 50061, 48580, 50779, 50722)
      
      Fix for Policy based volume provisioning failure due to long VM Name in vSphere cloud provider
      
      Dummy VM is used for SPBM policy based provisioning feature of vSphere cloud provider.
      Dummy VM name is generated based on kubernetes cluster name and pv name. It can easily go beyond 
      vSphere's limitation of 80 characters for vmName.
      
      To solve the long VM name failure hash is used instead of vSphere-k8s-clusterName-PvName
      
      **Which issue this PR fixes** 
      https://github.com/vmware/kubernetes/issues/176
      
      **Release note:**
      ```release-note
      None
      ```
      
      @BaluDontu @divyenpatel @luomiao @tusharnt
      5c558ddb
    • Kubernetes Submit Queue's avatar
      Merge pull request #50779 from apelisse/update-pkg-watch-build · d6c381d5
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 50061, 48580, 50779, 50722)
      
      Remove BUILD reference to removed files: Fix bazel build
      
      **What this PR does / why we need it**:
      Bazel build is broken because a pull-request has removed some go files, but not the BUILD references to these file. Update the go files. I've also created an issue in test-infra(https://github.com/kubernetes/test-infra/issues/4083) as this should have been detected earlier
      
      **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
      ```
      d6c381d5
    • Kubernetes Submit Queue's avatar
      Merge pull request #48580 from mengqiy/kubectl_i18n · 8a6aa958
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 50061, 48580, 50779, 50722)
      
      move i18n to kubectl/util
      
      Move `pkg/util/i18n` to `pkg/kubectl/util/i18n` per https://github.com/kubernetes/kubernetes/issues/48209#issuecomment-311730681.
      This affects kubectl and kubeadm. It should be fine that `kubeadm` depends on `kubectl`.
      
      partially addresses: kubernetes/community#598
      
      ```release-note
      NONE
      ```
      
      /assign @apelisse @monopole
      8a6aa958
    • Kubernetes Submit Queue's avatar
      Merge pull request #50061 from m1093782566/kubectl-fix · 504b76c1
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 50061, 48580, 50779, 50722)
      
      Add UTs for pkg/kubectl/generate_test.go
      
      **What this PR does / why we need it**:
      
      Fix  pkg/kubectl [ParseLabels](https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/generate.go#L176) & [ParseProtocols](https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/generate.go#L147) bugs and add some UTs
      
      **Which issue this PR fixes**: fixes #50060 
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      504b76c1
    • Kenneth Owens's avatar
      generated code · 8a466ec4
      Kenneth Owens authored
      8a466ec4
    • Kenneth Owens's avatar
    • ymqytw's avatar
      move i18n to kubectl/util · b776df8a
      ymqytw authored
      b776df8a
    • Kubernetes Submit Queue's avatar
      Merge pull request #50710 from enj/enj/r/rbac_auth_builders · 6430b100
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46927, 50664, 50710)
      
      Refactor RBAC authorizer entry points
      
      This change refactors various RBAC authorizer functions to be more flexible in their inputs.  This makes it easier to reuse the various components that make up the authorizer.
      Signed-off-by: 's avatarMonis Khan <mkhan@redhat.com>
      
      ```release-note
      NONE
      ```
      6430b100
    • Kubernetes Submit Queue's avatar
      Merge pull request #50664 from lichuqiang/b0815 · 4ac725a5
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46927, 50664, 50710)
      
      fix typo(code annotation) in resouce_analyzer of kubelet
      4ac725a5
    • Kubernetes Submit Queue's avatar
      Merge pull request #46927 from shiywang/delete · 0439695e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 46927, 50664, 50710)
      
      Remove deprecated command 'kubectl stop'
      
      Fixes https://github.com/kubernetes/kubernetes/issues/11384
      I think this is the final step @kubernetes/sig-cli-pr-reviews  @kargakis
      0439695e
    • Antoine Pelisse's avatar
      Remove BUILD reference to removed files · f8a85d0f
      Antoine Pelisse authored
      f8a85d0f
    • Jamie Hannaford's avatar
      Feature-gate self-hosted secrets · abedc49b
      Jamie Hannaford authored
      abedc49b
    • Kubernetes Submit Queue's avatar
      Merge pull request #50387 from jcbsmpsn/metric-certificate-expiration · 6bc0b295
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add metric for remaining lifetime of certificates authenticating requests
      
      fixes #50778
      
      When incoming requests to the API server are authenticated by a certificate, the expiration of the certificate can affect the validity of the authentication. With auto rotation of certificates, which is starting with kubelet certificates, the goal is to use shorter lifetimes and let the kubelet renew the certificate as desired. Monitoring certificates which are approaching expiration and not renewing would be an early warning sign that nodes are about to stop participating in the cluster.
      
      **Release note**:
      
      ```release-note
      Add new Prometheus metric that monitors the remaining lifetime of certificates used to authenticate requests to the API server.
      ```
      6bc0b295
    • Kubernetes Submit Queue's avatar
      Merge pull request #50739 from FengyunPan/auto-get-subnet-id · e76ecd63
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 50769, 50739)
      
      Support autoprobing subnet-id for openstack cloud provider
      
      Currently if user doesn't specify subnet-id or specify a unsafe
      subnet-id, openstack cloud provider can't create a correct LoadBalancer
      service.
      Actually we can get it automatically. This patch do a improvement.
      This is a part of #50726
      
      **Special notes for your reviewer**:
      /assign @dims 
      /assign @anguslees 
      
      **Release note**:
      ```release-note
      NONE
      ```
      e76ecd63
    • Kubernetes Submit Queue's avatar
      Merge pull request #50769 from bskiba/rem · e8bd7117
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 50769, 50739)
      
      Make removing nodes public for Kubemark controller
      
      The ability to remove a specific node is needed by Cluster Autoscaler to work.
      
      **Release note**:
      ```
      NONE
      ```
      e8bd7117
    • Monis Khan's avatar
      Refactor RBAC authorizer entry points · 8e7893e5
      Monis Khan authored
      This change refactors various RBAC authorizer functions to be more
      flexible in their inputs.  This makes it easier to reuse the various
      components that make up the authorizer.
      Signed-off-by: 's avatarMonis Khan <mkhan@redhat.com>
      8e7893e5
    • Kubernetes Submit Queue's avatar
      Merge pull request #48057 from NickrenREN/fix-validateNodeAllocatable · d2cf96d6
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 50758, 48057)
      
      Fix node allocatable resource validation
      
      GetNodeAllocatableReservation gets all the reserved resource value
      Allocatable resource = capacity - reservation
      
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      d2cf96d6
    • Kubernetes Submit Queue's avatar
      Merge pull request #50758 from jianglingxia/jlx081656 · b68b9849
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 50758, 48057)
      
      continue fix the typo in staging file
      
      **What this PR does / why we need it**:
      in kubernetes has left two place to modify the word of explicit,thanks
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #50680 
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      b68b9849
    • Beata Skiba's avatar
      6f236695
    • Kubernetes Submit Queue's avatar
      Merge pull request #47480 from danehans/kubeadm_certs · 04a64810
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49115, 47480)
      
      Adds IPv6 test cases for kubeadm certs.
      
      **What this PR does / why we need it**:
      Adds IPv6 test cases in support of kubeadm certificate and validation functionality. It's needed to ensure test cases cover IPv6 related networking scenarios.
      
      **Which issue this PR fixes**
      This PR is in support of Issue #1443
      
      **Special notes for your reviewer**:
      Additional PR's will follow to ensure kubeadm supports IPv6.
      
      **Release note**:
      ```NONE
      ```
      04a64810
    • Kubernetes Submit Queue's avatar
      Merge pull request #49115 from CaoShuFeng/audit_beta · 49bee177
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 49115, 47480)
      
      Upgrade advanced audit to version v1beta1
      
      This change does nothing but only upgrades advanced audit to version v1beta1.
      There will be following up changes which does real effect to advanced audit feature.
      
      After this change audit policy file should contain apiVersion and kind and has such format:
      ```
      apiVersion: audit.k8s.io/v1alpha1
      kind: Policy
      rules:
        - level: None
      ```
      or use the v1beta1 policy:
      ```
      apiVersion: audit.k8s.io/v1beta1
      kind: Policy
      rules:
        - level: None
      ```
      Updates #48561
      
      **Release note**:
      
      ```
      Upgrade advanced audit to version v1beta1.
      ```
      49bee177
    • Kubernetes Submit Queue's avatar
      Merge pull request #50727 from CaoShuFeng/leaked_socket_file · 02ad4391
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 50692, 50727)
      
      remove leaked socket file after unit test
      
      Before this change:
      ```
      $ make test WHAT=k8s.io/kubernetes/pkg/master
      +++ [0816 11:19:03] Running tests without code coverage
      ok  	k8s.io/kubernetes/pkg/master	27.953s
      $ find -type s
      ./pkg/master/127.0.0.1:2100324511
      ./pkg/master/127.0.0.1:2100424511
      ./pkg/master/localhost:8235197834378812860
      ./pkg/master/localhost:82351978343788128600
      ./pkg/master/127.0.0.1:2100524511
      ./pkg/master/127.0.0.1:2100624511
      ./pkg/master/localhost:1155389051645284688
      ./pkg/master/localhost:11553890516452846880
      ```
      **Release note**:
      
      ```
      NONE
      ```
      02ad4391
    • Kubernetes Submit Queue's avatar
      Merge pull request #50692 from fabriziopandini/kubeadm-phases-small-cleanups · 7b264382
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 50692, 50727)
      
      kubeadm: Small cleanups from the phases refactoring
      
      **What this PR does / why we need it**:
      Small cleanups on kubeadm phases
      
      **Which issue this PR fixes**: 
      fixes pending comments in [#49419](https://github.com/kubernetes/kubernetes/pull/49419)
      fixes [#376](https://github.com/kubernetes/kubeadm/issues/376)
      
      **Special notes for your reviewer**:
      cc @luxas
      7b264382
    • Kubernetes Submit Queue's avatar
      Merge pull request #50558 from xiangpengzhao/remove-pkg · 7acff7e1
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 50589, 50558)
      
      Remove packages which aren't relied on by heapster anymore.
      
      **What this PR does / why we need it**:
      Do the TODO:
      ```
      // TODO apimachinery remove this empty package.  Godep fails without this because heapster relies
      // on this package.  This will allow us to start splitting packages, but will force
      // heapster to update on their next kube rebase.
      ```
      
      These packages aren't relied on by heapster anymore. This PR removes them. This is a followup of #48410.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      ref: #48386 #48410
      
      **Special notes for your reviewer**:
      /cc @deads2k 
      /kind cleanup
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      7acff7e1
    • Kubernetes Submit Queue's avatar
      Merge pull request #50589 from jinzhejz/jinzhejz_commentsrefine · 47605e14
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 50589, 50558)
      
      remove useless comments
      
      **What this PR does / why we need it**:
      remove useless comments
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #49103
      
      **Release note**:
      ```release-note
      None
      ```
      47605e14