Skip to content

Instantly share code, notes, and snippets.

@cwilhit
Last active April 4, 2023 21:09
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 cwilhit/046b4eec3bd9070c07444e6bb25fbf26 to your computer and use it in GitHub Desktop.
Save cwilhit/046b4eec3bd9070c07444e6bb25fbf26 to your computer and use it in GitHub Desktop.
An XRD for an Azure Blob Storage resource
apiVersion: apiextensions.crossplane.io/v1
kind: CompositeResourceDefinition
metadata:
name: xblobs.infrastructure.example.org
spec:
group: infrastructure.example.org
names:
kind: XBlob
plural: xblobs
claimNames:
kind: Blob
plural: blobs
versions:
- name: v1alpha1
served: true
referenceable: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
id:
type: string
description: "ID of this Blob that objects will use to refer to it."
minLength: 1
# Maximum key length in GCP is 40 characters. We are setting a 34 character
# limit to accomodate the generated hash suffix ('-' + 5 chars).
maxLength: 34
parameters:
type: object
description: "Blob parameters."
properties:
resourcegroup:
type: string
description: "ID of a resource group to associate the blob with. Will create one with this name if not exists."
required:
- id
- parameters
status:
type: object
properties:
subnetIds:
type: array
items:
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment