Skip to content

Instantly share code, notes, and snippets.

@muvaf
Created July 18, 2023 08:53
Show Gist options
  • Save muvaf/26b26830b86993607be65c41382bea6e to your computer and use it in GitHub Desktop.
Save muvaf/26b26830b86993607be65c41382bea6e to your computer and use it in GitHub Desktop.
Example YAMLs to reproduce
apiVersion: apiextensions.crossplane.io/v1
kind: CompositeResourceDefinition
metadata:
name: eks.example.org
spec:
group: example.org
names:
kind: EKS
plural: eks
versions:
- name: v1alpha1
served: true
referenceable: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
parameters:
type: object
properties:
storageGB:
type: integer
required:
- storageGB
required:
- parameters
apiVersion: apiextensions.crossplane.io/v1
kind: CompositeResourceDefinition
metadata:
name: eks.example.org
spec:
group: example.org
names:
kind: EKS
plural: eks
claimNames:
kind: EKSCluster
plural: eksclusters
versions:
- name: v1alpha1
served: true
referenceable: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
parameters:
type: object
properties:
storageGB:
type: integer
required:
- storageGB
required:
- parameters
@muvaf
Copy link
Author

muvaf commented Jul 18, 2023

> kubectl get xrd
NAME              ESTABLISHED   OFFERED   AGE
eks.example.org   True          True      2m42s
> kubectl get crd
compositeresourcedefinitions.apiextensions.crossplane.io   2023-07-18T08:49:40Z
compositionrevisions.apiextensions.crossplane.io           2023-07-18T08:49:40Z
compositions.apiextensions.crossplane.io                   2023-07-18T08:49:40Z
configurationrevisions.pkg.crossplane.io                   2023-07-18T08:49:40Z
configurations.pkg.crossplane.io                           2023-07-18T08:49:40Z
controllerconfigs.pkg.crossplane.io                        2023-07-18T08:49:40Z
eks.example.org                                            2023-07-18T08:51:37Z
eksclusters.example.org                                    2023-07-18T08:52:30Z
environmentconfigs.apiextensions.crossplane.io             2023-07-18T08:49:40Z
locks.pkg.crossplane.io                                    2023-07-18T08:49:40Z
providerrevisions.pkg.crossplane.io                        2023-07-18T08:49:40Z
providers.pkg.crossplane.io                                2023-07-18T08:49:40Z
storeconfigs.secrets.crossplane.io                         2023-07-18T08:49:40Z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment