1. 18 Jan, 2017 36 commits
    • deads2k's avatar
      add rbac v1beta1 · e74efe41
      deads2k authored
      e74efe41
    • deads2k's avatar
      remove fields not promoted to beta · cbf8ea2a
      deads2k authored
      cbf8ea2a
    • Kubernetes Submit Queue's avatar
      Merge pull request #40026 from shyamjvs/heapster-rbac-fix · d9467519
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Added RBAC for heapster in kubemark
      
      Fixes #39952 
      
      cc @wojtek-t @gmarek @deads2k
      d9467519
    • Shyam Jeedigunta's avatar
      Added RBAC for heapster in kubemark · 9b0d8b97
      Shyam Jeedigunta authored
      9b0d8b97
    • Kubernetes Submit Queue's avatar
      Merge pull request #40018 from sttts/sttts-genericapiserver-storage-dep · fe69dcf8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 40008, 40005, 40018)
      
      Fix wrong rename pkg/storage.Is{TestFail -> Conflict}
      fe69dcf8
    • Kubernetes Submit Queue's avatar
      Merge pull request #40005 from sttts/sttts-pkg-auth-handlers-genericapiserver · 3a77dd18
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 40008, 40005, 40018)
      
      genericapiserver: move pkg/auth/handlers into filters
      
      Move authn filters to the other api related filters.
      3a77dd18
    • Kubernetes Submit Queue's avatar
      Merge pull request #40008 from apprenda/kubeadm_112_init_token · 68955181
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      kubeadm: init must validate or generate token before anything else.
      
      **What this PR does / why we need it**: `kubeadm init` must validate or generate a token before anything else. Otherwise, if token validation or generation fail, one will need to run `kubeadm reset && systemctl restart kubelet` before re-running `kubeadm init`.
      
      **Which issue this PR fixes**: fixes kubernetes/kubeadm#112
      
      **Special notes for your reviewer**: /cc @luxas
      
      Tested manually.
      
      ### With no token
      
      ```
      $ sudo ./kubeadm init
      [kubeadm] WARNING: kubeadm is in alpha, please do not use it for production clusters.
      [preflight] Running pre-flight checks
      [init] Using Kubernetes version: v1.5.2
      [token-discovery] A token has not been provided, generating one
      [certificates] Generated Certificate Authority key and certificate.
      [certificates] Generated API Server key and certificate
      [certificates] Generated Service Account signing keys
      [certificates] Created keys and certificates in "/etc/kubernetes/pki"
      [kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/admin.conf"
      [kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/kubelet.conf"
      [apiclient] Created API client, waiting for the control plane to become ready
      [apiclient] All control plane components are healthy after 7.762803 seconds
      [apiclient] Waiting for at least one node to register and become ready
      [apiclient] First node is ready after 1.003148 seconds
      [apiclient] Creating a test deployment
      [apiclient] Test deployment succeeded
      [token-discovery] Using token: 8321b6:a535ba541af7623c
      [token-discovery] Created the kube-discovery deployment, waiting for it to become ready
      [token-discovery] kube-discovery is ready after 1.003423 seconds
      [addons] Created essential addon: kube-proxy
      [addons] Created essential addon: kube-dns
      Your Kubernetes master has initialized successfully!
      You should now deploy a pod network to the cluster.
      Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at:
          http://kubernetes.io/docs/admin/addons/
      You can now join any number of machines by running the following on each node:
      kubeadm join --discovery token://8321b6:a535ba541af7623c@10.142.0.6:9898
      ```
      
      ### With invalid token
      
      ```
      $ sudo ./kubeadm init --discovery token://12345:12345
      [kubeadm] WARNING: kubeadm is in alpha, please do not use it for production clusters.
      [preflight] Running pre-flight checks
      [init] Using Kubernetes version: v1.5.2
      [token-discovery] A token has been provided, validating [&{ID:12345 Secret:12345 Addresses:[]}]
      token ["12345:12345"] was not of form ["^([a-z0-9]{6})\\:([a-z0-9]{16})$"]
      ```
      
      ### With valid token
      
      ```
      $ sudo ./kubeadm ex token generate
      cd540e:c0e0318e2f4a63b1
      
      $ sudo ./kubeadm init --discovery token://cd540e:c0e0318e2f4a63b1
      [kubeadm] WARNING: kubeadm is in alpha, please do not use it for production clusters.
      [preflight] Running pre-flight checks
      [init] Using Kubernetes version: v1.5.2
      [token-discovery] A token has been provided, validating [&{ID:cd540e Secret:c0e0318e2f4a63b1 Addresses:[]}]
      [certificates] Generated Certificate Authority key and certificate.
      [certificates] Generated API Server key and certificate
      [certificates] Generated Service Account signing keys
      [certificates] Created keys and certificates in "/etc/kubernetes/pki"
      [kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/admin.conf"
      [kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/kubelet.conf"
      [apiclient] Created API client, waiting for the control plane to become ready
      [apiclient] All control plane components are healthy after 13.513305 seconds
      [apiclient] Waiting for at least one node to register and become ready
      [apiclient] First node is ready after 0.502656 seconds
      [apiclient] Creating a test deployment
      [apiclient] Test deployment succeeded
      [token-discovery] Using token: cd540e:c0e0318e2f4a63b1
      [token-discovery] Created the kube-discovery deployment, waiting for it to become ready
      [token-discovery] kube-discovery is ready after 2.002457 seconds
      [addons] Created essential addon: kube-proxy
      [addons] Created essential addon: kube-dns
      Your Kubernetes master has initialized successfully!
      You should now deploy a pod network to the cluster.
      Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at:
          http://kubernetes.io/docs/admin/addons/
      You can now join any number of machines by running the following on each node:
      kubeadm join --discovery token://cd540e:c0e0318e2f4a63b1@10.142.0.6:9898
      ```
      
      **Release note**:
      ```release-note
      NONE
      ```
      68955181
    • Dr. Stefan Schimanski's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #40030 from colemickens/colemickens-dyn-disk-name-length · 8f99b744
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 39826, 40030)
      
      azure disk: restrict length of name
      
      **What this PR does / why we need it**:
      Fixes dynamic disk provisioning on Azure by properly truncating the disk name to conform to the Azure API spec.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      n/a
      
      **Special notes for your reviewer**:
      n/a
      
      **Release note**:
      ```release-note
      azure disk: restrict name length for Azure specifications
      ```
      
      cc: @rootfs
      8f99b744
    • Kubernetes Submit Queue's avatar
      Merge pull request #39826 from shyamjvs/fake-docker-client-fix · 180936f8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Made tracing of calls and container lifecycle steps in FakeDockerClient optional
      
      Fixes #39717 
      
      Slightly refactored the FakeDockerClient code and made tracing optional (but enabled by default).
      
      @yujuhong @Random-Liu
      180936f8
    • Kubernetes Submit Queue's avatar
      Merge pull request #36520 from apelisse/owners-pkg-volume · f56b6069
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Curating Owners: pkg/volume
      
      cc @jsafrane @spothanis @agonzalezro @justinsb @johscheuer @simonswine @nelcy @pmorie @quofelix @sdminonne @thockin @saad-ali @rootfs
      
      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)
      f56b6069
    • Kubernetes Submit Queue's avatar
      Merge pull request #40047 from apelisse/create-sig-node-alias · c8d1b37a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      OWNERS: Create sig-node alias
      
      Create an alias group for sig-node
      
      This will be used by `pkg/kubelet/OWNERS` and `test/e2e_node/OWNERS`.
      
      **Release note**: NONE
      c8d1b37a
    • Saad Ali's avatar
      Update OWNERS · 9d08c9a3
      Saad Ali authored
      9d08c9a3
    • Saad Ali's avatar
      Update OWNERS · 52657867
      Saad Ali authored
      52657867
    • Saad Ali's avatar
      Update OWNERS · 6500f08e
      Saad Ali authored
      6500f08e
    • Saad Ali's avatar
      Update OWNERS · 5783a0ec
      Saad Ali authored
      5783a0ec
    • Saad Ali's avatar
      Update OWNERS · a4209731
      Saad Ali authored
      a4209731
    • Saad Ali's avatar
      Update OWNERS · d25c20bc
      Saad Ali authored
      d25c20bc
    • Saad Ali's avatar
      Update OWNERS · d6ba2fc3
      Saad Ali authored
      d6ba2fc3
    • Saad Ali's avatar
      Update OWNERS · 7c672117
      Saad Ali authored
      7c672117
    • Saad Ali's avatar
      Update OWNERS · b0e588ee
      Saad Ali authored
      b0e588ee
    • Saad Ali's avatar
      Update OWNERS · cb1bbf14
      Saad Ali authored
      cb1bbf14
    • Saad Ali's avatar
      Update OWNERS · 7918a8e8
      Saad Ali authored
      7918a8e8
    • Saad Ali's avatar
      Update OWNERS · 8e371e6d
      Saad Ali authored
      8e371e6d
    • Antoine Pelisse's avatar
      OWNERS: Create sig-node alias · f0540b3c
      Antoine Pelisse authored
      Create an alias group for sig-node
      f0540b3c
    • Saad Ali's avatar
      Update OWNERS · c8fbfd93
      Saad Ali authored
      c8fbfd93
    • Saad Ali's avatar
      Update OWNERS · 04f20a06
      Saad Ali authored
      04f20a06
    • Saad Ali's avatar
      Update OWNERS · 9f1181dc
      Saad Ali authored
      9f1181dc
    • Saad Ali's avatar
      Update OWNERS · dc9eea2f
      Saad Ali authored
      dc9eea2f
    • Saad Ali's avatar
      Update OWNERS · 16cbb574
      Saad Ali authored
      16cbb574
    • Kubernetes Submit Queue's avatar
      Merge pull request #40039 from timstclair/api-redirect · d357a721
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Enable streaming proxy redirects by default (beta)
      
      Prerequisite to moving CRI to Beta.
      
      I'd like to enable this early in our 1.6 cycle to get plenty of test coverage before release.
      
      @yujuhong @liggitt 
      
      ```release-note
      Follow redirects for streaming requests (exec/attach/port-forward) in the apiserver by default (alpha -> beta).
      ```
      d357a721
    • Saad Ali's avatar
      Update OWNERS · 70ed66cd
      Saad Ali authored
      70ed66cd
    • Saad Ali's avatar
      Update OWNERS · 8159e620
      Saad Ali authored
      8159e620
    • Saad Ali's avatar
      Update OWNERS · 602b682a
      Saad Ali authored
      602b682a
    • Saad Ali's avatar
      Update OWNERS · 7ed31e47
      Saad Ali authored
      7ed31e47
    • Saad Ali's avatar
      Update OWNERS · b4ac15ae
      Saad Ali authored
      b4ac15ae
  2. 17 Jan, 2017 4 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #40042 from seh/add-ingress-to-rbac-roles · c14fa94a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Include "ingresses" resource in RBAC bootstrap roles
      
      The bootstrap RBAC roles "admin", "edit", and "view" should all be able to apply their respective access verbs to the "ingresses" resource in order to facilitate both publishing Ingress resources (for
      service administrators) and consuming them (for ingress controllers).
      
      Note that I alphabetized the resources listed in the role definitions that I changed to make it easier to decide later where to insert new entries. The original order looked like it may have started out alphabetized, but lost its way. If I missed an intended order there, please advise.
      
      I am uncertain whether this change deserves mention in a release note, given the RBAC feature's alpha state. Regardless, it's possible that a cluster administrator could have been happy with the previous set of permissions afforded by these roles, and would be surprised to discover that bound subjects can now control _Ingress_ resources. However, in order to be afflicted, that administrator would have had to have applied these role definitions again which, if I understand it, would be a deliberate act, as bootstrapping should only occur once in a given cluster.
      c14fa94a
    • Kubernetes Submit Queue's avatar
      Merge pull request #39709 from smarterclayton/object_meta · 627e1e81
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Move ObjectMeta into pkg/apis/meta/v1
      
      Where it belongs
      627e1e81
    • Brian Grant's avatar
      Merge pull request #39921 from cblecker/fix-docs-39891 · 56b1082d
      Brian Grant authored
      Fix broken link to logging documentation
      56b1082d
    • Kubernetes Submit Queue's avatar
      Merge pull request #36512 from apelisse/owners-examples-mysql-wordpress-pd · adcca3e6
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Curating Owners: examples/mysql-wordpress-pd
      
      cc @jeffmendoza
      
      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)
      adcca3e6