1. 04 Dec, 2016 2 commits
  2. 03 Dec, 2016 38 commits
    • Clayton Coleman's avatar
      6536dcfd
    • Clayton Coleman's avatar
      3e433438
    • Clayton Coleman's avatar
      staging fails on mac · a53d89a3
      Clayton Coleman authored
      a53d89a3
    • Clayton Coleman's avatar
      138267c8
    • Kubernetes Submit Queue's avatar
      Merge pull request #37649 from smarterclayton/top_node · 12801e8b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      kubectl top pod|node should handle when Heapster is somewhere else
      
      OpenShift runs Heapster on HTTPS, which means `top node` and `top pod`
      are broken because they hardcode 'http' as the scheme. Provide an
      options struct allowing users to specify `--heapster-namespace`,
      `--heapster-service`, `--heapster-scheme`, and `--heapster-port` to the
      commands (leveraging the existing defaults).
      
      @kubernetes/sig-metrics makes top a little more useful in other spots
      12801e8b
    • Kubernetes Submit Queue's avatar
      Merge pull request #36646 from kargakis/create-pdb-subcommand · db323e98
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 38049, 37823, 38000, 36646)
      
      kubectl: add create pdb subcommand
      
      @mwielgus @mml @kubernetes/kubectl
      
      ```release-note
      Add kubectl create poddisruptionbudget command
      ```
      db323e98
    • Kubernetes Submit Queue's avatar
      Merge pull request #38000 from MrHohn/dns-log-level · cfaff2db
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 38049, 37823, 38000, 36646)
      
      Fixes kubedns logging level
      
      We should have bumped up the verbose level to v=2 for `kubedns` after cutting the last release, as the TODO indicates.
      
      @bowei @thockin
      cfaff2db
    • Kubernetes Submit Queue's avatar
      Merge pull request #37823 from danwinship/better-fuzzing · 723a200c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 38049, 37823, 38000, 36646)
      
      Test 0-length-arrays in fuzzing tests
      
      While hacking on #37289 I noticed that our fuzzing tests test nil slices and slices of length 1, but not slices of length 0, meaning we aren't testing that 0-length slices get treated the same as nil in all the places we expect them to (and in particular, we aren't ensuring that comparisons always use api.Semantic.DeepEqual rather than reflect.DeepEqual). (Though in fact, changing the fuzzer didn't turn up any bugs, so maybe this effectively gets tested somewhere else...)
      
      `fuzz.New().NilChance(.5).NumElements(0, 1)` means we end up generating `nil` 50% of the time, a length 0 array 25% of the time, and a length 1 array 25% of the time... maybe it should be `fuzz.New().NilChance(.33).NumElements(0, 1)` instead?
      
      The gofuzz rebase is to pull in https://github.com/google/gofuzz/pull/20, and the other fix is just a drive-by.
      723a200c
    • Kubernetes Submit Queue's avatar
      Merge pull request #38049 from smarterclayton/revert_36439 · 07dd740a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 38049, 37823, 38000, 36646)
      
      Revert "test: update rollover test to wait for available rs before adopting"
      
      This reverts commit 5b7bf78f from pr #36439 which appears to have mostly broken the gci-gke test.
      07dd740a
    • Kubernetes Submit Queue's avatar
      Merge pull request #37547 from sttts/sttts-cut-off-genericapserver-from-registry · ad72d172
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Cut genericapserver->registry dependency
      
      Towards moving genericapiserver into staging.
      ad72d172
    • Kubernetes Submit Queue's avatar
      Merge pull request #37856 from timstclair/summary-test · 9f66f754
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 37692, 37785, 37647, 37941, 37856)
      
      Verify misc container in summary test
      
      Should detect issue from https://github.com/kubernetes/kubernetes/issues/35214, https://github.com/kubernetes/kubernetes/issues/37453
      
      /cc @piosz @dchen1107
      9f66f754
    • Kubernetes Submit Queue's avatar
      Merge pull request #37941 from Crassirostris/fluentd-gcp-config-unification · ce4af7f0
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 37692, 37785, 37647, 37941, 37856)
      
      Use unified gcp fluentd image for gci and cvm
      
      Follow-up of https://github.com/kubernetes/kubernetes/pull/37681
      
      Actually unify the pod specs for CVM and GCI, to simplify the configuration
      
      CC @piosz
      ce4af7f0
    • Kubernetes Submit Queue's avatar
      Merge pull request #37647 from bowei/priv-pod-e2e · 4451410b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 37692, 37785, 37647, 37941, 37856)
      
      Remove extraneous curl, pods, etc from privileged pod test
      4451410b
    • Kubernetes Submit Queue's avatar
      Merge pull request #37785 from tanshanshan/fix-small · 8256fa1f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 37692, 37785, 37647, 37941, 37856)
      
      fix scheduler extender example
      
      <!--  Thanks for sending a pull request!  Here are some tips for you:
      1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md
      2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md
      3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes
      -->
      
      **What this PR does / why we need it**:
      
      Fix scheduler extender example , refer to [kubernetes/plugin/pkg/scheduler/api/types.go](https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/scheduler/api/types.go)
      
      Thanks!
      **Special notes for your reviewer**:
      
      **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
      ```
      8256fa1f
    • Kubernetes Submit Queue's avatar
      Merge pull request #37692 from wojtek-t/storage_resource_version_for_get · 16a9c0b4
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Handle RV in Get calls to storage interface.
      
      Ref #37473
      16a9c0b4
    • Clayton Coleman's avatar
      7aacb61f
    • Kubernetes Submit Queue's avatar
      Merge pull request #37839 from euank/modern-python-print · e15cd672
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      cluster: fix gcloud check for python3
      
      cc @jlowdermilk as the author of the regressing commit.
      e15cd672
    • Dr. Stefan Schimanski's avatar
      Update bazel · b2b0142b
      Dr. Stefan Schimanski authored
      b2b0142b
    • Dr. Stefan Schimanski's avatar
    • Dr. Stefan Schimanski's avatar
      eeb582e5
    • Kubernetes Submit Queue's avatar
      Merge pull request #37697 from deads2k/auth-06-simplify-authz · 332305cb
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 35300, 36709, 37643, 37813, 37697)
      
      simplify the authorization attribute getter
      
      Construct the authorization attributes directly from the context.  This eliminates unnecessary redirection.  
      
      @sttts
      332305cb
    • Kubernetes Submit Queue's avatar
      Merge pull request #37813 from… · 00e369b1
      Kubernetes Submit Queue authored
      Merge pull request #37813 from kubernetes/revert-36625-branch-eliminate-recursive-call-attemptToUpdateMasterRoleLabelsAndTaints
      
      Automatic merge from submit-queue (batch tested with PRs 35300, 36709, 37643, 37813, 37697)
      
      Revert "[kubeadm] use iteration instead of recursion in function"
      
      Reverts kubernetes/kubernetes#36625
      
      Removing the recursive call means that `n` is never updated, so you never succeed in the update, and you've creating an infinite loop.
      
      Also, this entire bit of functionality should be a patch and you won't have to worry about conflicts.  
      
      @luxas
      00e369b1
    • Kubernetes Submit Queue's avatar
      Merge pull request #37643 from ncdc/informer-gen · f3d463f1
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 35300, 36709, 37643, 37813, 37697)
      
      Add generated informers
      
      Add informer-gen and the informers it generates. We'll do follow-up PRs to convert everything currently using the hand-written informers to the generated ones.
      
      TODO:
      
      - [x] switch to `GroupVersionResource`
      - [x] finish godoc
      
      @deads2k @caesarxuchao @sttts @liggitt
      f3d463f1
    • Kubernetes Submit Queue's avatar
      Merge pull request #36709 from hongchaodeng/e3 · 959d386c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 35300, 36709, 37643, 37813, 37697)
      
      [etcd] test cleanup: remove unnecessary AddPrefix()
      
      What?
      Remove etcdtest.AddPrefix() in tests. They will be automatically prepended in etcd storage.
      
      Why?
      ref: #36290 #36374
      After the change, it will double prepend.
      959d386c
    • Kubernetes Submit Queue's avatar
      Merge pull request #35300 from deads2k/rbac-17-subjectlocator · b1a3f379
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 35300, 36709, 37643, 37813, 37697)
      
      add rbac action to subjects type
      
      This adds the ability to go from an authorization action to the list subjects who have the power to perform the action.  This will be used to either back an RBAC specific endpoint or generic authorization endpoint.  Because of the way authorization works today, the set of subjects returned will always be a subset of those with access since any authorizer can say yes.
      
      @kubernetes/sig-auth
      b1a3f379
    • Kubernetes Submit Queue's avatar
      Merge pull request #37826 from danwinship/etcd-path · 69170e72
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 37094, 37663, 37442, 37808, 37826)
      
      Fix the PATH that install-etcd.sh tells you to use
      
      After you run install-etcd.sh, it tells you:
      
          etcd v3.0.14 installed. To use:
          export PATH=${PATH}:/home/danw/rh/go/src/k8s.io/kubernetes/third_party/etcd
      
      which doesn't work if you have an older etcd installed in /usr/bin:
      
          danw@w541:kubernetes (master)> PATH=${PATH}:/home/danw/rh/go/src/k8s.io/kubernetes/third_party/etcd etcd --version
          etcd Version: 2.2.5
      
      You need to put the local etcd dir first in PATH, not last.
      69170e72
    • Kubernetes Submit Queue's avatar
      Merge pull request #37808 from hex108/add_retry_interval · b926fa50
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 37094, 37663, 37442, 37808, 37826)
      
      Add some sleep between each retry to set container's oom scroe
      
      Ref https://github.com/kubernetes/kubernetes/issues/23607#issuecomment-264135015
      b926fa50
    • Kubernetes Submit Queue's avatar
      Merge pull request #37442 from NickrenREN/kubelet-run · caa935df
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 37094, 37663, 37442, 37808, 37826)
      
      fix if condition question in kubelet run() function
      
      Here variable err returned by function NewForConfig(&eventClientConfig) if CreateAPIServerClientConfig() function runs correctly .  And we should not print "invalid kubeconfig" info.
      Should we use else instead of if.
      caa935df
    • Kubernetes Submit Queue's avatar
      Merge pull request #37663 from Random-Liu/fix-node-e2e-firewall-configure · ba62dafe
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 37094, 37663, 37442, 37808, 37826)
      
      Node E2E: Fix node e2e firewall configure.
      
      Get rid of the misleading error message:
      ```
      W1129 12:57:16.967] E1129 12:57:16.967130   29815 remote.go:204] Failed to configured firewall: command [ssh -i /home/jenkins/.ssh/google_compute_engine -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o CheckHostIP=no -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -o LogLevel=ERROR 104.154.201.208 -- sudo sh -c 'iptables -L INPUT | grep "Chain INPUT (policy DROP)"&&(iptables -C INPUT -w -p TCP -j ACCEPT || iptables -A INPUT -w -p TCP -j ACCEPT)&&(iptables -C INPUT -w -p UDP -j ACCEPT || iptables -A INPUT -w -p UDP -j ACCEPT)&&(iptables -C INPUT -w -p ICMP -j ACCEPT || iptables -A INPUT -w -p ICMP -j ACCEPT)'] failed with error: exit status 1 output: 
      W1129 12:57:17.271] E1129 12:57:17.271169   29815 remote.go:213] Failed to configured firewall: command [ssh -i /home/jenkins/.ssh/google_compute_engine -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o CheckHostIP=no -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -o LogLevel=ERROR 104.154.201.208 -- sudo sh -c 'iptables -L FORWARD | grep "Chain FORWARD (policy DROP)" > /dev/null&&(iptables -C FORWARD -w -p TCP -j ACCEPT || iptables -A FORWARD -w -p TCP -j ACCEPT)&&(iptables -C FORWARD -w -p UDP -j ACCEPT || iptables -A FORWARD -w -p UDP -j ACCEPT)&&(iptables -C FORWARD -w -p ICMP -j ACCEPT || iptables -A FORWARD -w -p ICMP -j ACCEPT)'] failed with error: exit status 1 output: 
      W1129 12:57:17.557] E1129 12:57:17.556683   29815 remote.go:204] Failed to configured firewall: command [ssh -i /home/jenkins/.ssh/google_compute_engine -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o CheckHostIP=no -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -o LogLevel=ERROR 104.154.128.178 -- sudo sh -c 'iptables -L INPUT | grep "Chain INPUT (policy DROP)"&&(iptables -C INPUT -w -p TCP -j ACCEPT || iptables -A INPUT -w -p TCP -j ACCEPT)&&(iptables -C INPUT -w -p UDP -j ACCEPT || iptables -A INPUT -w -p UDP -j ACCEPT)&&(iptables -C INPUT -w -p ICMP -j ACCEPT || iptables -A INPUT -w -p ICMP -j ACCEPT)'] failed with error: exit status 1 output: 
      W1129 12:57:17.771] I1129 12:57:17.771236   29815 remote.go:231] Killing any existing node processes on tmp-node-e2e-a1212c32-gci-dev-56-8977-0-0
      W1129 12:57:17.877] E1129 12:57:17.877123   29815 remote.go:213] Failed to configured firewall: command [ssh -i /home/jenkins/.ssh/google_compute_engine -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o CheckHostIP=no -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -o LogLevel=ERROR 104.154.128.178 -- sudo sh -c 'iptables -L FORWARD | grep "Chain FORWARD (policy DROP)" > /dev/null&&(iptables -C FORWARD -w -p TCP -j ACCEPT || iptables -A FORWARD -w -p TCP -j ACCEPT)&&(iptables -C FORWARD -w -p UDP -j ACCEPT || iptables -A FORWARD -w -p UDP -j ACCEPT)&&(iptables -C FORWARD -w -p ICMP -j ACCEPT || iptables -A FORWARD -w -p ICMP -j ACCEPT)'] failed with error: exit status 1 output: 
      W1129 12:57:17.898] I1129 12:57:17.898711   29815 remote.go:239] Extracting tar on tmp-node-e2e-a1212c32-gci-dev-56-8977-0-0
      W1129 12:57:17.941] E1129 12:57:17.941566   29815 remote.go:204] Failed to configured firewall: command [ssh -i /home/jenkins/.ssh/google_compute_engine -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o CheckHostIP=no -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -o LogLevel=ERROR 104.154.154.237 -- sudo sh -c 'iptables -L INPUT | grep "Chain INPUT (policy DROP)"&&(iptables -C INPUT -w -p TCP -j ACCEPT || iptables -A INPUT -w -p TCP -j ACCEPT)&&(iptables -C INPUT -w -p UDP -j ACCEPT || iptables -A INPUT -w -p UDP -j ACCEPT)&&(iptables -C INPUT -w -p ICMP -j ACCEPT || iptables -A INPUT -w -p ICMP -j ACCEPT)'] failed with error: exit status 1 output: 
      W1129 12:57:18.020] I1129 12:57:18.019802   29815 remote.go:231] Killing any existing node processes on tmp-node-e2e-a1212c32-coreos-alpha-1122-0-0-v20160727
      W1129 12:57:18.024] E1129 12:57:18.024044   29815 remote.go:213] Failed to configured firewall: command [ssh -i /home/jenkins/.ssh/google_compute_engine -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o CheckHostIP=no -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -o LogLevel=ERROR 104.154.154.237 -- sudo sh -c 'iptables -L FORWARD | grep "Chain FORWARD (policy DROP)" > /dev/null&&(iptables -C FORWARD -w -p TCP -j ACCEPT || iptables -A FORWARD -w -p TCP -j ACCEPT)&&(iptables -C FORWARD -w -p UDP -j ACCEPT || iptables -A FORWARD -w -p UDP -j ACCEPT)&&(iptables -C FORWARD -w -p ICMP -j ACCEPT || iptables -A FORWARD -w -p ICMP -j ACCEPT)'] failed with error: exit status 1 output: 
      ```
      
      The problem is that the command 'iptables -L FORWARD | grep "Chain FORWARD (policy DROP)" returns an error when the rule is not found, which is not expected behaviour.
      
      @freehan
      ba62dafe
    • Kubernetes Submit Queue's avatar
      Merge pull request #37094 from sjug/reshuffle_gobindata_dep · 8bf1ae83
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 37094, 37663, 37442, 37808, 37826)
      
      Moved gobindata, refactored ReadOrDie refs
      
      **What this PR does / why we need it**: Having gobindata inside of test/e2e/framework prevents external projects from importing the framework. Moving it out and managing refs fixes this problem.
      
      **Which issue this PR fixes**: fixes #37007
      8bf1ae83
    • Kubernetes Submit Queue's avatar
      Merge pull request #36732 from oulinbao/refactor_describe_containers · 91d8c411
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Refactor describe.go with PrefixWriter
      
      **What this PR does / why we need it**:
       refactor describeContainers function and decrease gocyclo result
      
      **Special notes for your reviewer**:
      the new PR for 36032
      https://github.com/kubernetes/kubernetes/pull/36032
      
      **Release note**:
      ```release-note
      ```NONE
      91d8c411
    • Wojciech Tyczynski's avatar
      ec247315
    • Kubernetes Submit Queue's avatar
      Merge pull request #38001 from dchen1107/master · 238ffdd0
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Set kernel.softlockup_panic =1 based on the flag.
      
      ref: https://github.com/kubernetes/kubernetes/issues/37853
      238ffdd0
    • Kubernetes Submit Queue's avatar
      Merge pull request #37678 from tsmetana/issue_37377 · 6fd00e9f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 37608, 37103, 37320, 37607, 37678)
      
      Fix issue #37377: Report an event on successful PVC provisioning
      
      This is a simple patch to fix the issue #37377: On a successful PVC provisioning an event is emitted so it's clear the provisioning actually succeeded.
      
      cc: @jsafrane
      6fd00e9f
    • Kubernetes Submit Queue's avatar
      Merge pull request #37607 from NickrenREN/metricStatfs · 5698b502
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 37608, 37103, 37320, 37607, 37678)
      
      MetricsStatfs GetMetrics() function test
      5698b502
    • Kubernetes Submit Queue's avatar
      Merge pull request #37320 from ivan4th/remove-stray-quote · 67740f5a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 37608, 37103, 37320, 37607, 37678)
      
      Remove stray quote from API docs
      
      There was a PR that removed backquote from the line recently, but there's also extra quote.
      67740f5a
    • Kubernetes Submit Queue's avatar
      Merge pull request #37103 from sttts/sttts-portforwardtester-linger-on-exit · df89a3c0
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 37608, 37103, 37320, 37607, 37678)
      
      portfordwardtester: avoid data loss during send+close+exit
      
      Following https://blog.netherlabs.nl/articles/2009/01/18/the-ultimate-so_linger-page-or-why-is-my-tcp-not-reliable when closing the sending connection in the port-forward-tester container.
      
      Potentially fixing https://github.com/kubernetes/kubernetes/issues/27680
      df89a3c0
    • Kubernetes Submit Queue's avatar
      Merge pull request #37608 from tianshapjq/modify-get-help · 39e63e3e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 37608, 37103, 37320, 37607, 37678)
      
      add some help info about the 'all' arg
      
      **What this PR does / why we need it**:
      There is an arg named "all" in the get command, we can use it like "kubectl get all". But we can get nothing about this arg in the help description. Users may not know how to use it without looking into the source code. So here I'm going to add some description about this arg.
      
      **Which issue this PR fixes** 
      We discussed about this in 
      In pkg/kubectl/cmd/get.go there is a confused arg named "all" [#37533](https://github.com/kubernetes/kubernetes/issues/37533)
      39e63e3e