...

Text file src/github.com/GoogleCloudPlatform/k8s-config-connector/config/crds/resources/apiextensions.k8s.io_v1_customresourcedefinition_cloudfunctions2functions.cloudfunctions2.cnrm.cloud.google.com.yaml

Documentation: github.com/GoogleCloudPlatform/k8s-config-connector/config/crds/resources

     1apiVersion: apiextensions.k8s.io/v1
     2kind: CustomResourceDefinition
     3metadata:
     4  annotations:
     5    cnrm.cloud.google.com/version: 0.0.0-dev
     6  creationTimestamp: null
     7  labels:
     8    cnrm.cloud.google.com/managed-by-kcc: "true"
     9    cnrm.cloud.google.com/stability-level: alpha
    10    cnrm.cloud.google.com/system: "true"
    11    cnrm.cloud.google.com/tf2crd: "true"
    12  name: cloudfunctions2functions.cloudfunctions2.cnrm.cloud.google.com
    13spec:
    14  group: cloudfunctions2.cnrm.cloud.google.com
    15  names:
    16    categories:
    17    - gcp
    18    kind: CloudFunctions2Function
    19    plural: cloudfunctions2functions
    20    shortNames:
    21    - gcpcloudfunctions2function
    22    - gcpcloudfunctions2functions
    23    singular: cloudfunctions2function
    24  preserveUnknownFields: false
    25  scope: Namespaced
    26  versions:
    27  - additionalPrinterColumns:
    28    - jsonPath: .metadata.creationTimestamp
    29      name: Age
    30      type: date
    31    - description: When 'True', the most recent reconcile of the resource succeeded
    32      jsonPath: .status.conditions[?(@.type=='Ready')].status
    33      name: Ready
    34      type: string
    35    - description: The reason for the value in 'Ready'
    36      jsonPath: .status.conditions[?(@.type=='Ready')].reason
    37      name: Status
    38      type: string
    39    - description: The last transition time for the value in 'Status'
    40      jsonPath: .status.conditions[?(@.type=='Ready')].lastTransitionTime
    41      name: Status Age
    42      type: date
    43    name: v1alpha1
    44    schema:
    45      openAPIV3Schema:
    46        properties:
    47          apiVersion:
    48            description: 'apiVersion defines the versioned schema of this representation
    49              of an object. Servers should convert recognized schemas to the latest
    50              internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
    51            type: string
    52          kind:
    53            description: 'kind is a string value representing the REST resource this
    54              object represents. Servers may infer this from the endpoint the client
    55              submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
    56            type: string
    57          metadata:
    58            type: object
    59          spec:
    60            properties:
    61              buildConfig:
    62                description: |-
    63                  Describes the Build step of the function that builds a container
    64                  from the given source.
    65                properties:
    66                  build:
    67                    description: |-
    68                      The Cloud Build name of the latest successful
    69                      deployment of the function.
    70                    type: string
    71                  dockerRepository:
    72                    description: User managed repository created in Artifact Registry
    73                      optionally with a customer managed encryption key.
    74                    type: string
    75                  entryPoint:
    76                    description: |-
    77                      The name of the function (as defined in source code) that will be executed.
    78                      Defaults to the resource name suffix, if not specified. For backward
    79                      compatibility, if function with given name is not found, then the system
    80                      will try to use function named "function". For Node.js this is name of a
    81                      function exported by the module specified in source_location.
    82                    type: string
    83                  environmentVariables:
    84                    additionalProperties:
    85                      type: string
    86                    description: User-provided build-time environment variables for
    87                      the function.
    88                    type: object
    89                  runtime:
    90                    description: |-
    91                      The runtime in which to run the function. Required when deploying a new
    92                      function, optional when updating an existing function.
    93                    type: string
    94                  source:
    95                    description: The location of the function source code.
    96                    properties:
    97                      repoSource:
    98                        description: If provided, get the source from this location
    99                          in a Cloud Source Repository.
   100                        properties:
   101                          branchName:
   102                            description: Regex matching branches to build.
   103                            type: string
   104                          commitSha:
   105                            description: Regex matching tags to build.
   106                            type: string
   107                          dir:
   108                            description: Directory, relative to the source root, in
   109                              which to run the build.
   110                            type: string
   111                          invertRegex:
   112                            description: |-
   113                              Only trigger a build if the revision regex does
   114                              NOT match the revision regex.
   115                            type: boolean
   116                          projectId:
   117                            description: |-
   118                              Immutable. ID of the project that owns the Cloud Source Repository. If omitted, the
   119                              project ID requesting the build is assumed.
   120                            type: string
   121                          repoName:
   122                            description: Name of the Cloud Source Repository.
   123                            type: string
   124                          tagName:
   125                            description: Regex matching tags to build.
   126                            type: string
   127                        type: object
   128                      storageSource:
   129                        description: If provided, get the source from this location
   130                          in Google Cloud Storage.
   131                        properties:
   132                          bucket:
   133                            description: Google Cloud Storage bucket containing the
   134                              source.
   135                            type: string
   136                          generation:
   137                            description: |-
   138                              Google Cloud Storage generation for the object. If the generation
   139                              is omitted, the latest generation will be used.
   140                            type: integer
   141                          object:
   142                            description: Google Cloud Storage object containing the
   143                              source.
   144                            type: string
   145                        type: object
   146                    type: object
   147                  workerPool:
   148                    description: Name of the Cloud Build Custom Worker Pool that should
   149                      be used to build the function.
   150                    type: string
   151                type: object
   152              description:
   153                description: User-provided description of a function.
   154                type: string
   155              eventTrigger:
   156                description: |-
   157                  An Eventarc trigger managed by Google Cloud Functions that fires events in
   158                  response to a condition in another service.
   159                properties:
   160                  eventFilters:
   161                    description: Criteria used to filter events.
   162                    items:
   163                      properties:
   164                        attribute:
   165                          description: |-
   166                            'Required. The name of a CloudEvents attribute.
   167                            Currently, only a subset of attributes are supported for filtering. Use the 'gcloud eventarc providers describe' command to learn more about events and their attributes.
   168                            Do not filter for the 'type' attribute here, as this is already achieved by the resource's 'event_type' attribute.
   169                          type: string
   170                        operator:
   171                          description: |-
   172                            Optional. The operator used for matching the events with the value of
   173                            the filter. If not specified, only events that have an exact key-value
   174                            pair specified in the filter are matched.
   175                            The only allowed value is 'match-path-pattern'.
   176                            [See documentation on path patterns here](https://cloud.google.com/eventarc/docs/path-patterns)'.
   177                          type: string
   178                        value:
   179                          description: |-
   180                            Required. The value for the attribute.
   181                            If the operator field is set as 'match-path-pattern', this value can be a path pattern instead of an exact value.
   182                          type: string
   183                      required:
   184                      - attribute
   185                      - value
   186                      type: object
   187                    type: array
   188                  eventType:
   189                    description: Required. The type of event to observe.
   190                    type: string
   191                  pubsubTopic:
   192                    description: |-
   193                      The name of a Pub/Sub topic in the same project that will be used
   194                      as the transport topic for the event delivery.
   195                    type: string
   196                  retryPolicy:
   197                    description: |-
   198                      Describes the retry policy in case of function's execution failure.
   199                      Retried execution is charged as any other execution. Possible values: ["RETRY_POLICY_UNSPECIFIED", "RETRY_POLICY_DO_NOT_RETRY", "RETRY_POLICY_RETRY"].
   200                    type: string
   201                  serviceAccountEmail:
   202                    description: The email of the service account for this function.
   203                    type: string
   204                  trigger:
   205                    description: Output only. The resource name of the Eventarc trigger.
   206                    type: string
   207                  triggerRegion:
   208                    description: |-
   209                      The region that the trigger will be in. The trigger will only receive
   210                      events originating in this region. It can be the same
   211                      region as the function, a different region or multi-region, or the global
   212                      region. If not provided, defaults to the same region as the function.
   213                    type: string
   214                type: object
   215              location:
   216                description: Immutable. The location of this cloud function.
   217                type: string
   218              projectRef:
   219                description: The project that this resource belongs to.
   220                oneOf:
   221                - not:
   222                    required:
   223                    - external
   224                  required:
   225                  - name
   226                - not:
   227                    anyOf:
   228                    - required:
   229                      - name
   230                    - required:
   231                      - namespace
   232                  required:
   233                  - external
   234                properties:
   235                  external:
   236                    description: 'Allowed value: The `name` field of a `Project` resource.'
   237                    type: string
   238                  name:
   239                    description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
   240                    type: string
   241                  namespace:
   242                    description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
   243                    type: string
   244                type: object
   245              resourceID:
   246                description: Immutable. Optional. The name of the resource. Used for
   247                  creation and acquisition. When unset, the value of `metadata.name`
   248                  is used as the default.
   249                type: string
   250              serviceConfig:
   251                description: Describes the Service being deployed.
   252                properties:
   253                  allTrafficOnLatestRevision:
   254                    description: Whether 100% of traffic is routed to the latest revision.
   255                      Defaults to true.
   256                    type: boolean
   257                  availableCpu:
   258                    description: The number of CPUs used in a single container instance.
   259                      Default value is calculated from available memory.
   260                    type: string
   261                  availableMemory:
   262                    description: |-
   263                      The amount of memory available for a function.
   264                      Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
   265                      supplied the value is interpreted as bytes.
   266                    type: string
   267                  environmentVariables:
   268                    additionalProperties:
   269                      type: string
   270                    description: Environment variables that shall be available during
   271                      function execution.
   272                    type: object
   273                  gcfUri:
   274                    description: URIs of the Service deployed.
   275                    type: string
   276                  ingressSettings:
   277                    description: 'Available ingress settings. Defaults to "ALLOW_ALL"
   278                      if unspecified. Default value: "ALLOW_ALL" Possible values:
   279                      ["ALLOW_ALL", "ALLOW_INTERNAL_ONLY", "ALLOW_INTERNAL_AND_GCLB"].'
   280                    type: string
   281                  maxInstanceCount:
   282                    description: |-
   283                      The limit on the maximum number of function instances that may coexist at a
   284                      given time.
   285                    type: integer
   286                  maxInstanceRequestConcurrency:
   287                    description: Sets the maximum number of concurrent requests that
   288                      each instance can receive. Defaults to 1.
   289                    type: integer
   290                  minInstanceCount:
   291                    description: |-
   292                      The limit on the minimum number of function instances that may coexist at a
   293                      given time.
   294                    type: integer
   295                  secretEnvironmentVariables:
   296                    description: Secret environment variables configuration.
   297                    items:
   298                      properties:
   299                        key:
   300                          description: Name of the environment variable.
   301                          type: string
   302                        projectId:
   303                          description: Project identifier (preferrably project number
   304                            but can also be the project ID) of the project that contains
   305                            the secret. If not set, it will be populated with the
   306                            function's project assuming that the secret exists in
   307                            the same project as of the function.
   308                          type: string
   309                        secret:
   310                          description: Name of the secret in secret manager (not the
   311                            full resource name).
   312                          type: string
   313                        version:
   314                          description: Version of the secret (version number or the
   315                            string 'latest'). It is recommended to use a numeric version
   316                            for secret environment variables as any updates to the
   317                            secret value is not reflected until new instances start.
   318                          type: string
   319                      required:
   320                      - key
   321                      - projectId
   322                      - secret
   323                      - version
   324                      type: object
   325                    type: array
   326                  secretVolumes:
   327                    description: Secret volumes configuration.
   328                    items:
   329                      properties:
   330                        mountPath:
   331                          description: 'The path within the container to mount the
   332                            secret volume. For example, setting the mountPath as /etc/secrets
   333                            would mount the secret value files under the /etc/secrets
   334                            directory. This directory will also be completely shadowed
   335                            and unavailable to mount any other secrets. Recommended
   336                            mount path: /etc/secrets.'
   337                          type: string
   338                        projectId:
   339                          description: Project identifier (preferrably project number
   340                            but can also be the project ID) of the project that contains
   341                            the secret. If not set, it will be populated with the
   342                            function's project assuming that the secret exists in
   343                            the same project as of the function.
   344                          type: string
   345                        secret:
   346                          description: Name of the secret in secret manager (not the
   347                            full resource name).
   348                          type: string
   349                        versions:
   350                          description: List of secret versions to mount for this secret.
   351                            If empty, the latest version of the secret will be made
   352                            available in a file named after the secret under the mount
   353                            point.'.
   354                          items:
   355                            properties:
   356                              path:
   357                                description: Relative path of the file under the mount
   358                                  path where the secret value for this version will
   359                                  be fetched and made available. For example, setting
   360                                  the mountPath as '/etc/secrets' and path as secret_foo
   361                                  would mount the secret value file at /etc/secrets/secret_foo.
   362                                type: string
   363                              version:
   364                                description: Version of the secret (version number
   365                                  or the string 'latest'). It is preferable to use
   366                                  latest version with secret volumes as secret value
   367                                  changes are reflected immediately.
   368                                type: string
   369                            required:
   370                            - path
   371                            - version
   372                            type: object
   373                          type: array
   374                      required:
   375                      - mountPath
   376                      - projectId
   377                      - secret
   378                      type: object
   379                    type: array
   380                  service:
   381                    description: Name of the service associated with a Function.
   382                    type: string
   383                  serviceAccountEmail:
   384                    description: The email of the service account for this function.
   385                    type: string
   386                  timeoutSeconds:
   387                    description: |-
   388                      The function execution timeout. Execution is considered failed and
   389                      can be terminated if the function is not completed at the end of the
   390                      timeout period. Defaults to 60 seconds.
   391                    type: integer
   392                  uri:
   393                    description: URI of the Service deployed.
   394                    type: string
   395                  vpcConnector:
   396                    description: The Serverless VPC Access connector that this cloud
   397                      function can connect to.
   398                    type: string
   399                  vpcConnectorEgressSettings:
   400                    description: 'Available egress settings. Possible values: ["VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED",
   401                      "PRIVATE_RANGES_ONLY", "ALL_TRAFFIC"].'
   402                    type: string
   403                type: object
   404            required:
   405            - location
   406            - projectRef
   407            type: object
   408          status:
   409            properties:
   410              conditions:
   411                description: Conditions represent the latest available observation
   412                  of the resource's current state.
   413                items:
   414                  properties:
   415                    lastTransitionTime:
   416                      description: Last time the condition transitioned from one status
   417                        to another.
   418                      type: string
   419                    message:
   420                      description: Human-readable message indicating details about
   421                        last transition.
   422                      type: string
   423                    reason:
   424                      description: Unique, one-word, CamelCase reason for the condition's
   425                        last transition.
   426                      type: string
   427                    status:
   428                      description: Status is the status of the condition. Can be True,
   429                        False, Unknown.
   430                      type: string
   431                    type:
   432                      description: Type is the type of the condition.
   433                      type: string
   434                  type: object
   435                type: array
   436              environment:
   437                description: The environment the function is hosted on.
   438                type: string
   439              observedGeneration:
   440                description: ObservedGeneration is the generation of the resource
   441                  that was most recently observed by the Config Connector controller.
   442                  If this is equal to metadata.generation, then that means that the
   443                  current reported status reflects the most recent desired state of
   444                  the resource.
   445                type: integer
   446              state:
   447                description: Describes the current state of the function.
   448                type: string
   449              updateTime:
   450                description: The last update timestamp of a Cloud Function.
   451                type: string
   452            type: object
   453        required:
   454        - spec
   455        type: object
   456    served: true
   457    storage: true
   458    subresources:
   459      status: {}
   460status:
   461  acceptedNames:
   462    kind: ""
   463    plural: ""
   464  conditions: []
   465  storedVersions: []

View as plain text