github.com/oam-dev/kubevela@v1.9.11/e2e/addon/mock/testdata/fluxcd/resources/crds/bucket.yaml (about)

     1  apiVersion: apiextensions.k8s.io/v1
     2  kind: CustomResourceDefinition
     3  metadata:
     4    annotations:
     5      controller-gen.kubebuilder.io/version: v0.5.0
     6    labels:
     7      app.kubernetes.io/instance: flux-system
     8    name: buckets.source.toolkit.fluxcd.io
     9  spec:
    10    group: source.toolkit.fluxcd.io
    11    names:
    12      kind: Bucket
    13      listKind: BucketList
    14      plural: buckets
    15      singular: bucket
    16    scope: Namespaced
    17    versions:
    18      - additionalPrinterColumns:
    19          - jsonPath: .spec.url
    20            name: URL
    21            type: string
    22          - jsonPath: .status.conditions[?(@.type=="Ready")].status
    23            name: Ready
    24            type: string
    25          - jsonPath: .status.conditions[?(@.type=="Ready")].message
    26            name: Status
    27            type: string
    28          - jsonPath: .metadata.creationTimestamp
    29            name: Age
    30            type: date
    31        name: v1beta1
    32        schema:
    33          openAPIV3Schema:
    34            description: Bucket is the Schema for the buckets API
    35            properties:
    36              apiVersion:
    37                description: 'APIVersion defines the versioned schema of this representation
    38                of an object. Servers should convert recognized schemas to the latest
    39                internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
    40                type: string
    41              kind:
    42                description: 'Kind is a string value representing the REST resource this
    43                object represents. Servers may infer this from the endpoint the client
    44                submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
    45                type: string
    46              metadata:
    47                type: object
    48              spec:
    49                description: BucketSpec defines the desired state of an S3 compatible
    50                  bucket
    51                properties:
    52                  bucketName:
    53                    description: The bucket name.
    54                    type: string
    55                  endpoint:
    56                    description: The bucket endpoint address.
    57                    type: string
    58                  ignore:
    59                    description: Ignore overrides the set of excluded patterns in the
    60                      .sourceignore format (which is the same as .gitignore). If not provided,
    61                      a default will be used, consult the documentation for your version
    62                      to find out what those are.
    63                    type: string
    64                  insecure:
    65                    description: Insecure allows connecting to a non-TLS S3 HTTP endpoint.
    66                    type: boolean
    67                  interval:
    68                    description: The interval at which to check for bucket updates.
    69                    type: string
    70                  provider:
    71                    default: generic
    72                    description: The S3 compatible storage provider name, default ('generic').
    73                    enum:
    74                      - generic
    75                      - aws
    76                    type: string
    77                  region:
    78                    description: The bucket region.
    79                    type: string
    80                  secretRef:
    81                    description: The name of the secret containing authentication credentials
    82                      for the Bucket.
    83                    properties:
    84                      name:
    85                        description: Name of the referent
    86                        type: string
    87                    required:
    88                      - name
    89                    type: object
    90                  suspend:
    91                    description: This flag tells the controller to suspend the reconciliation
    92                      of this source.
    93                    type: boolean
    94                  timeout:
    95                    default: 20s
    96                    description: The timeout for download operations, defaults to 20s.
    97                    type: string
    98                required:
    99                  - bucketName
   100                  - endpoint
   101                  - interval
   102                type: object
   103              status:
   104                description: BucketStatus defines the observed state of a bucket
   105                properties:
   106                  artifact:
   107                    description: Artifact represents the output of the last successful
   108                      Bucket sync.
   109                    properties:
   110                      checksum:
   111                        description: Checksum is the SHA1 checksum of the artifact.
   112                        type: string
   113                      lastUpdateTime:
   114                        description: LastUpdateTime is the timestamp corresponding to
   115                          the last update of this artifact.
   116                        format: date-time
   117                        type: string
   118                      path:
   119                        description: Path is the relative file path of this artifact.
   120                        type: string
   121                      revision:
   122                        description: Revision is a human readable identifier traceable
   123                          in the origin source system. It can be a Git commit SHA, Git
   124                          tag, a Helm index timestamp, a Helm chart version, etc.
   125                        type: string
   126                      url:
   127                        description: URL is the HTTP address of this artifact.
   128                        type: string
   129                    required:
   130                      - path
   131                      - url
   132                    type: object
   133                  conditions:
   134                    description: Conditions holds the conditions for the Bucket.
   135                    items:
   136                      description: "Condition contains details for one aspect of the current
   137                      state of this API Resource. --- This struct is intended for direct
   138                      use as an array at the field path .status.conditions.  For example,
   139                      type FooStatus struct{     // Represents the observations of a
   140                      foo's current state.     // Known .status.conditions.type are:
   141                      \"Available\", \"Progressing\", and \"Degraded\"     // +patchMergeKey=type
   142                      \    // +patchStrategy=merge     // +listType=map     // +listMapKey=type
   143                      \    Conditions []metav1.Condition `json:\"conditions,omitempty\"
   144                      patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`
   145                      \n     // other fields }"
   146                      properties:
   147                        lastTransitionTime:
   148                          description: lastTransitionTime is the last time the condition
   149                            transitioned from one status to another. This should be when
   150                            the underlying condition changed.  If that is not known, then
   151                            using the time when the API field changed is acceptable.
   152                          format: date-time
   153                          type: string
   154                        message:
   155                          description: message is a human readable message indicating
   156                            details about the transition. This may be an empty string.
   157                          maxLength: 32768
   158                          type: string
   159                        observedGeneration:
   160                          description: observedGeneration represents the .metadata.generation
   161                            that the condition was set based upon. For instance, if .metadata.generation
   162                            is currently 12, but the .status.conditions[x].observedGeneration
   163                            is 9, the condition is out of date with respect to the current
   164                            state of the instance.
   165                          format: int64
   166                          minimum: 0
   167                          type: integer
   168                        reason:
   169                          description: reason contains a programmatic identifier indicating
   170                            the reason for the condition's last transition. Producers
   171                            of specific condition types may define expected values and
   172                            meanings for this field, and whether the values are considered
   173                            a guaranteed API. The value should be a CamelCase string.
   174                            This field may not be empty.
   175                          maxLength: 1024
   176                          minLength: 1
   177                          pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
   178                          type: string
   179                        status:
   180                          description: status of the condition, one of True, False, Unknown.
   181                          enum:
   182                            - "True"
   183                            - "False"
   184                            - Unknown
   185                          type: string
   186                        type:
   187                          description: type of condition in CamelCase or in foo.example.com/CamelCase.
   188                            --- Many .condition.type values are consistent across resources
   189                            like Available, but because arbitrary conditions can be useful
   190                            (see .node.status.conditions), the ability to deconflict is
   191                            important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
   192                          maxLength: 316
   193                          pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
   194                          type: string
   195                      required:
   196                        - lastTransitionTime
   197                        - message
   198                        - reason
   199                        - status
   200                        - type
   201                      type: object
   202                    type: array
   203                  lastHandledReconcileAt:
   204                    description: LastHandledReconcileAt holds the value of the most recent
   205                      reconcile request value, so a change can be detected.
   206                    type: string
   207                  observedGeneration:
   208                    description: ObservedGeneration is the last observed generation.
   209                    format: int64
   210                    type: integer
   211                  url:
   212                    description: URL is the download link for the artifact output of the
   213                      last Bucket sync.
   214                    type: string
   215                type: object
   216            type: object
   217        served: true
   218        storage: true
   219        subresources:
   220          status: {}