v1beta1

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Overview

+kubebuilder:object:generate=true +groupName=eventarc.gcp.upbound.io +versionName=v1beta1

Index

Constants

View Source
const (
	CRDGroup   = "eventarc.gcp.upbound.io"
	CRDVersion = "v1beta1"
)

Package type metadata.

Variables

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	Trigger_Kind             = "Trigger"
	Trigger_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Trigger_Kind}.String()
	Trigger_KindAPIVersion   = Trigger_Kind + "." + CRDGroupVersion.String()
	Trigger_GroupVersionKind = CRDGroupVersion.WithKind(Trigger_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type CloudRunServiceObservation

type CloudRunServiceObservation struct {
}

func (*CloudRunServiceObservation) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudRunServiceObservation.

func (*CloudRunServiceObservation) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CloudRunServiceParameters

type CloudRunServiceParameters struct {

	// Optional. The relative path on the GKE service the events should be sent to. The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".
	// +kubebuilder:validation:Optional
	Path *string `json:"path,omitempty" tf:"path,omitempty"`

	// Required. The region the Cloud Run service is deployed in.
	// +kubebuilder:validation:Optional
	Region *string `json:"region,omitempty" tf:"region,omitempty"`

	// Required. Name of the GKE service.
	// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/cloudrun/v1beta1.Service
	// +kubebuilder:validation:Optional
	Service *string `json:"service,omitempty" tf:"service,omitempty"`

	// Reference to a Service in cloudrun to populate service.
	// +kubebuilder:validation:Optional
	ServiceRef *v1.Reference `json:"serviceRef,omitempty" tf:"-"`

	// Selector for a Service in cloudrun to populate service.
	// +kubebuilder:validation:Optional
	ServiceSelector *v1.Selector `json:"serviceSelector,omitempty" tf:"-"`
}

func (*CloudRunServiceParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudRunServiceParameters.

func (*CloudRunServiceParameters) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DestinationObservation

type DestinationObservation struct {
}

func (*DestinationObservation) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DestinationObservation.

func (*DestinationObservation) DeepCopyInto

func (in *DestinationObservation) DeepCopyInto(out *DestinationObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DestinationParameters

type DestinationParameters struct {

	// [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}
	// +kubebuilder:validation:Optional
	CloudFunction *string `json:"cloudFunction,omitempty" tf:"cloud_function,omitempty"`

	// Cloud Run fully-managed service that receives the events. The service should be running in the same project of the trigger.
	// +kubebuilder:validation:Optional
	CloudRunService []CloudRunServiceParameters `json:"cloudRunService,omitempty" tf:"cloud_run_service,omitempty"`

	// A GKE service capable of receiving events. The service should be running in the same project as the trigger.
	// +kubebuilder:validation:Optional
	Gke []GkeParameters `json:"gke,omitempty" tf:"gke,omitempty"`

	// The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger. Format: projects/{project}/locations/{location}/workflows/{workflow}
	// +kubebuilder:validation:Optional
	Workflow *string `json:"workflow,omitempty" tf:"workflow,omitempty"`
}

func (*DestinationParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DestinationParameters.

func (*DestinationParameters) DeepCopyInto

func (in *DestinationParameters) DeepCopyInto(out *DestinationParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GkeObservation

type GkeObservation struct {
}

func (*GkeObservation) DeepCopy

func (in *GkeObservation) DeepCopy() *GkeObservation

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GkeObservation.

func (*GkeObservation) DeepCopyInto

func (in *GkeObservation) DeepCopyInto(out *GkeObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GkeParameters

type GkeParameters struct {

	// 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.
	// +kubebuilder:validation:Required
	Cluster *string `json:"cluster" tf:"cluster,omitempty"`

	// The location for the resource
	// +kubebuilder:validation:Required
	Location *string `json:"location" tf:"location,omitempty"`

	// Required. The namespace the GKE service is running in.
	// +kubebuilder:validation:Required
	Namespace *string `json:"namespace" tf:"namespace,omitempty"`

	// Optional. The relative path on the GKE service the events should be sent to. The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".
	// +kubebuilder:validation:Optional
	Path *string `json:"path,omitempty" tf:"path,omitempty"`

	// Required. Name of the GKE service.
	// +kubebuilder:validation:Required
	Service *string `json:"service" tf:"service,omitempty"`
}

func (*GkeParameters) DeepCopy

func (in *GkeParameters) DeepCopy() *GkeParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GkeParameters.

func (*GkeParameters) DeepCopyInto

func (in *GkeParameters) DeepCopyInto(out *GkeParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MatchingCriteriaObservation

type MatchingCriteriaObservation struct {
}

func (*MatchingCriteriaObservation) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MatchingCriteriaObservation.

func (*MatchingCriteriaObservation) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MatchingCriteriaParameters

type MatchingCriteriaParameters struct {

	// Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. All triggers MUST provide a filter for the 'type' attribute.
	// +kubebuilder:validation:Required
	Attribute *string `json:"attribute" tf:"attribute,omitempty"`

	// Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is match-path-pattern.
	// +kubebuilder:validation:Optional
	Operator *string `json:"operator,omitempty" tf:"operator,omitempty"`

	// Required. The value for the attribute. See https://cloud.google.com/eventarc/docs/creating-triggers#trigger-gcloud for available values.
	// +kubebuilder:validation:Required
	Value *string `json:"value" tf:"value,omitempty"`
}

func (*MatchingCriteriaParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MatchingCriteriaParameters.

func (*MatchingCriteriaParameters) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PubsubObservation

type PubsubObservation struct {

	// Output only. The name of the Pub/Sub subscription created and managed by Eventarc system as a transport for the event delivery. Format: projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}.
	Subscription *string `json:"subscription,omitempty" tf:"subscription,omitempty"`
}

func (*PubsubObservation) DeepCopy

func (in *PubsubObservation) DeepCopy() *PubsubObservation

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PubsubObservation.

func (*PubsubObservation) DeepCopyInto

func (in *PubsubObservation) DeepCopyInto(out *PubsubObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PubsubParameters

type PubsubParameters struct {

	// 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.
	// +kubebuilder:validation:Optional
	Topic *string `json:"topic,omitempty" tf:"topic,omitempty"`
}

func (*PubsubParameters) DeepCopy

func (in *PubsubParameters) DeepCopy() *PubsubParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PubsubParameters.

func (*PubsubParameters) DeepCopyInto

func (in *PubsubParameters) DeepCopyInto(out *PubsubParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TransportObservation

type TransportObservation struct {

	// The Pub/Sub topic and subscription used by Eventarc as delivery intermediary.
	// +kubebuilder:validation:Optional
	Pubsub []PubsubObservation `json:"pubsub,omitempty" tf:"pubsub,omitempty"`
}

func (*TransportObservation) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransportObservation.

func (*TransportObservation) DeepCopyInto

func (in *TransportObservation) DeepCopyInto(out *TransportObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TransportParameters

type TransportParameters struct {

	// The Pub/Sub topic and subscription used by Eventarc as delivery intermediary.
	// +kubebuilder:validation:Optional
	Pubsub []PubsubParameters `json:"pubsub,omitempty" tf:"pubsub,omitempty"`
}

func (*TransportParameters) DeepCopy

func (in *TransportParameters) DeepCopy() *TransportParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransportParameters.

func (*TransportParameters) DeepCopyInto

func (in *TransportParameters) DeepCopyInto(out *TransportParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Trigger

type Trigger struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              TriggerSpec   `json:"spec"`
	Status            TriggerStatus `json:"status,omitempty"`
}

Trigger is the Schema for the Triggers API. The Eventarc Trigger resource +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,gcp}

func (*Trigger) DeepCopy

func (in *Trigger) DeepCopy() *Trigger

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Trigger.

func (*Trigger) DeepCopyInto

func (in *Trigger) DeepCopyInto(out *Trigger)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Trigger) DeepCopyObject

func (in *Trigger) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Trigger) GetCondition

func (mg *Trigger) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Trigger.

func (*Trigger) GetConnectionDetailsMapping

func (tr *Trigger) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Trigger

func (*Trigger) GetDeletionPolicy

func (mg *Trigger) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Trigger.

func (*Trigger) GetID

func (tr *Trigger) GetID() string

GetID returns ID of underlying Terraform resource of this Trigger

func (*Trigger) GetObservation

func (tr *Trigger) GetObservation() (map[string]any, error)

GetObservation of this Trigger

func (*Trigger) GetParameters

func (tr *Trigger) GetParameters() (map[string]any, error)

GetParameters of this Trigger

func (*Trigger) GetProviderConfigReference

func (mg *Trigger) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Trigger.

func (*Trigger) GetProviderReference

func (mg *Trigger) GetProviderReference() *xpv1.Reference

GetProviderReference of this Trigger. Deprecated: Use GetProviderConfigReference.

func (*Trigger) GetPublishConnectionDetailsTo

func (mg *Trigger) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Trigger.

func (*Trigger) GetTerraformResourceType

func (mg *Trigger) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Trigger

func (*Trigger) GetTerraformSchemaVersion

func (tr *Trigger) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Trigger) GetWriteConnectionSecretToReference

func (mg *Trigger) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Trigger.

func (*Trigger) LateInitialize

func (tr *Trigger) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Trigger using its observed tfState. returns True if there are any spec changes for the resource.

func (*Trigger) ResolveReferences

func (mg *Trigger) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this Trigger.

func (*Trigger) SetConditions

func (mg *Trigger) SetConditions(c ...xpv1.Condition)

SetConditions of this Trigger.

func (*Trigger) SetDeletionPolicy

func (mg *Trigger) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Trigger.

func (*Trigger) SetObservation

func (tr *Trigger) SetObservation(obs map[string]any) error

SetObservation for this Trigger

func (*Trigger) SetParameters

func (tr *Trigger) SetParameters(params map[string]any) error

SetParameters for this Trigger

func (*Trigger) SetProviderConfigReference

func (mg *Trigger) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Trigger.

func (*Trigger) SetProviderReference

func (mg *Trigger) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this Trigger. Deprecated: Use SetProviderConfigReference.

func (*Trigger) SetPublishConnectionDetailsTo

func (mg *Trigger) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Trigger.

func (*Trigger) SetWriteConnectionSecretToReference

func (mg *Trigger) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Trigger.

type TriggerList

type TriggerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Trigger `json:"items"`
}

TriggerList contains a list of Triggers

func (*TriggerList) DeepCopy

func (in *TriggerList) DeepCopy() *TriggerList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerList.

func (*TriggerList) DeepCopyInto

func (in *TriggerList) DeepCopyInto(out *TriggerList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TriggerList) DeepCopyObject

func (in *TriggerList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*TriggerList) GetItems

func (l *TriggerList) GetItems() []resource.Managed

GetItems of this TriggerList.

type TriggerObservation

type TriggerObservation struct {

	// Output only. The creation time.
	CreateTime *string `json:"createTime,omitempty" tf:"create_time,omitempty"`

	// Output only. This checksum is computed by the server based on the value of other fields, and may be sent only on create requests to ensure the client has an up-to-date value before proceeding.
	Etag *string `json:"etag,omitempty" tf:"etag,omitempty"`

	// an identifier for the resource with format projects/{{project}}/locations/{{location}}/triggers/{{name}}
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// Optional. In order to deliver messages, Eventarc may use other GCP products as transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
	// +kubebuilder:validation:Optional
	Transport []TransportObservation `json:"transport,omitempty" tf:"transport,omitempty"`

	// Output only. Server assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
	UID *string `json:"uid,omitempty" tf:"uid,omitempty"`

	// Output only. The last-modified time.
	UpdateTime *string `json:"updateTime,omitempty" tf:"update_time,omitempty"`
}

func (*TriggerObservation) DeepCopy

func (in *TriggerObservation) DeepCopy() *TriggerObservation

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerObservation.

func (*TriggerObservation) DeepCopyInto

func (in *TriggerObservation) DeepCopyInto(out *TriggerObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TriggerParameters

type TriggerParameters struct {

	// Required. Destination specifies where the events should be sent to.
	// +kubebuilder:validation:Required
	Destination []DestinationParameters `json:"destination" tf:"destination,omitempty"`

	// Optional. User labels attached to the triggers that can be used to group resources.
	// +kubebuilder:validation:Optional
	Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`

	// The location for the resource
	// +kubebuilder:validation:Required
	Location *string `json:"location" tf:"location,omitempty"`

	// Required. null The list of filters that applies to event attributes. Only events that match all the provided filters will be sent to the destination.
	// +kubebuilder:validation:Required
	MatchingCriteria []MatchingCriteriaParameters `json:"matchingCriteria" tf:"matching_criteria,omitempty"`

	// The project for the resource
	// +kubebuilder:validation:Optional
	Project *string `json:"project,omitempty" tf:"project,omitempty"`

	// 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.
	// +kubebuilder:validation:Optional
	ServiceAccount *string `json:"serviceAccount,omitempty" tf:"service_account,omitempty"`

	// Optional. In order to deliver messages, Eventarc may use other GCP products as transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
	// +kubebuilder:validation:Optional
	Transport []TransportParameters `json:"transport,omitempty" tf:"transport,omitempty"`
}

func (*TriggerParameters) DeepCopy

func (in *TriggerParameters) DeepCopy() *TriggerParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerParameters.

func (*TriggerParameters) DeepCopyInto

func (in *TriggerParameters) DeepCopyInto(out *TriggerParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TriggerSpec

type TriggerSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     TriggerParameters `json:"forProvider"`
}

TriggerSpec defines the desired state of Trigger

func (*TriggerSpec) DeepCopy

func (in *TriggerSpec) DeepCopy() *TriggerSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerSpec.

func (*TriggerSpec) DeepCopyInto

func (in *TriggerSpec) DeepCopyInto(out *TriggerSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TriggerStatus

type TriggerStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        TriggerObservation `json:"atProvider,omitempty"`
}

TriggerStatus defines the observed state of Trigger.

func (*TriggerStatus) DeepCopy

func (in *TriggerStatus) DeepCopy() *TriggerStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerStatus.

func (*TriggerStatus) DeepCopyInto

func (in *TriggerStatus) DeepCopyInto(out *TriggerStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL