Skip to content

Instantly share code, notes, and snippets.

@sahil-lakhwani
Created April 25, 2022 06:30
Show Gist options
  • Save sahil-lakhwani/bd6d3615de30dfd9487c4e534a8bfcef to your computer and use it in GitHub Desktop.
Save sahil-lakhwani/bd6d3615de30dfd9487c4e534a8bfcef to your computer and use it in GitHub Desktop.
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.8.0
creationTimestamp: null
name: hadeployments.sahil.dev
spec:
group: sahil.dev
names:
kind: HADeployment
listKind: HADeploymentList
plural: hadeployments
singular: hadeployment
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
properties:
apiVersion:
description: '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/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: '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/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
image:
type: string
replicas:
format: int32
type: integer
required:
- image
- replicas
type: object
required:
- spec
type: object
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment