...

Text file src/github.com/GoogleCloudPlatform/k8s-config-connector/crds/eventarc_v1beta1_eventarctrigger.yaml

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

     1# Copyright 2020 Google LLC
     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
    15apiVersion: apiextensions.k8s.io/v1
    16kind: CustomResourceDefinition
    17metadata:
    18  annotations:
    19    cnrm.cloud.google.com/version: 1.106.0
    20  creationTimestamp: null
    21  labels:
    22    cnrm.cloud.google.com/dcl2crd: "true"
    23    cnrm.cloud.google.com/managed-by-kcc: "true"
    24    cnrm.cloud.google.com/stability-level: stable
    25    cnrm.cloud.google.com/system: "true"
    26  name: eventarctriggers.eventarc.cnrm.cloud.google.com
    27spec:
    28  group: eventarc.cnrm.cloud.google.com
    29  names:
    30    categories:
    31    - gcp
    32    kind: EventarcTrigger
    33    plural: eventarctriggers
    34    shortNames:
    35    - gcpeventarctrigger
    36    - gcpeventarctriggers
    37    singular: eventarctrigger
    38  scope: Namespaced
    39  versions:
    40  - additionalPrinterColumns:
    41    - jsonPath: .metadata.creationTimestamp
    42      name: Age
    43      type: date
    44    - description: When 'True', the most recent reconcile of the resource succeeded
    45      jsonPath: .status.conditions[?(@.type=='Ready')].status
    46      name: Ready
    47      type: string
    48    - description: The reason for the value in 'Ready'
    49      jsonPath: .status.conditions[?(@.type=='Ready')].reason
    50      name: Status
    51      type: string
    52    - description: The last transition time for the value in 'Status'
    53      jsonPath: .status.conditions[?(@.type=='Ready')].lastTransitionTime
    54      name: Status Age
    55      type: date
    56    name: v1beta1
    57    schema:
    58      openAPIV3Schema:
    59        properties:
    60          apiVersion:
    61            description: 'apiVersion defines the versioned schema of this representation
    62              of an object. Servers should convert recognized schemas to the latest
    63              internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
    64            type: string
    65          kind:
    66            description: 'kind is a string value representing the REST resource this
    67              object represents. Servers may infer this from the endpoint the client
    68              submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
    69            type: string
    70          metadata:
    71            type: object
    72          spec:
    73            properties:
    74              channelRef:
    75                description: Immutable.
    76                oneOf:
    77                - not:
    78                    required:
    79                    - external
    80                  required:
    81                  - name
    82                - not:
    83                    anyOf:
    84                    - required:
    85                      - name
    86                    - required:
    87                      - namespace
    88                  required:
    89                  - external
    90                properties:
    91                  external:
    92                    description: Optional. The name of the channel associated with
    93                      the trigger in `projects/{project}/locations/{location}/channels/{channel}`
    94                      format. You must provide a channel to receive events from Eventarc
    95                      SaaS partners.
    96                    type: string
    97                  name:
    98                    description: |-
    99                      [WARNING] EventarcChannel not yet supported in Config Connector, use 'external' field to reference existing resources.
   100                      Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
   101                    type: string
   102                  namespace:
   103                    description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
   104                    type: string
   105                type: object
   106              destination:
   107                description: Required. Destination specifies where the events should
   108                  be sent to.
   109                properties:
   110                  cloudFunctionRef:
   111                    oneOf:
   112                    - not:
   113                        required:
   114                        - external
   115                      required:
   116                      - name
   117                    - not:
   118                        anyOf:
   119                        - required:
   120                          - name
   121                        - required:
   122                          - namespace
   123                      required:
   124                      - external
   125                    properties:
   126                      external:
   127                        description: |-
   128                          [WARNING] Configuring a Cloud Function in Trigger is not supported as of today. The Cloud Function resource name. Format: projects/{project}/locations/{location}/functions/{function}
   129
   130                          Allowed value: The Google Cloud resource name of a `CloudFunctionsFunction` resource (format: `projects/{{project}}/locations/{{region}}/functions/{{name}}`).
   131                        type: string
   132                      name:
   133                        description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
   134                        type: string
   135                      namespace:
   136                        description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
   137                        type: string
   138                    type: object
   139                  cloudRunService:
   140                    description: Cloud Run fully-managed service that receives the
   141                      events. The service should be running in the same project of
   142                      the trigger.
   143                    properties:
   144                      path:
   145                        description: 'Optional. The relative path on the Cloud Run
   146                          service the events should be sent to. The value must conform
   147                          to the definition of URI path segment (section 3.3 of RFC2396).
   148                          Examples: "/route", "route", "route/subroute".'
   149                        type: string
   150                      region:
   151                        description: Required. The region the Cloud Run service is
   152                          deployed in.
   153                        type: string
   154                      serviceRef:
   155                        oneOf:
   156                        - not:
   157                            required:
   158                            - external
   159                          required:
   160                          - name
   161                        - not:
   162                            anyOf:
   163                            - required:
   164                              - name
   165                            - required:
   166                              - namespace
   167                          required:
   168                          - external
   169                        properties:
   170                          external:
   171                            description: |-
   172                              Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services. Only services located in the same project of the trigger object can be addressed.
   173
   174                              Allowed value: The Google Cloud resource name of a `RunService` resource (format: `projects/{{project}}/locations/{{location}}/services/{{name}}`).
   175                            type: string
   176                          name:
   177                            description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
   178                            type: string
   179                          namespace:
   180                            description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
   181                            type: string
   182                        type: object
   183                    required:
   184                    - region
   185                    - serviceRef
   186                    type: object
   187                  gke:
   188                    description: A GKE service capable of receiving events. The service
   189                      should be running in the same project as the trigger.
   190                    properties:
   191                      clusterRef:
   192                        oneOf:
   193                        - not:
   194                            required:
   195                            - external
   196                          required:
   197                          - name
   198                        - not:
   199                            anyOf:
   200                            - required:
   201                              - name
   202                            - required:
   203                              - namespace
   204                          required:
   205                          - external
   206                        properties:
   207                          external:
   208                            description: |-
   209                              Required. The name of the cluster the GKE service is running in. The cluster must be running in the same project as the trigger being created.
   210
   211                              Allowed value: The `selfLink` field of a `ContainerCluster` resource.
   212                            type: string
   213                          name:
   214                            description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
   215                            type: string
   216                          namespace:
   217                            description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
   218                            type: string
   219                        type: object
   220                      location:
   221                        description: Required. The name of the Google Compute Engine
   222                          in which the cluster resides, which can either be compute
   223                          zone (for example, us-central1-a) for the zonal clusters
   224                          or region (for example, us-central1) for regional clusters.
   225                        type: string
   226                      namespace:
   227                        description: Required. The namespace the GKE service is running
   228                          in.
   229                        type: string
   230                      path:
   231                        description: 'Optional. The relative path on the GKE service
   232                          the events should be sent to. The value must conform to
   233                          the definition of a URI path segment (section 3.3 of RFC2396).
   234                          Examples: "/route", "route", "route/subroute".'
   235                        type: string
   236                      service:
   237                        description: Required. Name of the GKE service.
   238                        type: string
   239                    required:
   240                    - clusterRef
   241                    - location
   242                    - namespace
   243                    - service
   244                    type: object
   245                  workflowRef:
   246                    oneOf:
   247                    - not:
   248                        required:
   249                        - external
   250                      required:
   251                      - name
   252                    - not:
   253                        anyOf:
   254                        - required:
   255                          - name
   256                        - required:
   257                          - namespace
   258                      required:
   259                      - external
   260                    properties:
   261                      external:
   262                        description: 'The resource name of the Workflow whose Executions
   263                          are triggered by the events. The Workflow resource should
   264                          be deployed in the same project as the trigger. Format:
   265                          `projects/{project}/locations/{location}/workflows/{workflow}`'
   266                        type: string
   267                      name:
   268                        description: |-
   269                          [WARNING] WorkflowsWorkflow not yet supported in Config Connector, use 'external' field to reference existing resources.
   270                          Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
   271                        type: string
   272                      namespace:
   273                        description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
   274                        type: string
   275                    type: object
   276                type: object
   277              location:
   278                description: Immutable. The location for the resource
   279                type: string
   280              matchingCriteria:
   281                description: Required. null The list of filters that applies to event
   282                  attributes. Only events that match all the provided filters will
   283                  be sent to the destination.
   284                items:
   285                  properties:
   286                    attribute:
   287                      description: Required. The name of a CloudEvents attribute.
   288                        Currently, only a subset of attributes are supported for filtering.
   289                        All triggers MUST provide a filter for the 'type' attribute.
   290                      type: string
   291                    operator:
   292                      description: Optional. The operator used for matching the events
   293                        with the value of the filter. If not specified, only events
   294                        that have an exact key-value pair specified in the filter
   295                        are matched. The only allowed value is `match-path-pattern`.
   296                      type: string
   297                    value:
   298                      description: Required. The value for the attribute. See https://cloud.google.com/eventarc/docs/creating-triggers#trigger-gcloud
   299                        for available values.
   300                      type: string
   301                  required:
   302                  - attribute
   303                  - value
   304                  type: object
   305                type: array
   306              projectRef:
   307                description: Immutable. The Project that this resource belongs to.
   308                oneOf:
   309                - not:
   310                    required:
   311                    - external
   312                  required:
   313                  - name
   314                - not:
   315                    anyOf:
   316                    - required:
   317                      - name
   318                    - required:
   319                      - namespace
   320                  required:
   321                  - external
   322                properties:
   323                  external:
   324                    description: |-
   325                      The project for the resource
   326
   327                      Allowed value: The Google Cloud resource name of a `Project` resource (format: `projects/{{name}}`).
   328                    type: string
   329                  name:
   330                    description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
   331                    type: string
   332                  namespace:
   333                    description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
   334                    type: string
   335                type: object
   336              resourceID:
   337                description: Immutable. Optional. The name of the resource. Used for
   338                  creation and acquisition. When unset, the value of `metadata.name`
   339                  is used as the default.
   340                type: string
   341              serviceAccountRef:
   342                oneOf:
   343                - not:
   344                    required:
   345                    - external
   346                  required:
   347                  - name
   348                - not:
   349                    anyOf:
   350                    - required:
   351                      - name
   352                    - required:
   353                      - namespace
   354                  required:
   355                  - external
   356                properties:
   357                  external:
   358                    description: |-
   359                      Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The principal who calls this API must have `iam.serviceAccounts.actAs` permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts#sa_common for more information. For Cloud Run destinations, this service account is used to generate identity tokens when invoking the service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account for information on how to invoke authenticated Cloud Run services. In order to create Audit Log triggers, the service account should also have `roles/eventarc.eventReceiver` IAM role.
   360
   361                      Allowed value: The `email` field of an `IAMServiceAccount` resource.
   362                    type: string
   363                  name:
   364                    description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
   365                    type: string
   366                  namespace:
   367                    description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
   368                    type: string
   369                type: object
   370              transport:
   371                description: Immutable. Optional. In order to deliver messages, Eventarc
   372                  may use other GCP products as transport intermediary. This field
   373                  contains a reference to that transport intermediary. This information
   374                  can be used for debugging purposes.
   375                properties:
   376                  pubsub:
   377                    description: Immutable. The Pub/Sub topic and subscription used
   378                      by Eventarc as delivery intermediary.
   379                    properties:
   380                      topicRef:
   381                        description: Immutable.
   382                        oneOf:
   383                        - not:
   384                            required:
   385                            - external
   386                          required:
   387                          - name
   388                        - not:
   389                            anyOf:
   390                            - required:
   391                              - name
   392                            - required:
   393                              - namespace
   394                          required:
   395                          - external
   396                        properties:
   397                          external:
   398                            description: |-
   399                              Optional. The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{PROJECT_ID}/topics/{TOPIC_NAME}. You may set an existing topic for triggers of the type google.cloud.pubsub.topic.v1.messagePublished` only. The topic you provide here will not be deleted by Eventarc at trigger deletion.
   400
   401                              Allowed value: The Google Cloud resource name of a `PubSubTopic` resource (format: `projects/{{project}}/topics/{{name}}`).
   402                            type: string
   403                          name:
   404                            description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
   405                            type: string
   406                          namespace:
   407                            description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
   408                            type: string
   409                        type: object
   410                    type: object
   411                type: object
   412            required:
   413            - destination
   414            - location
   415            - matchingCriteria
   416            - projectRef
   417            type: object
   418          status:
   419            properties:
   420              conditions:
   421                description: Conditions represent the latest available observation
   422                  of the resource's current state.
   423                items:
   424                  properties:
   425                    lastTransitionTime:
   426                      description: Last time the condition transitioned from one status
   427                        to another.
   428                      type: string
   429                    message:
   430                      description: Human-readable message indicating details about
   431                        last transition.
   432                      type: string
   433                    reason:
   434                      description: Unique, one-word, CamelCase reason for the condition's
   435                        last transition.
   436                      type: string
   437                    status:
   438                      description: Status is the status of the condition. Can be True,
   439                        False, Unknown.
   440                      type: string
   441                    type:
   442                      description: Type is the type of the condition.
   443                      type: string
   444                  type: object
   445                type: array
   446              createTime:
   447                description: Output only. The creation time.
   448                format: date-time
   449                type: string
   450              etag:
   451                description: Output only. This checksum is computed by the server
   452                  based on the value of other fields, and may be sent only on create
   453                  requests to ensure the client has an up-to-date value before proceeding.
   454                type: string
   455              observedGeneration:
   456                description: ObservedGeneration is the generation of the resource
   457                  that was most recently observed by the Config Connector controller.
   458                  If this is equal to metadata.generation, then that means that the
   459                  current reported status reflects the most recent desired state of
   460                  the resource.
   461                type: integer
   462              resourceConditions:
   463                additionalProperties:
   464                  type: string
   465                description: Output only. The reason(s) why a trigger is in FAILED
   466                  state.
   467                type: object
   468              transport:
   469                properties:
   470                  pubsub:
   471                    properties:
   472                      subscription:
   473                        description: 'Output only. The name of the Pub/Sub subscription
   474                          created and managed by Eventarc system as a transport for
   475                          the event delivery. Format: `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`.'
   476                        type: string
   477                    type: object
   478                type: object
   479              uid:
   480                description: Output only. Server assigned unique identifier for the
   481                  trigger. The value is a UUID4 string and guaranteed to remain unchanged
   482                  until the resource is deleted.
   483                type: string
   484              updateTime:
   485                description: Output only. The last-modified time.
   486                format: date-time
   487                type: string
   488            type: object
   489        required:
   490        - spec
   491        type: object
   492    served: true
   493    storage: true
   494    subresources:
   495      status: {}
   496status:
   497  acceptedNames:
   498    kind: ""
   499    plural: ""
   500  conditions: []
   501  storedVersions: []

View as plain text