Skip to content

Instantly share code, notes, and snippets.

@binura-g
Created September 24, 2025 01:02
Show Gist options
  • Save binura-g/11b80c7df6da23f92fe646c3686bf7c6 to your computer and use it in GitHub Desktop.
Save binura-g/11b80c7df6da23f92fe646c3686bf7c6 to your computer and use it in GitHub Desktop.
apiVersion: apiextensions.crossplane.io/v1
kind: CompositeResourceDefinition
metadata:
name: webapps.platform.example.org
spec:
group: platform.example.org
names:
kind: WebApp
plural: webapps
claimNames:
kind: WebApp
plural: webapps
versions:
- name: v1alpha1
served: true
referenceable: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
image:
type: string
replicas:
type: integer
endpoints:
type: array
items:
type: object
properties:
name: { type: string }
host: { type: string }
path: { type: string }
port: { type: integer }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment