Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI v2 Publishing for CRD's #2621

Merged
merged 2 commits into from
Oct 28, 2019
Merged

OpenAPI v2 Publishing for CRD's #2621

merged 2 commits into from
Oct 28, 2019

Conversation

njuettner
Copy link
Contributor

@njuettner
Copy link
Contributor Author

njuettner commented Oct 25, 2019

This allows users to explain our CRD's, e.g.:

docs (master) ✔ kubectl explain stacks
KIND:     Stack
VERSION:  zalando.org/v1

DESCRIPTION:
     <empty>

FIELDS:
   apiVersion	<string>
     APIVersion defines the versioned schema of this representation of an
     object. Servers should convert recognized schemas to the latest internal
     value, and may reject unrecognized values. More info:
     https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

   kind	<string>
     Kind is a string value representing the REST resource this object
     represents. Servers may infer this from the endpoint the client submits
     requests to. Cannot be updated. In CamelCase. More info:
     https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

   metadata	<Object>
     Standard object's metadata. More info:
     https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

   spec	<>
docs (master) ✔ kubectl explain stacks --recursive
KIND:     Stack
VERSION:  zalando.org/v1

DESCRIPTION:
     <empty>

FIELDS:
   apiVersion	<string>
   kind	<string>
   metadata	<Object>
      annotations	<map[string]string>
      clusterName	<string>
      creationTimestamp	<string>
      deletionGracePeriodSeconds	<integer>
      deletionTimestamp	<string>
      finalizers	<[]string>
      generateName	<string>
      generation	<integer>
      initializers	<Object>
         pending	<[]Object>
            name	<string>
         result	<Object>
            apiVersion	<string>
            code	<integer>
            details	<Object>
               causes	<[]Object>
                  field	<string>
                  message	<string>
                  reason	<string>
               group	<string>
               kind	<string>
               name	<string>
               retryAfterSeconds	<integer>
               uid	<string>
            kind	<string>
            message	<string>
            metadata	<Object>
               continue	<string>
               resourceVersion	<string>
               selfLink	<string>
            reason	<string>
            status	<string>
      labels	<map[string]string>
      managedFields	<[]Object>
         apiVersion	<string>
         fields	<map[string]>
         manager	<string>
         operation	<string>
         time	<string>
      name	<string>
      namespace	<string>
      ownerReferences	<[]Object>
         apiVersion	<string>
         blockOwnerDeletion	<boolean>
         controller	<boolean>
         kind	<string>
         name	<string>
         uid	<string>
      resourceVersion	<string>
      selfLink	<string>
      uid	<string>
   spec	<>

@muaazsaleem
Copy link
Contributor

👍

@njuettner njuettner force-pushed the publish-customresource branch from 300ddf9 to 7e60142 Compare October 25, 2019 15:22
@linki
Copy link
Member

linki commented Oct 25, 2019

👍

1 similar comment
@njuettner
Copy link
Contributor Author

👍

@linki linki merged commit 714d78b into dev Oct 28, 2019
@linki linki deleted the publish-customresource branch October 28, 2019 12:29
This was referenced Oct 28, 2019
@mikkeloscar mikkeloscar mentioned this pull request Dec 14, 2019
20 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants