1. 10 Apr, 2017 26 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #43736 from NickrenREN/cm-extrac · dda64fd1
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 43870, 30302, 42722, 43736)
      
      Extract ParseCIDR and modify attachDetachControllerName
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      dda64fd1
    • Kubernetes Submit Queue's avatar
      Merge pull request #42722 from sttts/sttts-federation-core-group · e864b31c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 43870, 30302, 42722, 43736)
      
      federation: avoid double core group registration
      
      The federation apiserver installed its custom core group into the global `pkg/api` registry, leading to double registration. Luckily (or maybe unfortunately) we did not fail hard in this case, but the init funcs just ignored the error.
      
      This PR creates an extra apigroup registry based on the already existing federation `core.Scheme`. This decouples the two core groups (which happen to co-exist in hyperkube).
      e864b31c
    • Kubernetes Submit Queue's avatar
      Merge pull request #30302 from aveshagarwal/master-project-node-selector-taints-tolerations · d2e4f547
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 43870, 30302, 42722, 43736)
      
      Admission plugin to merge pod and namespace tolerations for restricting pod placement on nodes
      
      ```release-note
      This admission plugin checks for tolerations on the pod being admitted and its namespace, and verifies if there is any conflict. If there is no conflict, then it merges the pod's namespace tolerations with the the pod's tolerations and it verifies them against its namespace' whitelist of tolerations and returns. If a namespace does not have its default or whitelist tolerations specified, then cluster level default and whitelist is used. An example of its versioned config:
      
      apiVersion: apiserver.k8s.io/v1alpha1
      kind: AdmissionConfiguration
      plugins:
      - name: "PodTolerationRestriction"
        configuration:
          apiVersion: podtolerationrestriction.admission.k8s.io/v1alpha1
          kind: Configuration
          default:
           - Key: key1
             Value: value1
           - Key: key2
             Value: value2
          whitelist:
          - Key: key1
            Value: value1
          - Key: key2
            Value: value2
      ```
      d2e4f547
    • Kubernetes Submit Queue's avatar
      Merge pull request #43870 from ahmetb/readme-link · fddc0b4a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Update link in README after docs migration
      
      Fixing what-is-k8s link in README. This removes an extra hop caused by docs migration.
      fddc0b4a
    • Kubernetes Submit Queue's avatar
      Merge pull request #43767 from deads2k/server-13-namer · f5052024
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      remove go-restful from namer for rest handling
      
      Our RESTHandler code is currently tightly coupled to go-restful, but there's no reason for this coupling.  It makes integrations that want API handling (decode, sanity check, admission, verb handling), but don't need the REST installer flow impractical.  I know of two layers now: metrics and TPR.
      
      This starts the process of unwinding by switching the `ScopeNamer` (used for request identification and selflinks) to use the standard http library along with the `RequestInfo` we place in the context for authorization and any other interested layer.
      
      @kubernetes/sig-api-machinery-misc @smarterclayton @ncdc @sttts
      f5052024
    • Dr. Stefan Schimanski's avatar
      dcb50aa5
    • Kubernetes Submit Queue's avatar
      Merge pull request #44256 from NickrenREN/scheduler-event · 9a9f622b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Scheduler event: nit: when bind fails, send warning event
      
      **Release note**:
      ```release-note
      NONE
      ```
      9a9f622b
    • Kubernetes Submit Queue's avatar
      Merge pull request #44137 from k82cn/k8s_44135 · 2899f47b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 41758, 44137)
      
      Removed hostname/subdomain annotation.
      
      fixes #44135
      
      ```release-note
      Remove `pod.beta.kubernetes.io/hostname` and `pod.beta.kubernetes.io/subdomain` annotations. 
      Users should use `pod.spec.hostname` and `pod.spec.subdomain` instead.
      ```
      2899f47b
    • Kubernetes Submit Queue's avatar
      Merge pull request #41758 from abdasgupta/go18-resolve · 4ee4df96
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 41758, 44137)
      
      Updated key.pm and cert.pm to remove error in setting up localhostCert pool.
      Signed-off-by: 's avatarAbhishek Dasgupta <a10gupta@linux.vnet.ibm.com>
      
      Errors like following are coming while running `make test` with Go1.8:
      ```
      === RUN   TestProxyUpgrade
      2017/02/16 06:36:19 http: TLS handshake error from 127.0.0.1:36740: tls: no cipher suite supported by both client and server
      2017/02/16 06:36:19 http: panic serving 127.0.0.1:46266: runtime error: invalid memory address or nil pointer dereference
      goroutine 31 [running]:
      net/http.(*conn).serve.func1(0xc420213ea0)
      	/usr/local/go/src/net/http/server.go:1721 +0xb0
      panic(0x703e00, 0xc05b00)
      	/usr/local/go/src/runtime/panic.go:489 +0x284
      k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/registry/generic/rest.(*UpgradeAwareProxyHandler).tryUpgrade(0xc42034b0e0, 0xbbba60, 0xc4203f81c0, 0xc42043b300, 0xc4200a1b00)
      	/root/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/registry/generic/rest/proxy.go:155 +0x4d8
      k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/registry/generic/rest.(*UpgradeAwareProxyHandler).ServeHTTP(0xc42034b0e0, 0xbbba60, 0xc4203f81c0, 0xc42043b300)
      	/root/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/registry/generic/rest/proxy.go:86 +0x7c
      net/http.serverHandler.ServeHTTP(0xc4203ac370, 0xbbba60, 0xc4203f81c0, 0xc42043b300)
      	/usr/local/go/src/net/http/server.go:2568 +0x90
      net/http.(*conn).serve(0xc420213ea0, 0xbbc9a0, 0xc4202e9ec0)
      	/usr/local/go/src/net/http/server.go:1825 +0x514
      created by net/http.(*Server).Serve
      	/usr/local/go/src/net/http/server.go:2668 +0x254
      --- FAIL: TestProxyUpgrade (0.01s)
      	proxy_test.go:347: error setting up localhostCert pool
      	proxy_test.go:377: https (valid hostname): proxy_test: x509: RSA key missing NULL parameters
      	proxy_test.go:441: https (valid hostname + RootCAs): websocket dial err: websocket.Dial ws://127.0.0.1:45249/some/path: unexpected EOF
      ```
      
      This PR is resolving similar errors through updating Certificate and Key variables.
      4ee4df96
    • Kubernetes Submit Queue's avatar
      Merge pull request #43990 from php-coder/e2e_readmes · f3d2ea5d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      test/e2e*: add/update README.md files
      
      **What this PR does / why we need it**:
      
      This PR is adding `README.md` files with a link to the documentation to all E2E tests.
      f3d2ea5d
    • Kubernetes Submit Queue's avatar
      Merge pull request #43377 from deads2k/server-09-logging · a9b0aaa6
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      only log stacks on server errors
      
      Stack traces on http logging statements can be useful, but you  usually only need them for server errors not for things like redirects or even client errors since the server won't be fixing those.
      
      This tightens the "log stack" behavior to only happen for server errors.  Messages will still be logged, but the automatic stacks will only come out for server errors.
      
      @enj @mfojtik @smarterclayton
      @kubernetes/sig-api-machinery-misc
      a9b0aaa6
    • Kubernetes Submit Queue's avatar
      Merge pull request #41995 from roidelapluie/41990-a · 3f941ac1
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Improvements to mustrunas_test.go
      
      refs #41990
      Signed-off-by: 's avatarJulien Pivotto <roidelapluie@inuits.eu>
      
      
      
      **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 #41990
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      ```
      3f941ac1
    • deads2k's avatar
      remove go-restful from namer for rest handling · da279573
      deads2k authored
      da279573
    • Kubernetes Submit Queue's avatar
      Merge pull request #43943 from knightXun/patch-2 · a177c8e8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Update meta.go
      
      i think that's better,just a advise.less code sounds good.
      a177c8e8
    • Kubernetes Submit Queue's avatar
      Merge pull request #42313 from timchenxiaoyu/completelytypo · 50b104b8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      fix completely typo
      50b104b8
    • Kubernetes Submit Queue's avatar
      Merge pull request #44260 from CaoShuFeng/apiservicesv1 · 19b8be8b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Use const value for legacyAPIServiceName
      
      **Release note**:
      
      ```None
      ```
      19b8be8b
    • Kubernetes Submit Queue's avatar
      Merge pull request #43679 from xingzhou/kube-42121 · 3572e5ca
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Improve event msg for PV controller when using external provisioner
      
      Improve event msg for PV controller when using external provisioner
      
      **Which issue this PR fixes** *:
      Fixed part of #42121
      
      **Special notes for your reviewer**:
      @jsafrane, as many of our users are confused by the original message, can we fix the message first and then consider how to control the count of the events?
      3572e5ca
    • deads2k's avatar
      only log stacks on server errors · b73cddb2
      deads2k authored
      b73cddb2
    • Abhishek Dasgupta's avatar
    • Cao Shufeng's avatar
      Use const value for legacyAPIServiceName · f85899a9
      Cao Shufeng authored
      f85899a9
    • Kubernetes Submit Queue's avatar
      Merge pull request #42225 from nikhiljindal/DisableAlphaAPIs · e18843d3
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44019, 42225)
      
      federation: Fixing runtime-config support for federation-apiserver
      
      Fixes https://github.com/kubernetes/kubernetes/issues/42587
      Ref https://github.com/kubernetes/kubernetes/issues/38593
      
      Fixing the broken `--runtime-config` flag support in federation-apiserver. Fixing the bugs and using it to disable batch and autoscaling groups. Users can enable them by passing `--runtime-config=apis/all=true` to federation-apiserver.
      ~This also includes a bug fix to kube-apiserver registry that allows users to disable api/v1 resources~
      
      cc @kubernetes/sig-federation-pr-reviews
      e18843d3
    • Kubernetes Submit Queue's avatar
      Merge pull request #44019 from thockin/proxy-defer-on-update-events-2 · 94836a52
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44019, 42225)
      
      Move On*Update handling into sync funcion
      94836a52
    • Kubernetes Submit Queue's avatar
      Merge pull request #41687 from aliscott/fix_overwriting_err · 97857e83
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix original error being overwritten before returned
      97857e83
    • Klaus Ma's avatar
      Removed hostname/subdomain annotation. · c2b629ee
      Klaus Ma authored
      c2b629ee
    • NickrenREN's avatar
      Nit: when bind fails, send warning event · 609ddac8
      NickrenREN authored
      609ddac8
    • Kubernetes Submit Queue's avatar
      Merge pull request #44197 from Random-Liu/dockershim-only-mode · 357af077
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add dockershim only mode
      
      This PR added a `experimental-dockershim` hidden flag in kubelet to run dockershim only.
      
      We introduce this flag mainly for cri validation test. In the future we should compile dockershim into another binary.
      
      @yujuhong @feiskyer @xlgao-zju 
      /cc @kubernetes/sig-node-pr-reviews
      357af077
  2. 09 Apr, 2017 3 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #43136 from shashidharatd/kubectl-tests · eed7d112
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      [Federation] Fix Running service controller in federation kubectl tests
      
      Fixes:  #42607
      
      cc @nikhiljindal @kubernetes/sig-federation-bugs
      eed7d112
    • Kubernetes Submit Queue's avatar
      Merge pull request #44244 from kargakis/fix-kubeadm-help · 84e2c636
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      kubeadm: grammatical fixes in join help
      84e2c636
    • Kubernetes Submit Queue's avatar
      Merge pull request #43892 from bsalamat/sched_conf1 · 6e3bd081
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Scheduler can recieve its policy configuration from a ConfigMap
      
      **What this PR does / why we need it**: This PR adds the ability to scheduler to receive its policy configuration from a ConfigMap. Before this, scheduler could receive its policy config only from a file. The logic to watch the ConfigMap object will be added in a 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 #
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```Add the ability to the default scheduler to receive its policy configuration from a ConfigMap object.
      ```
      6e3bd081
  3. 08 Apr, 2017 11 commits