1. 22 Aug, 2016 18 commits
  2. 21 Aug, 2016 22 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #30638 from krousey/metrics_registration · b51d5c3c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Remove implicit Prometheus metrics from client
      
      **What this PR does / why we need it**: This PR starts to cut away at dependencies that the client has.
      
      **Release note**:
      <!--  Steps to write your release note:
      1. Use the release-note-* labels to set the release note state (if you have access) 
      2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. 
      -->
      ```release-note
      The implicit registration of Prometheus metrics for request count and latency have been removed, and a plug-able interface was added. If you were using our client libraries in your own binaries and want these metrics, add the following to your imports in the main package: "k8s.io/pkg/client/metrics/prometheus". 
      ```
      
      cc: @kubernetes/sig-api-machinery @kubernetes/sig-instrumentation @fgrzadkowski  @wojtek-t
      b51d5c3c
    • Kubernetes Submit Queue's avatar
      Merge pull request #30690 from wongma7/claimref-capacity · 1def4a04
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Don't bind pre-bound pvc & pv if size request not satisfied
      
      as discussed briefly here https://github.com/kubernetes/kubernetes/pull/30522 , volume size ought to be verified before binding a pv & pvc regardless of what's in the pv's claimRef. @thockin
      1def4a04
    • Kubernetes Submit Queue's avatar
      Merge pull request #29995 from jszczepkowski/ha-poc · 70ba8116
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Support for creation/removal of master replicas.
      
      HA master: initial support for creation/removal of masters replicas by
      kube-up/kube-down scripts for GCE on gci (other distributions, including debian, are not supported yet).
      70ba8116
    • Kubernetes Submit Queue's avatar
      Merge pull request #31082 from liggitt/pvc_test_race · 9669eaaa
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix data race in PVC Run/Stop methods
      
      Fixes #30947
      Fixes #30775
      9669eaaa
    • Kubernetes Submit Queue's avatar
      Merge pull request #30614 from AdoHe/run_pull_policy · d1ed6f59
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      kubectl run add pull-policy flag to control image pull policy
      
      ```release-note
      Add support for --image-pull-policy to 'kubectl run'
      ```
      
      Fix #30493 
      @pwittrock @thockin ptal
      d1ed6f59
    • Kubernetes Submit Queue's avatar
      Merge pull request #31076 from mwielgus/object-meta · 069929bb
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Object meta fixes in federation controllers
      
      This PR adds helper functions for handling object meta structs and applies them to the existing controllers.
      
      cc: @quinton-hoole @jianhuiz @kubernetes/sig-cluster-federation
      069929bb
    • Kubernetes Submit Queue's avatar
      Merge pull request #30392 from ericchiang/x509-get-groups-from-org · d9705f85
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      x509 authenticator: get groups from subject's organization field
      
      Note that the current X509 tests provide a bunch of certs but no private keys or commands to reproduce the testdata, so the new test case isn't added to the certificate chain.
      
      Closes  #30260
      
      cc @treed @gtank @mikedanese @deads2k  @kubernetes/sig-auth
      d9705f85
    • Kubernetes Submit Queue's avatar
      Merge pull request #30718 from Random-Liu/wait-node-ready-before-start-test · 08b3c682
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Node E2E: Wait for node ready before the node e2e test started.
      
      Fixes https://github.com/kubernetes/kubernetes/issues/30252.
      
      This PR makes node e2e test wait for exactly one node ready before running other test.
      
      @ronnielai @mtaufen
      08b3c682
    • Jordan Liggitt's avatar
      Fix data race in PVC Run/Stop methods · 387f9ea9
      Jordan Liggitt authored
      387f9ea9
    • Marcin Wielgus's avatar
      9b00a665
    • Kubernetes Submit Queue's avatar
      Merge pull request #30212 from feiskyer/kuberuntime-flag · 5d54c557
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Kubelet: add --container-runtime-endpoint and --image-service-endpoint
      
      Flag `--container-runtime-endpoint` (overrides `--container-runtime`) is introduced to identify the unix socket file of the remote runtime service. And flag `--image-service-endpoint` is introduced to identify the unix socket file of the image service.
      
      This PR is part of #28789 Milestone 0. 
      
      CC @yujuhong @Random-Liu
      5d54c557
    • Kubernetes Submit Queue's avatar
      Merge pull request #29696 from brendandburns/kubecfg · 5a98379b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add initial support for TokenFile to to the client config file.
      
      @smarterclayton @deads2k @cjcullen @krousey 
      
      Part of the fix for #28260
      5a98379b
    • Kubernetes Submit Queue's avatar
      Merge pull request #30583 from colemickens/fix-hack-path-handling · c39b584e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      fix path handling in hack/lib/init.sh
      
      Jenkinsfile pipeline jobs get cloned into "\<project\> (\<branch\>)". As a result, I can't use certain things in `hack/lib/init.sh`.
      
      This is a small fix for that problem.
      
      **Release note**:
      <!--  Steps to write your release note:
      1. Use the release-note-* labels to set the release note state (if you have access) 
      2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. 
      -->
      ```release-note
      NONE
      ```
      c39b584e
    • Kubernetes Submit Queue's avatar
      Merge pull request #28860 from ericchiang/separate-apiserver-authz-options · 7979801e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      pkg/genericapiserver/options: don't import pkg/apiserver
      
      Refactor the authorization options for the API server so
      pkg/apiserver isn't directly imported by the options package.
      
      Closes #28544
      
      cc @smarterclayton
      
      @madhusudancs, @nikhiljindal I've updated `federation/cmd/federation-apiserver/app/server.go` to include the RBAC options with this change. I don't know if this was intentionally left out in the first place but would like your feedback.
      7979801e
    • Kubernetes Submit Queue's avatar
      Merge pull request #25524 from AdoHe/kubectl_reorg · a956dd1c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      update kubectl help output for better organization
      
      ## Pull Request Guidelines
      
      1. Please read our [contributor guidelines](https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md).
      1. See our [developer guide](https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md).
      1. Follow the instructions for [labeling and writing a release note for this PR](https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes) in the block below.
      
      ```release-note
      * Use the release-note-* labels to set the release note state 
      * Clear this block to use the PR title as the release note 
      -OR-
      * Enter your extended release note here
      ```
      
      
      [![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
      a956dd1c
    • Kubernetes Submit Queue's avatar
      Merge pull request #31039 from coufon/add_benchmark_to_jenkins · 37f8559c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add benchmark to jenkins
      
      This PR contains the following changes:
      
      1. Add more tests in density benchmark test;
      2. Add the peak value (100%) in latency and CPU usage statistic data;
      3. Move the Ginkgo focus flag from e2e_remote.go to run_e2e.go;
      4. Support running benchmark in run_e2e.go. The benchmark configuration file is an extension of image configuration. Each item requires additional GCE machine type (e.g. n1-standard-1, default value will be used if empty) and test names (Ginkgo focus regex strings). A test item is regarded as benchmark if the tests field is non-empty.
      37f8559c
    • Kubernetes Submit Queue's avatar
      Merge pull request #30211 from Random-Liu/statically-link-apiserver · dbfad789
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Node Conformance Test: Statically link apiserver
      
      For #30122, #30174.
      Based on #30116, #30198, #30200.
      
      **Please only review the 4th PR.**
      
      This PR is part of our roadmap to package node conformance test.
      The 1st commit is from #30116, which started e2e services in a separate process.
      The 2nd commit is from #30198, it statically linked etcd into the node e2e framework.
      The 3rd commit is from #30200, it moved namespace controller into e2e services.
      
      The 4th commit is new, it statically linked apiserver into the node e2e framework.
      
      @dchen1107 @vishh 
      /cc @kubernetes/sig-node @kubernetes/sig-testing
      dbfad789
    • Kubernetes Submit Queue's avatar
      Merge pull request #29919 from tmrts/kubelet-rkt-cri/container-api · 6dabf601
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Kubelet rkt CRI stubs & fakes
      
      Adds stubs for CRI interfaces and creates a fake for `ContainerRuntime` interface
      6dabf601
    • Michail Kargakis's avatar
      api: generated code for readyReplicas · 46291d51
      Michail Kargakis authored
      46291d51
    • Kubernetes Submit Queue's avatar
      Merge pull request #31020 from mikedanese/ds-taint · 00a474a1
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      daemonset controller should respect taints
      
      cc @dchen1107 @davidopp
      00a474a1
    • Michail Kargakis's avatar
      api: add readyReplicas in RC/RS · ab3bc03a
      Michail Kargakis authored
      ab3bc03a
    • Kubernetes Submit Queue's avatar
      Merge pull request #31026 from erictune/betainit · e9bd8058
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Move init-container feature from alpha to beta.
      
      ```release-note
      Moved init-container feature from alpha to beta.
      
      In 1.3, an init container is specified with this annotation key
      on the pod or pod template: `pods.alpha.kubernetes.io/init-containers`.
      
      In 1.4, either that key or this key: pods.beta.kubernetes.io/init-containers`,
      can be used.
      
      When you GET an object, you will see both annotation keys with the same values.
      
      You can safely roll back from 1.4 to 1.3, and things with init-containers
      will still work (pods, deployments, etc).
      
      If you are running 1.3, only use the alpha annotation, or it may be lost when
      rolling forward.
      
      The status has moved from annotation key
      `pods.beta.kubernetes.io/init-container-statuses` to
      `pods.beta.kubernetes.io/init-container-statuses`.
      Any code that inspects this annotation should be changed to use the new key.
      
      State of Initialization will continue to be reported in both pods.alpha.kubernetes.io/initialized
      and in `podStatus.conditions.{status: "True", type: Initialized}`
      ```
      
      Mini-design for this change:
      
      Goals:
      1. A user can create an object with the beta annotation
        on 1.4, and it works.  The fact that the annotation has beta
        in it communicates to the user that the feature is beta,
        and so the user should have confidence in using it.  Preferably,
        when the user gets the annotation back, he see the beta
        annotation.
      1) If someone had an existing alpha object in their apiserver,
        such as a RS with a pod template with an init-containers
        annotation on it, it should continue to work (init containers
        run) when stack upgraded to 1.4.
      2) If someone is using a chart or blog post that has alpha
        annotation on it and they create it on a 1.4 cluster, it should
        work.
      3) If someone had something with an init container in 1.4
        and they roll back stack to 1.3, it should not silently stop
        working (init containers don't run anymore).
      
      To meet all these, we mirror an absent beta label from the alpha
      key and vice versa.  If they are out of sync, we use the alpha
      one. We do this in conversion since there was already logic there.
      
      In 1.3 code, all annotations are preserved across a round trip
      (v1 -> api -> v1), and the alpha annotation turns into the internal
      field that kubelet uses.
      
      In 1.4 code, the alpha annotation is always preserved across
      a round trip, and a beta annotation is always set equal to
      the alpha one, after a round trip.
      
      Currently, the kubelet always sees the object after a round trip
      when it GETs it.  But, we don't want to rely on that behavior,
      since it will break when fastpath is implemented.
      
      So, we rely on this:
      all objects either are created with an alpha annotation (1.3 or 1.4
      code) or are created with a beta annotation under 1.4.  In the later
      case, they are round tripped at creation time, and so get both
      annotations.  So all subsequent GETs see both labels.
      e9bd8058