Skip to content

Instantly share code, notes, and snippets.

@able8
Created August 8, 2022 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save able8/5d0c35ecd834fafe69d2ae8c3ab17f95 to your computer and use it in GitHub Desktop.
Save able8/5d0c35ecd834fafe69d2ae8c3ab17f95 to your computer and use it in GitHub Desktop.
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"apiextensions.k8s.io/v1","kind":"CustomResourceDefinition","metadata":{"annotations":{},"name":"serviceboards.airwallex.com"},"spec":{"group":"airwallex.com","names":{"kind":"ServiceBoard","plural":"serviceboards","shortNames":["svcb"],"singular":"serviceboard"},"scope":"Namespaced","versions":[{"additionalPrinterColumns":[{"jsonPath":".spec.serviceInfomation.pods.status.ready","name":"Ready","type":"string"},{"jsonPath":".spec.serviceInfomation.pods.imageTags","name":"ImageTags","type":"string"},{"jsonPath":".spec.serviceInfomation.ingress.hosts","name":"IngressHosts","type":"string"},{"jsonPath":".spec.serviceInfomation.updatedAt","name":"UpdatedAt","type":"date"}],"name":"v1alpha1","schema":{"openAPIV3Schema":{"properties":{"spec":{"properties":{"serviceInfomation":{"properties":{"clusterName":{"type":"string"},"ingress":{"properties":{"hosts":{"type":"string"},"ip":{"type":"string"}},"type":"object"},"pods":{"properties":{"imageTags":{"type":"string"},"resources":{"type":"string"},"status":{"properties":{"notReadyPods":{"type":"string"},"ready":{"type":"string"},"readyPods":{"type":"string"}},"type":"object"}},"type":"object"},"service":{"properties":{"name":{"type":"string"},"namespace":{"type":"string"},"ports":{"type":"string"}},"type":"object"},"status":{"type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["service"],"type":"object"}},"required":["serviceInfomation"],"type":"object"},"status":{"x-kubernetes-preserve-unknown-fields":true}},"required":["spec"],"type":"object"}},"served":true,"storage":true}]}}
creationTimestamp: "2022-07-27T15:02:03Z"
generation: 2
name: serviceboards.airwallex.com
resourceVersion: "56801"
uid: cff0bee0-12ca-461b-9678-41e31efa8069
spec:
conversion:
strategy: None
group: airwallex.com
names:
kind: ServiceBoard
listKind: ServiceBoardList
plural: serviceboards
shortNames:
- svcb
singular: serviceboard
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .spec.serviceInfomation.pods.status.ready
name: Ready
type: string
- jsonPath: .spec.serviceInfomation.pods.imageTags
name: ImageTags
type: string
- jsonPath: .spec.serviceInfomation.ingress.hosts
name: IngressHosts
type: string
name: v1alpha1
schema:
openAPIV3Schema:
properties:
spec:
properties:
serviceInfomation:
properties:
clusterName:
type: string
ingress:
properties:
hosts:
type: string
ip:
type: string
type: object
pods:
properties:
imageTags:
type: string
resources:
type: string
status:
properties:
notReadyPods:
type: string
ready:
type: string
readyPods:
type: string
type: object
type: object
service:
properties:
name:
type: string
namespace:
type: string
ports:
type: string
type: object
status:
type: string
updatedAt:
format: date-time
type: string
required:
- service
type: object
required:
- serviceInfomation
type: object
status:
x-kubernetes-preserve-unknown-fields: true
required:
- spec
type: object
served: true
storage: true
status:
acceptedNames:
kind: ServiceBoard
listKind: ServiceBoardList
plural: serviceboards
shortNames:
- svcb
singular: serviceboard
conditions:
- lastTransitionTime: "2022-07-27T15:02:03Z"
message: no conflicts found
reason: NoConflicts
status: "True"
type: NamesAccepted
- lastTransitionTime: "2022-07-27T15:02:03Z"
message: the initial names have been accepted
reason: InitialNamesAccepted
status: "True"
type: Established
storedVersions:
- v1alpha1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment