github.com/oam-dev/kubevela@v1.9.11/charts/vela-core/crds/core.oam.dev_policydefinitions.yaml (about)

     1  ---
     2  apiVersion: apiextensions.k8s.io/v1
     3  kind: CustomResourceDefinition
     4  metadata:
     5    annotations:
     6      controller-gen.kubebuilder.io/version: v0.11.4
     7    name: policydefinitions.core.oam.dev
     8  spec:
     9    group: core.oam.dev
    10    names:
    11      categories:
    12      - oam
    13      kind: PolicyDefinition
    14      listKind: PolicyDefinitionList
    15      plural: policydefinitions
    16      shortNames:
    17      - def-policy
    18      singular: policydefinition
    19    scope: Namespaced
    20    versions:
    21    - name: v1beta1
    22      schema:
    23        openAPIV3Schema:
    24          description: PolicyDefinition is the Schema for the policydefinitions API
    25          properties:
    26            apiVersion:
    27              description: 'APIVersion defines the versioned schema of this representation
    28                of an object. Servers should convert recognized schemas to the latest
    29                internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
    30              type: string
    31            kind:
    32              description: 'Kind is a string value representing the REST resource this
    33                object represents. Servers may infer this from the endpoint the client
    34                submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
    35              type: string
    36            metadata:
    37              type: object
    38            spec:
    39              description: PolicyDefinitionSpec defines the desired state of PolicyDefinition
    40              properties:
    41                definitionRef:
    42                  description: Reference to the CustomResourceDefinition that defines
    43                    this trait kind.
    44                  properties:
    45                    name:
    46                      description: Name of the referenced CustomResourceDefinition.
    47                      type: string
    48                    version:
    49                      description: Version indicate which version should be used if
    50                        CRD has multiple versions by default it will use the first one
    51                        if not specified
    52                      type: string
    53                  required:
    54                  - name
    55                  type: object
    56                manageHealthCheck:
    57                  description: ManageHealthCheck means the policy will handle health
    58                    checking and skip application controller built-in health checking.
    59                  type: boolean
    60                schematic:
    61                  description: Schematic defines the data format and template of the
    62                    encapsulation of the policy definition. Only CUE schematic is supported
    63                    for now.
    64                  properties:
    65                    cue:
    66                      description: CUE defines the encapsulation in CUE format
    67                      properties:
    68                        template:
    69                          description: Template defines the abstraction template data
    70                            of the capability, it will replace the old CUE template
    71                            in extension field. Template is a required field if CUE
    72                            is defined in Capability Definition.
    73                          type: string
    74                      required:
    75                      - template
    76                      type: object
    77                    terraform:
    78                      description: Terraform is the struct to describe cloud resources
    79                        managed by Hashicorp Terraform
    80                      properties:
    81                        configuration:
    82                          description: Configuration is Terraform Configuration
    83                          type: string
    84                        customRegion:
    85                          description: Region is cloud provider's region. It will override
    86                            the region in the region field of ProviderReference
    87                          type: string
    88                        deleteResource:
    89                          default: true
    90                          description: DeleteResource will determine whether provisioned
    91                            cloud resources will be deleted when CR is deleted
    92                          type: boolean
    93                        gitCredentialsSecretReference:
    94                          description: GitCredentialsSecretReference specifies the reference
    95                            to the secret containing the git credentials
    96                          properties:
    97                            name:
    98                              description: name is unique within a namespace to reference
    99                                a secret resource.
   100                              type: string
   101                            namespace:
   102                              description: namespace defines the space within which
   103                                the secret name must be unique.
   104                              type: string
   105                          type: object
   106                          x-kubernetes-map-type: atomic
   107                        path:
   108                          description: Path is the sub-directory of remote git repository.
   109                            It's valid when remote is set
   110                          type: string
   111                        providerRef:
   112                          description: ProviderReference specifies the reference to
   113                            Provider
   114                          properties:
   115                            name:
   116                              description: Name of the referenced object.
   117                              type: string
   118                            namespace:
   119                              default: default
   120                              description: Namespace of the referenced object.
   121                              type: string
   122                          required:
   123                          - name
   124                          type: object
   125                        type:
   126                          default: hcl
   127                          description: Type specifies which Terraform configuration
   128                            it is, HCL or JSON syntax
   129                          enum:
   130                          - hcl
   131                          - json
   132                          - remote
   133                          type: string
   134                        writeConnectionSecretToRef:
   135                          description: WriteConnectionSecretToReference specifies the
   136                            namespace and name of a Secret to which any connection details
   137                            for this managed resource should be written. Connection
   138                            details frequently include the endpoint, username, and password
   139                            required to connect to the managed resource.
   140                          properties:
   141                            name:
   142                              description: Name of the secret.
   143                              type: string
   144                            namespace:
   145                              description: Namespace of the secret.
   146                              type: string
   147                          required:
   148                          - name
   149                          type: object
   150                      required:
   151                      - configuration
   152                      type: object
   153                  type: object
   154              type: object
   155            status:
   156              description: PolicyDefinitionStatus is the status of PolicyDefinition
   157              properties:
   158                conditions:
   159                  description: Conditions of the resource.
   160                  items:
   161                    description: A Condition that may apply to a resource.
   162                    properties:
   163                      lastTransitionTime:
   164                        description: LastTransitionTime is the last time this condition
   165                          transitioned from one status to another.
   166                        format: date-time
   167                        type: string
   168                      message:
   169                        description: A Message containing details about this condition's
   170                          last transition from one status to another, if any.
   171                        type: string
   172                      reason:
   173                        description: A Reason for this condition's last transition from
   174                          one status to another.
   175                        type: string
   176                      status:
   177                        description: Status of this condition; is it currently True,
   178                          False, or Unknown?
   179                        type: string
   180                      type:
   181                        description: Type of this condition. At most one of each condition
   182                          type may apply to a resource at any point in time.
   183                        type: string
   184                    required:
   185                    - lastTransitionTime
   186                    - reason
   187                    - status
   188                    - type
   189                    type: object
   190                  type: array
   191                configMapRef:
   192                  description: ConfigMapRef refer to a ConfigMap which contains OpenAPI
   193                    V3 JSON schema of Component parameters.
   194                  type: string
   195                latestRevision:
   196                  description: LatestRevision of the component definition
   197                  properties:
   198                    name:
   199                      type: string
   200                    revision:
   201                      format: int64
   202                      type: integer
   203                    revisionHash:
   204                      description: RevisionHash record the hash value of the spec of
   205                        ApplicationRevision object.
   206                      type: string
   207                  required:
   208                  - name
   209                  - revision
   210                  type: object
   211              type: object
   212          type: object
   213      served: true
   214      storage: true
   215      subresources:
   216        status: {}