1. 19 Jan, 2017 27 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #40106 from deads2k/client-09-switch · ac857a5a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      make client-go more authoritative
      
      Builds on https://github.com/kubernetes/kubernetes/pull/40103
      
      This moves a few more support package to client-go for origination.  
       1. restclient/watch - nodep
       1. util/flowcontrol - used interface
       1. util/integer, util/clock - used in controllers and in support of util/flowcontrol
      ac857a5a
    • Kubernetes Submit Queue's avatar
      Merge pull request #40017 from Crassirostris/fluentd-gcp-image-fix · 5e4625ca
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 40003, 40017)
      
      Remove library copying from fluentd image
      
      It seems that fluentd can no longer copy systemd libraries from host to be able to read journals.
      5e4625ca
    • Kubernetes Submit Queue's avatar
      Merge pull request #40003 from sttts/sttts-apiserver-pkg-api · b76b710a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 40003, 40017)
      
      k8s.io/apiserver and genericapiserver: move packages around
      
      Towards more sane k8s.io/apiserver package structure:
      
      ```
      rename pkg/genericapiserver/{ => server}
       rename pkg/genericapiserver/{ => server}/filters
       rename pkg/genericapiserver/{ => server}/mux
       rename pkg/genericapiserver/{ => server}/openapi
       rename pkg/genericapiserver/{ => server}/options
       rename pkg/genericapiserver/{ => server}/routes
       rename pkg/genericapiserver/{ => server}/routes/data
       rename pkg/genericapiserver/{ => server}/routes/data/swagger
       rename pkg/genericapiserver/{api => endpoints}
       rename pkg/genericapiserver/{api => endpoints}/filters
       rename pkg/genericapiserver/{api => endpoints}/handlers
       rename pkg/genericapiserver/{api => endpoints}/handlers/responsewriters
       rename pkg/genericapiserver/{api => endpoints}/openapi
       rename pkg/genericapiserver/{api => endpoints}/testing
       rename pkg/genericapiserver/{api => registry}/rest
       rename pkg/genericapiserver/{api => registry}/rest/resttest
       rename pkg/{ => genericapiserver}/registry/generic
       rename pkg/{ => genericapiserver}/registry/generic/registry
       rename pkg/{ => genericapiserver}/registry/generic/rest
       rename staging/src/k8s.io/apiserver/pkg/{ => endpoints}/handlers/negotiation
       rename staging/src/k8s.io/apiserver/pkg/{ => endpoints}/metrics
       rename staging/src/k8s.io/apiserver/pkg/{ => endpoints}/request
       rename staging/src/k8s.io/apiserver/pkg/{ => server}/healthz
       rename staging/src/k8s.io/apiserver/pkg/{ => server}/httplog
       rename staging/src/k8s.io/apiserver/pkg/{ => util}/webhook
      ```
      b76b710a
    • Kubernetes Submit Queue's avatar
      Merge pull request #39951 from shyamjvs/fix-kubemark-npd · da7d17c8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 40081, 39951)
      
      Passing correct master address to kubemark NPD & authenticating+authorizing it with apiserver
      
      Fixes #39245 
      Fixes https://github.com/kubernetes/node-problem-detector/issues/50
      
      Added RBAC for npd and fixed issue with the npd falling back to inClusterConfig.
      
      cc @kubernetes/sig-scalability-misc @wojtek-t @gmarek
      da7d17c8
    • deads2k's avatar
      move utils used in restclient to client-go · c4771713
      deads2k authored
      c4771713
    • deads2k's avatar
      move restclient/watch · 6c6616b4
      deads2k authored
      6c6616b4
    • deads2k's avatar
      remove kubernetes copy of clientcmd types · cdb2934b
      deads2k authored
      cdb2934b
    • deads2k's avatar
      update client-go · 929a8480
      deads2k authored
      929a8480
    • Kubernetes Submit Queue's avatar
      Merge pull request #40081 from kargakis/cleanup-policy-fix · c40a668a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      controller: decouple cleanup policy from deployment strategies
      
      Deployments get cleaned up only when they are paused, they get scaled up/down,
      or when the strategy that drives rollouts completes. This means that stuck
      deployments that fall into none of the above categories will not get cleaned
      up. Since cleanup is already safe by itself (we only delete old replica sets
      that are synced by the replica set controller and have no replicas) we can
      execute it for every deployment when there is no intention to rollback.
      
      Fixes https://github.com/kubernetes/kubernetes/issues/40068
      c40a668a
    • Dr. Stefan Schimanski's avatar
      969bcc79
    • Dr. Stefan Schimanski's avatar
    • Dr. Stefan Schimanski's avatar
      genericapiserver: fix imports · 3d9449a3
      Dr. Stefan Schimanski authored
      3d9449a3
    • Dr. Stefan Schimanski's avatar
      genericapiserver: move packages · e3b6235d
      Dr. Stefan Schimanski authored
      Towards a sane k8s.io/apiserver package structure.
      e3b6235d
    • Kubernetes Submit Queue's avatar
      Merge pull request #40080 from soltysh/fix_resttest · f8ed5c36
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix resttest Update action when AllowUnconditionalUpdate is false
      
      Currently our storage Update test assumes that AllowUncoditionalUpdate returns true, and in testUpdateRejectsMismatchedNamespace updates the same object it's passing to create. This results in errors when trying to update that object, due to resourceVersion not being set to a proper value. This patch modifes this so that the update is executed on a stored object, which will have correct values set.
      
      @deads2k ptal
      @kubernetes/sig-api-machinery-misc fyi
      f8ed5c36
    • Kubernetes Submit Queue's avatar
      Merge pull request #29666 from vefimova/fix_29270 · 0144fae6
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fixed merging of host's and dns' search lines
      
      Fixed forming of pod's Search line in resolv.conf:
       - exclude duplicates while merging of host's and dns' search lines to form pod's one
       - truncate pod's search line if it exceeds resolver limits: is > 255 chars and containes > 6 searches
       - monitoring the resolv.conf file which is used by kubelet (set thru --resolv-conf="") and logging and eventing if search line in it consists of more than 3 entries (or 6 if Cluster Domain is set) or its lenght is > 255 chars
       - logging and eventing when a pod's search line is > 255 chars or containes > 6 searches during forming
      
      Fixes #29270
      
      **Release note**:
      
      ```release-note
      Fixed forming resolver search line for pods: exclude duplicates, obey libc limitations, logging and eventing appropriately.
      ```
      0144fae6
    • Michail Kargakis's avatar
      controller: decouple cleanup policy from deployment strategies · d5227e36
      Michail Kargakis authored
      Deployments get cleaned up only when they are paused, they get scaled up/down,
      or when the strategy that drives rollouts completes. This means that stuck
      deployments that fall into none of the above categories will not get cleaned
      up. Since cleanup is already safe by itself (we only delete old replica sets
      that are synced by the replica set controller and have no replicas) we can
      execute it for every deployment when there is no intention to rollback.
      d5227e36
    • Kubernetes Submit Queue's avatar
      Merge pull request #39324 from wojtek-t/change_patch_api · 723fa087
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Prepare for using optimized conversion to/from map[string]interface{} in Patch operation
      
      Ref #39017
      723fa087
    • Kubernetes Submit Queue's avatar
      Merge pull request #39846 from andrewrynhard/add_authorization_mode · f90bb177
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add authorization mode to kubeadm
      
      This PR adds an option in `kubeadm` to allow a user to specify an [authorization plugin](https://kubernetes.io/docs/admin/authorization/). It defaults to RBAC.
      f90bb177
    • Kubernetes Submit Queue's avatar
      Merge pull request #39738 from shashidharatd/federation-e2e · 3166a303
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Move Federation e2e test code to independent package
      
      **What this PR does / why we need it**: Move federation e2e test code to an independent package called e2e_federation. This will help in multiple ways.
      - easy to move the federation related code to a separate repo from core.
      - one step closer to register/unregister clusters to federation only once during e2e instead of every test case. we need to introduce singleton to register cluster during framework creation which will be handled in subsequent PR.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # 
      Optimize federation e2e suite which takes long time to execute currently.
      
      **Special notes for your reviewer**: I have tried to segregate into multiple commits. request to review commit by commit. also mostly the change is about moving the functions to a new location/package.
      
      **Release note**:
      
      ```release-note
      ```
      
      @madhusudancs @nikhiljindal @colhom
      3166a303
    • Kubernetes Submit Queue's avatar
      Merge pull request #40107 from dashpole/flaky_dynamic_kconfig · 582aa0d7
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      turn on dynamic config for flaky tests
      
      Added dynamic config to inode eviction node e2e tests in #39546, but did not enable it for flaky tests.  This PR enables this feature for the flaky test suite
      582aa0d7
    • Kubernetes Submit Queue's avatar
      Merge pull request #36530 from apelisse/owners-pkg-cloudprovider · 60489f83
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Curating Owners: pkg/cloudprovider
      
      cc @runseb @justinsb @kerneltime @mikedanese @svanharmelen @anguslees @brendandburns @abrarshivani @imkin @luomiao @colemickens @ngtuna @dagnello @abithap
      
      In an effort to expand the existing pool of reviewers and establish a
      two-tiered review process (first someone lgtms and then someone
      experienced in the project approves), we are adding new reviewers to
      existing owners files.
      
      
      If You Care About the Process:
      ------------------------------
      
      We did this by algorithmically figuring out who’s contributed code to
      the project and in what directories.  Unfortunately, that doesn’t work
      well: people that have made mechanical code changes (e.g change the
      copyright header across all directories) end up as reviewers in lots of
      places.
      
      Instead of using pure commit data, we generated an excessively large
      list of reviewers and pruned based on all time commit data, recent
      commit data and review data (number of PRs commented on).
      
      At this point we have a decent list of reviewers, but it needs one last
      pass for fine tuning.
      
      Also, see https://github.com/kubernetes/contrib/issues/1389.
      
      TLDR:
      -----
      
      As an owner of a sig/directory and a leader of the project, here’s what
      we need from you:
      
      1. Use PR https://github.com/kubernetes/kubernetes/pull/35715 as an example.
      
      2. The pull-request is made editable, please edit the `OWNERS` file to
      remove the names of people that shouldn't be reviewing code in the
      future in the **reviewers** section. You probably do NOT need to modify
      the **approvers** section. Names asre sorted by relevance, using some
      secret statistics.
      
      3. Notify me if you want some OWNERS file to be removed.  Being an
      approver or reviewer of a parent directory makes you a reviewer/approver
      of the subdirectories too, so not all OWNERS files may be necessary.
      
      4. Please use ALIAS if you want to use the same list of people over and
      over again (don't hesitate to ask me for help, or use the pull-request
      above as an example)
      60489f83
    • Kubernetes Submit Queue's avatar
      Merge pull request #40113 from maisem/cos · 29e2d8be
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Adding cos as an alias for gci.
      
      **What this PR does / why we need it**: Adding COS as an alias for GCI.
      
      cc: @adityakali @wonderfly
      29e2d8be
    • shashidharatd's avatar
      auto-generated bazel BUILD file changes · 85c3f0d6
      shashidharatd authored
      85c3f0d6
    • shashidharatd's avatar
    • shashidharatd's avatar
    • shashidharatd's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #36394 from apelisse/owners-cmd-kubelet · c1ecedf4
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Curating Owners: cmd/kubelet
      
      cc @yujuhong @dchen1107 @vishh
      
      In an effort to expand the existing pool of reviewers and establish a
      two-tiered review process (first someone lgtms and then someone
      experienced in the project approves), we are adding new reviewers to
      existing owners files.
      
      
      If You Care About the Process:
      ------------------------------
      
      We did this by algorithmically figuring out who’s contributed code to
      the project and in what directories.  Unfortunately, that doesn’t work
      well: people that have made mechanical code changes (e.g change the
      copyright header across all directories) end up as reviewers in lots of
      places.
      
      Instead of using pure commit data, we generated an excessively large
      list of reviewers and pruned based on all time commit data, recent
      commit data and review data (number of PRs commented on).
      
      At this point we have a decent list of reviewers, but it needs one last
      pass for fine tuning.
      
      Also, see https://github.com/kubernetes/contrib/issues/1389.
      
      TLDR:
      -----
      
      As an owner of a sig/directory and a leader of the project, here’s what
      we need from you:
      
      1. Use PR https://github.com/kubernetes/kubernetes/pull/35715 as an example.
      
      2. The pull-request is made editable, please edit the `OWNERS` file to
      remove the names of people that shouldn't be reviewing code in the future in
      the **reviewers** section. You probably do NOT need to modify the **approvers**
      section. Names asre sorted by relevance, using some secret statistics.
      
      3. Notify me if you want some OWNERS file to be removed.  Being an
      approver or reviewer of a parent directory makes you a reviewer/approver
      of the subdirectories too, so not all OWNERS files may be necessary.
      
      4. Please use ALIAS if you want to use the same list of people over and
      over again (don't hesitate to ask me for help, or use the pull-request
      above as an example)
      c1ecedf4
  2. 18 Jan, 2017 13 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #40095 from dashpole/update_godeps · a768f154
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 40105, 40095)
      
      Update dependencies: aws-sdk-go to 1.6.10; also cadvisor
      
      updating cadvisor mainly to include [this bugfix #1558](https://github.com/google/cadvisor/pull/1558)
      
      Because cadvisor vendors a newer version of aws than kubernetes, the aws dependency needed to be updated as well.
      cc: @justinsb @zmerlynn @timstclair
      a768f154
    • Kubernetes Submit Queue's avatar
      Merge pull request #40105 from sc68cal/bugs/40102 · 0c61553c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 40105, 40095)
      
      [OpenStack-Heat] Fix regex used to get object-store URL
      
      **Release note**:
      
      ```release-note
      
      Fixes a bug in the OpenStack-Heat kubernetes provider, in the handling of differences between the Identity v2 and Identity v3 APIs
      
      ```
      0c61553c
    • caleb miles's avatar
      Update OWNERS · 7626d0c0
      caleb miles authored
      make the sig-node-reviewers alias the reviewer for `cmd/kubelet/app`
      7626d0c0
    • caleb miles's avatar
      Update OWNERS · fc296710
      caleb miles authored
      add derekwaynecarr and Random-Liu as approvers and set the alias sig-node-reviewers as the reviewer
      fc296710
    • Maisem Ali's avatar
      Adding cos as an alias for gci. · 52b6c9bb
      Maisem Ali authored
      52b6c9bb
    • Kubernetes Submit Queue's avatar
      Merge pull request #39904 from jayunit100/scheduler_factory_iface_2 · 9dd96e31
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 39898, 39904)
      
      [scheduler] interface for config
      
      **What this PR fixes**
      
      This PR converts the Scheduler configuration factory into an interface, so that
      - the scheduler_perf and scheduler integration tests dont rely on the struct for their implementation
      - the exported functionality of the factory (i.e. what it needs to provide to create a scheduler configuration) is completely explicit, rather then completely coupled to a struct.
      - makes some parts of the factory immutable, again to minimize possible coupling.  
      
      This makes it easier to make a custom factory in instances where we might specifically want to import scheduler logic without actually reusing the entire scheduler codebase.
      9dd96e31
    • Kubernetes Submit Queue's avatar
      Merge pull request #39898 from ixdy/bazel-release-tars · b29d9cdb
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Build release tars using bazel
      
      **What this PR does / why we need it**: builds equivalents of the various kubernetes release tarballs, solely using bazel.
      
      For example, you can now do
      ```console
      $ make bazel-release
      $ hack/e2e.go -v -up -test -down
      ```
      
      **Special notes for your reviewer**: this is currently dependent on https://github.com/ixdy/bazel/commit/3b29803eb528ff525c7024190ffbf4b08c598cf2, which I have yet to turn into a pull request, since I'm still trying to figure out if this is the best approach.
      
      Basically, the issue comes up with the way we generate the various server docker image tarfiles and load them on nodes:
      * we `md5sum` the binary being encapsulated (e.g. kube-proxy) and save that to `$binary.docker_tag` in the server tarball
      * we then build the docker image and tag using that md5sum (e.g. `gcr.io/google_containers/kube-proxy:$MD5SUM`)
      * we `docker save` this image, which embeds the full tag in the `$binary.tar` file.
      * on cluster startup, we `docker load` these tarballs, which are loaded with the tag that we'd created at build time. the nodes then use the `$binary.docker_tag` file to find the right image.
      
      With the current bazel `docker_build` rule, the tag isn't saved in the docker image tar, so the node is unable to find the image after `docker load`ing it.
      
      My changes to the rule save the tag in the docker image tar, though I don't know if there are subtle issues with it. (Maybe we want to only tag when `--stamp` is given?)
      
      Also, the docker images produced by bazel have the timestamp set to the unix epoch, which is not great for debugging. Might be another thing to change with a `--stamp`.
      
      Long story short, we probably need to follow up with bazel folks on the best way to solve this problem.
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      b29d9cdb
    • Andrew Rynhard's avatar
      Add authorization mode to kubeadm · f46bf42b
      Andrew Rynhard authored
      f46bf42b
    • David Ashpole's avatar
      turn on dynamic config for flaky tests · caa9cc0b
      David Ashpole authored
      caa9cc0b
    • Kubernetes Submit Queue's avatar
      Merge pull request #39042 from juanvallejo/jvallejo/dont-filter-pods-if-json-or-yaml · 4520819d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 36467, 36528, 39568, 40094, 39042)
      
      do not filter kubectl get pods if -o json or yaml
      
      Fixes: https://github.com/kubernetes/kubernetes/issues/38327
      
      This patch sets the value of --show-all to true if the output format
      specified is 'json' or 'yaml'.
      
      **Release note**:
      ```release-note
      release-note-none
      ```
      
      @smarterclayton
      4520819d
    • Kubernetes Submit Queue's avatar
      Merge pull request #40094 from zmerlynn/cvm-v20170117 · 76d023ca
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 36467, 36528, 39568, 40094, 39042)
      
      Bump GCE to container-vm-v20170117
      
      Base image update only, no kubelet or Docker updates.
      
      ```release-note
      Update GCE ContainerVM deployment to container-vm-v20170117 to pick up CVE fixes in base image.
      ```
      76d023ca
    • Kubernetes Submit Queue's avatar
      Merge pull request #39568 from k82cn/cc_sig_pred · b9f02bd2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 36467, 36528, 39568, 40094, 39042)
      
      Improve code coverage for algorithm/predicates.
      
      Improve code coverage for algorithm/predicates for #39559 .
      
      Improved coverage from 71.3% to 81.9%.
      
      Coverage report: [combined-coverage.html.gz](https://github.com/kubernetes/kubernetes/files/691518/combined-coverage.html.gz)
      b9f02bd2
    • Sean M. Collins's avatar
      [OpenStack-Heat] Fix regex used to get object-store URL · 8ad7e161
      Sean M. Collins authored
      "publicURL" is used for endpoints in the Identity v2 API, while in the
      Identity v3 API it has been changed to just "public"
      
      Fixes #40102
      8ad7e161