1. 23 Feb, 2017 16 commits
    • Clayton Coleman's avatar
    • Clayton Coleman's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #41784 from dixudx/fix_issue_41746 · c36eee2a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 41146, 41486, 41482, 41538, 41784)
      
      fix issue #41746
      
      **What this PR does / why we need it**:
      
      **Which issue this PR fixes** : fixes #41746 
      
      **Special notes for your reviewer**:
      
      cc @feiskyer
      c36eee2a
    • Kubernetes Submit Queue's avatar
      Merge pull request #41538 from xingzhou/clusterrole · c99ae4b4
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 41146, 41486, 41482, 41538, 41784)
      
      Added `kubectl create clusterrole` command.
      
      Added `kubectl create clusterrole` command.
      
      Fixed part of #39596 
      
      **Special notes for your reviewer**:
      @deads2k, please help to review this patch, thanks
      
      **Release note**:
      ```
         Added one new command `kubectl create clusterrole` to help user create a single ClusterRole from command line.
      ```
      c99ae4b4
    • Kubernetes Submit Queue's avatar
      Merge pull request #41482 from ncdc/shared-informers-11-statefulset · 4396f19c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 41146, 41486, 41482, 41538, 41784)
      
      Switch statefulset controller to shared informers
      
      Originally part of #40097 
      
      I *think* the controller currently makes a deep copy of a StatefulSet before it mutates it, but I'm not 100% sure. For those who are most familiar with this code, could you please confirm?
      
      @beeps @smarterclayton @ingvagabund @sttts @liggitt @deads2k @kubernetes/sig-apps-pr-reviews @kubernetes/sig-scalability-pr-reviews @timothysc @gmarek @wojtek-t
      4396f19c
    • Kubernetes Submit Queue's avatar
      Merge pull request #41486 from sttts/sttts-clientset-scheme · e49f44d8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 41146, 41486, 41482, 41538, 41784)
      
      client-gen: independent scheme for clientsets
      
      This PR adds a clientset internal scheme instead of using `pkg/api.Scheme`. **The clientset API stays the same.**
      
      In detail:
      
      - introduce a scheme for each clientset, i.e. do not use `pkg/api.Scheme+Registry+Codec+ParameterCodecs`.
      
        This makes it easier to compose client-go's clientset (which is rewritten in `staging/copy.sh` and therefore hardcoded to use `k8s.io/client-go/pkg/api.Scheme+Registry+Codecs+ParameterCodecs`) with third-party clientsets (kube-aggregator, openshift, federation) which are not rewritten using `copy.sh` as all of them are self-contained and therefore relocatable.
      
        This fixes https://github.com/kubernetes/kubernetes/pull/41403/files#diff-76edfb07dee54ff7ddeda25c33c10d29R81 and prepares client-gen for use in OpenShift.
      
      - register types into the clientset scheme via `AddToScheme` for versioned clientsets. This decouples the client-go clients from announce+registration (internal clients continue using announce+registry and apigroup installers).
      
        This reduces complexity for client-go, possibly remove the necessity for the announce+register machinery for many use-cases, maybe even to delete it mid-term.
      - port federation and testgroup  `install/install.go` to `announced.GroupMetaFactory` in order to have a proper `Install.Install(...)` func for registration.
      
      With the first change it's easy to add the types of one clientset to the scheme of the other using the `clientset/scheme.AddToScheme` method. This allows to use cross-clientset `runtime.RawExtensions`:
      
      ```golang
      import (
           "k8s.io/client-go/kubernetes"
           clientsetscheme "k8s.io/client-go/kuberentes/scheme"
           aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
      )
      
      kclientset, _ := kubernetes.NewForConfig(c)
      aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
      ```
      Kubernetes types with a `RawExtension` can en/decode aggregator types after this.
      
      TODO:
      - [x] fix fake clientsets
      - [x] get the `*Options` types registered correctly for core, compare DO-NOT-MERGE commit.
      - [x] get prefered version right in internal client. Do we need all versions registered in the internal client to support negotiation?
      - [x] run `staging/copy.sh` and run tests: https://github.com/kubernetes/kubernetes/pull/41744
      - ~~[ ] fixup usage through-out the code-base~~
      - **Follow-up**: move `import_known_versions.go` files somewhere such that import of the `api.Scheme` package automatically installs the apigroups. It looks like we depended on the import fo the clientset for this purpose.
      e49f44d8
    • Kubernetes Submit Queue's avatar
      Merge pull request #41146 from shiywang/apply-view1 · afd3db25
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 41146, 41486, 41482, 41538, 41784)
      
       Add apply view-last-applied subcommand
      
      reopen pr https://github.com/kubernetes/kubernetes/pull/40984, implement part of https://github.com/kubernetes/community/pull/287
      for now unit test all pass, the output looks like:
      
      ```console
      shiywang@dhcp-140-33 template $ ./kubectl apply view last-applied deployment nginx-deployment 
      apiVersion: extensions/v1beta1
      kind: Deployment
      metadata:
        creationTimestamp: null
        name: nginx-deployment
      spec:
        strategy: {}
        template:
          metadata:
            creationTimestamp: null
            labels:
              app: nginx
          spec:
            containers:
            - image: nginx:1.12.10
              name: nginx
              ports:
              - containerPort: 80
              resources: {}
      status: {}
      ```
      
      ```release-note
      Support new kubectl apply view-last-applied command for viewing the last configuration file applied
      ```
      
      not sure if there is any flag I should updated or the some error handling I should changed.
      will generate docs when you guys think is ok.
      cc @pwittrock @jessfraz @AdoHe @ymqytw
      afd3db25
    • Kubernetes Submit Queue's avatar
      Merge pull request #41373 from msau42/e2e-pvutil · 9cbaff9e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 38957, 41819, 41851, 40667, 41373)
      
      Move pvutil.go from e2e package to framework package
      
      **What this PR does / why we need it**:  
      
      This PR moves pvutil.go to the e2e/framework package.
      
      I am working on a PV upgrade test, and would like to use some of the wrapper functions in pvutil.go.  However, the upgrade test is in the upgrade package, and not the e2e package, and it cannot import the e2e package because it would create a circular dependency.  So pvutil.go needs to be moved out of e2e in order to break the circular dependency.  This is a refactoring name change, no logic has been modified.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: 
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      NONE
      9cbaff9e
    • Kubernetes Submit Queue's avatar
      Merge pull request #40667 from brendandburns/i18n7 · 3560ac31
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 38957, 41819, 41851, 40667, 41373)
      
      Wrap and extract some flag description strings.
      
      Moving on from help strings to flag descriptions.
      
      @zen @fabianofranz @kubernetes/sig-cli-pr-reviews
      3560ac31
    • Kubernetes Submit Queue's avatar
      Merge pull request #41851 from janetkuo/deployment-duplicate-rs · 7cca0d18
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 38957, 41819, 41851, 40667, 41373)
      
      Fix deployment helper - no assumptions on only one new ReplicaSet
      
      #40415
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      
      @kubernetes/sig-apps-bugs
      7cca0d18
    • Kubernetes Submit Queue's avatar
      Merge pull request #41819 from dchen1107/master · 59f4c591
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 38957, 41819, 41851, 40667, 41373)
      
      Bump GCI to gci-stable-56-9000-84-2
      
      Changelogs since gci-beta-56-9000-80-0:
      
      - Fixed google-accounts-daemon breaks on GCI when network is unavailable.
      - Fixed iptables-restore performance regression.
      
      cc/ @adityakali @Random-Liu @fabioy
      59f4c591
    • Kubernetes Submit Queue's avatar
      Merge pull request #38957 from aveshagarwal/master-taints-tolerations-api-fields · 6024f56f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 38957, 41819, 41851, 40667, 41373)
      
      Change taints/tolerations to api fields
      
      This PR changes current implementation of taints and tolerations from annotations to API fields. Taint and toleration are now part of `NodeSpec` and `PodSpec`, respectively. The annotation keys: `scheduler.alpha.kubernetes.io/tolerations` and `scheduler.alpha.kubernetes.io/taints`  have been removed.
      
      **Release note**:
      Pod tolerations and node taints have moved from annotations to API fields in the PodSpec and NodeSpec, respectively. Pod tolerations and node taints that are defined in the annotations will be ignored. The annotation keys: `scheduler.alpha.kubernetes.io/tolerations` and `scheduler.alpha.kubernetes.io/taints`  have been removed.
      6024f56f
    • Kubernetes Submit Queue's avatar
      Merge pull request #41920 from fejta/spiffxp · fcb234e5
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Make spiffxp an owner of test/...
      fcb234e5
    • Kubernetes Submit Queue's avatar
      Merge pull request #41688 from humblec/iscsi-reviewer · ae8f537c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Update reviewer list for iscsi volume plugin.
      
      Contributed nodiskconflict, multipath feature .etc to iscsi volume plugin. 
      Signed-off-by: 's avatarHumble Chirammal <hchiramm@redhat.com>
      ae8f537c
    • Kubernetes Submit Queue's avatar
      Merge pull request #41660 from calebamiles/wip-sig-owners-for-tests · b164e646
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Removes additional columns in test_owners.csv
      
      **What this PR does / why we need it**:
      
      fixes a huge collection of typos with the number of columns in the CSV file that probably has broken the auto assign bot
      
      **Special notes for your reviewer**:
      
      None
      
      **Release note**:
      
      `NONE`
      b164e646
    • Saad Ali's avatar
      Merge pull request #41933 from ixdy/list-resources-grep · 9b12e372
      Saad Ali authored
      list-resources: don't fail if the grep fails to match any resources
      9b12e372
  2. 22 Feb, 2017 24 commits