github.com/GoogleContainerTools/kpt@v1.0.0-beta.50.0.20240520170205-c25345ffcbee/pkg/live/example-resource-group-crd-for-v1.yaml (about)

     1  # Copyright 2020 The kpt Authors
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #      http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  
    15  apiVersion: apiextensions.k8s.io/v1
    16  kind: CustomResourceDefinition
    17  metadata:
    18    name: resourcegroups.kpt.dev
    19  spec:
    20    conversion:
    21      strategy: None
    22    group: kpt.dev
    23    names:
    24      kind: ResourceGroup
    25      listKind: ResourceGroupList
    26      plural: resourcegroups
    27      singular: resourcegroup
    28    scope: Namespaced
    29    versions:
    30    - name: v1alpha1
    31      schema:
    32        openAPIV3Schema:
    33          description: ResourceGroup is the Schema for the resourcegroups API
    34          properties:
    35            apiVersion:
    36              description: 'APIVersion defines the versioned schema of this representation
    37                of an object. Servers should convert recognized schemas to the latest
    38                internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
    39              type: string
    40            kind:
    41              description: 'Kind is a string value representing the REST resource this
    42                object represents. Servers may infer this from the endpoint the client
    43                submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
    44              type: string
    45            metadata:
    46              type: object
    47            spec:
    48              description: ResourceGroupSpec defines the desired state of ResourceGroup
    49              properties:
    50                descriptor:
    51                  description: Descriptor regroups the information and metadata about
    52                    a resource group
    53                  properties:
    54                    description:
    55                      description: Description is a brief description of a group of
    56                        resources
    57                      type: string
    58                    links:
    59                      description: Links are a list of descriptive URLs intended to
    60                        be used to surface additional information
    61                      items:
    62                        properties:
    63                          description:
    64                            description: Description explains the purpose of the link
    65                            type: string
    66                          url:
    67                            description: Url is the URL of the link
    68                            type: string
    69                        required:
    70                        - description
    71                        - url
    72                        type: object
    73                      type: array
    74                    revision:
    75                      description: Revision is an optional revision for a group of resources
    76                      type: string
    77                    type:
    78                      description: Type can contain prefix, such as Application/WordPress
    79                        or Service/Spanner
    80                      type: string
    81                  type: object
    82                resources:
    83                  description: Resources contains a list of resources that form the
    84                    resource group
    85                  items:
    86                    description: ObjMetadata organizes and stores the identifying information
    87                      for an object. This struct (as a string) is stored in a grouping
    88                      object to keep track of sets of applied objects.
    89                    properties:
    90                      group:
    91                        type: string
    92                      kind:
    93                        type: string
    94                      name:
    95                        type: string
    96                      namespace:
    97                        type: string
    98                    required:
    99                    - group
   100                    - kind
   101                    - name
   102                    - namespace
   103                    type: object
   104                  type: array
   105              type: object
   106            status:
   107              description: ResourceGroupStatus defines the observed state of ResourceGroup
   108              properties:
   109                conditions:
   110                  description: Conditions lists the conditions of the current status
   111                    for the group
   112                  items:
   113                    properties:
   114                      lastTransitionTime:
   115                        description: last time the condition transit from one status
   116                          to another
   117                        format: date-time
   118                        type: string
   119                      message:
   120                        description: human-readable message indicating details about
   121                          last transition
   122                        type: string
   123                      reason:
   124                        description: one-word CamelCase reason for the condition's last
   125                          transition
   126                        type: string
   127                      status:
   128                        description: Status of the condition
   129                        type: string
   130                      type:
   131                        description: Type of the condition
   132                        type: string
   133                    required:
   134                    - status
   135                    - type
   136                    type: object
   137                  type: array
   138                observedGeneration:
   139                  description: ObservedGeneration is the most recent generation observed.
   140                    It corresponds to the Object's generation, which is updated on mutation
   141                    by the API Server. Everytime the controller does a successful reconcile,
   142                    it sets ObservedGeneration to match ResourceGroup.metadata.generation.
   143                  format: int64
   144                  type: integer
   145                resourceStatuses:
   146                  description: ResourceStatuses lists the status for each resource in
   147                    the group
   148                  items:
   149                    description: ResourceStatus contains the status of a given resource
   150                      uniquely identified by its group, kind, name and namespace.
   151                    properties:
   152                      actuation:
   153                        description: actuation indicates whether actuation has been
   154                          performed yet and how it went.
   155                        type: string
   156                      conditions:
   157                        items:
   158                          properties:
   159                            lastTransitionTime:
   160                              description: last time the condition transit from one
   161                                status to another
   162                              format: date-time
   163                              type: string
   164                            message:
   165                              description: human-readable message indicating details
   166                                about last transition
   167                              type: string
   168                            reason:
   169                              description: one-word CamelCase reason for the condition's
   170                                last transition
   171                              type: string
   172                            status:
   173                              description: Status of the condition
   174                              type: string
   175                            type:
   176                              description: Type of the condition
   177                              type: string
   178                          required:
   179                          - status
   180                          - type
   181                          type: object
   182                        type: array
   183                      group:
   184                        type: string
   185                      kind:
   186                        type: string
   187                      name:
   188                        type: string
   189                      namespace:
   190                        type: string
   191                      reconcile:
   192                        description: reconcile indicates whether reconciliation has
   193                          been performed yet and how it went.
   194                        type: string
   195                      sourceHash:
   196                        type: string
   197                      status:
   198                        description: Status describes the status of a resource
   199                        type: string
   200                      strategy:
   201                        description: strategy indicates the method of actuation (apply
   202                          or delete) used or planned to be used.
   203                        type: string
   204                    required:
   205                    - group
   206                    - kind
   207                    - name
   208                    - namespace
   209                    - status
   210                    type: object
   211                  type: array
   212              required:
   213              - observedGeneration
   214              type: object
   215          type: object
   216      served: true
   217      storage: true
   218      subresources:
   219        status: {}
   220  status:
   221    acceptedNames:
   222      kind: ""
   223      plural: ""
   224    conditions: []
   225    storedVersions: []