github.com/crossplane-contrib/function-cue@v0.2.2-0.20240508161918-5100fcb5a058/internal/cuetools/testdata/xs3bucket.yaml (about)

     1  apiVersion: apiextensions.crossplane.io/v1
     2  kind: CompositeResourceDefinition
     3  metadata:
     4    name: xs3buckets.simple.cuefn.example.com
     5  spec:
     6    claimNames:
     7      kind: S3Bucket
     8      plural: s3buckets
     9    defaultCompositeDeletePolicy: Background
    10    defaultCompositionUpdatePolicy: Automatic
    11    group: simple.cuefn.example.com
    12    names:
    13      kind: XS3Bucket
    14      plural: xs3buckets
    15    versions:
    16      - additionalPrinterColumns:
    17          - jsonPath: .status.primaryEndpoint
    18            name: primary endpoint
    19            type: string
    20          - jsonPath: .status.iamPolicyARN
    21            name: iam policy ARN
    22            type: string
    23        name: v1alpha1
    24        referenceable: true
    25        schema:
    26          openAPIV3Schema:
    27            description: allow creation of one of more S3 buckets
    28            properties:
    29              spec:
    30                description: desired state
    31                properties:
    32                  parameters:
    33                    description: bucket creation parameters
    34                    properties:
    35                      additionalSuffixes:
    36                        description: additional buckets to create with the suffixes provided
    37                        items:
    38                          maxLength: 4
    39                          minLength: 1
    40                          type: string
    41                        type: array
    42                      region:
    43                        description: bucket region
    44                        type: string
    45                      tags:
    46                        additionalProperties:
    47                          type: string
    48                        description: tags to associate with all buckets
    49                        type: object
    50                    required:
    51                      - region
    52                    type: object
    53                required:
    54                  - parameters
    55                type: object
    56              status:
    57                description: observed status
    58                properties:
    59                  additionalEndpoints:
    60                    description: additional endpoints in the same order as additional
    61                      suffixes
    62                    items:
    63                      type: string
    64                    type: array
    65                  iamPolicyARN:
    66                    description: the ARN of the IAM policy created for accessing the buckets
    67                    type: string
    68                  primaryEndpoint:
    69                    description: the URL of the bucket endpoint
    70                    type: string
    71                type: object
    72            required:
    73              - spec
    74            type: object
    75        served: true