1. 01 Apr, 2016 3 commits
    • k8s-merge-robot's avatar
      Merge pull request #18835 from brendandburns/3rdparty · 07929972
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Add support for 3rd party objects to kubectl
      
      @deads2k @jlowdermilk
      
      Instructions for playing around with this:
      
      Run an apiserver with third party resources turned on (`--runtime-config=extensions/v1beta1=true,extensions/v1beta1/thirdpartyresources=true`)
      
      Then you should be able to:
      
      ```
      kubectl create -f rsrc.json
      ```
      
      ```json
      {
        "metadata": {
          "name": "foo.company.com"
        },
        "apiVersion": "extensions/v1beta1",
        "kind": "ThirdPartyResource",
        "versions": [
          {
            "apiGroup": "group",
            "name": "v1"
          },
          {
            "apiGroup": "group",
            "name": "v2"
          }
        ]
      }
      ```
      
      Once that is done, you should be able to:
      
      ```
      curl http://<server>/apis/company.com/v1/foos
      ```
      
      ```
      curl -X POST -d @${HOME}/foo.json http://localhost:8080/apis/company.com/v1/namespaces/default/foos
      ```
      
      ```json
      {
        "kind": "Foo",
        "apiVersion": "company.com/v1",
        "metadata": {
          "name": "baz"
        },
        "someField": "hello world",
        "otherField": 1
      }
      ```
      
      After this PR, you can do:
      
      ```
      kubectl create -f foo.json
      ```
      
      ```
      kubectl get foos
      ```
      
      etc.
      07929972
    • k8s-merge-robot's avatar
      Merge pull request #23582 from zhouhaibing089/typo_fix · 42124978
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      fix the gcfg typo
      
      little fix in the openstack cloud provider.
      42124978
    • k8s-merge-robot's avatar
      Merge pull request #23427 from wojtek-t/conversions_with_framework_4 · f8ea3fab
      k8s-merge-robot authored
      Automatic merge from submit-queue
      
      Migrate to the new conversion generator - part1
      
      This PR contains two commits:
      - few more fixes to the generator
      - migration of the pkg/api/v1 to use the new generator
      
      The second commit is big, but I reviewed the changes and they contain:
      - conversions between types that we didn't even generating conversion between
      - changes in how we handle maps/pointers/slices - previously we were explicitly referencing fields, now we are using "shadowing in, out" to make the code more generic
      - lack of auto-generated method for ReplicationControllerSpec (because these types are different (*int vs int for Replicas) and a preexisting conversion already exists
      
      Most of issues in the first commit (e.g. adding references to "in" and "out" for slices/maps/points) were discovered by our tests. So I'm pretty confident that this change is correct now.
      f8ea3fab
  2. 31 Mar, 2016 19 commits
  3. 30 Mar, 2016 18 commits