Documentation
¶
Overview ¶
+kubebuilder:object:generate=true +groupName=workflows.gcp.upbound.io +versionName=v1beta1
Index ¶
- Constants
- Variables
- type Workflow
- func (in *Workflow) DeepCopy() *Workflow
- func (in *Workflow) DeepCopyInto(out *Workflow)
- func (in *Workflow) DeepCopyObject() runtime.Object
- func (mg *Workflow) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Workflow) GetConnectionDetailsMapping() map[string]string
- func (mg *Workflow) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Workflow) GetID() string
- func (mg *Workflow) GetManagementPolicy() xpv1.ManagementPolicy
- func (tr *Workflow) GetObservation() (map[string]any, error)
- func (tr *Workflow) GetParameters() (map[string]any, error)
- func (mg *Workflow) GetProviderConfigReference() *xpv1.Reference
- func (mg *Workflow) GetProviderReference() *xpv1.Reference
- func (mg *Workflow) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Workflow) GetTerraformResourceType() string
- func (tr *Workflow) GetTerraformSchemaVersion() int
- func (mg *Workflow) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Workflow) LateInitialize(attrs []byte) (bool, error)
- func (mg *Workflow) ResolveReferences(ctx context.Context, c client.Reader) error
- func (mg *Workflow) SetConditions(c ...xpv1.Condition)
- func (mg *Workflow) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Workflow) SetManagementPolicy(r xpv1.ManagementPolicy)
- func (tr *Workflow) SetObservation(obs map[string]any) error
- func (tr *Workflow) SetParameters(params map[string]any) error
- func (mg *Workflow) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Workflow) SetProviderReference(r *xpv1.Reference)
- func (mg *Workflow) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Workflow) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type WorkflowList
- type WorkflowObservation
- type WorkflowParameters
- type WorkflowSpec
- type WorkflowStatus
Constants ¶
const ( CRDGroup = "workflows.gcp.upbound.io" CRDVersion = "v1beta1" )
Package type metadata.
Variables ¶
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 )
var ( Workflow_Kind = "Workflow" Workflow_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Workflow_Kind}.String() Workflow_KindAPIVersion = Workflow_Kind + "." + CRDGroupVersion.String() Workflow_GroupVersionKind = CRDGroupVersion.WithKind(Workflow_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type Workflow ¶
type Workflow struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec WorkflowSpec `json:"spec"` Status WorkflowStatus `json:"status,omitempty"` }
Workflow is the Schema for the Workflows API. Workflow program to be executed by Workflows. +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 (*Workflow) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workflow.
func (*Workflow) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Workflow) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Workflow) GetCondition ¶
func (mg *Workflow) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Workflow.
func (*Workflow) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Workflow
func (*Workflow) GetDeletionPolicy ¶
func (mg *Workflow) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Workflow.
func (*Workflow) GetManagementPolicy ¶ added in v0.31.0
func (mg *Workflow) GetManagementPolicy() xpv1.ManagementPolicy
GetManagementPolicy of this Workflow.
func (*Workflow) GetObservation ¶
GetObservation of this Workflow
func (*Workflow) GetParameters ¶
GetParameters of this Workflow
func (*Workflow) GetProviderConfigReference ¶
GetProviderConfigReference of this Workflow.
func (*Workflow) GetProviderReference ¶
GetProviderReference of this Workflow. Deprecated: Use GetProviderConfigReference.
func (*Workflow) GetPublishConnectionDetailsTo ¶
func (mg *Workflow) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Workflow.
func (*Workflow) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Workflow
func (*Workflow) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Workflow) GetWriteConnectionSecretToReference ¶
func (mg *Workflow) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Workflow.
func (*Workflow) LateInitialize ¶
LateInitialize this Workflow using its observed tfState. returns True if there are any spec changes for the resource.
func (*Workflow) ResolveReferences ¶
ResolveReferences of this Workflow.
func (*Workflow) SetConditions ¶
SetConditions of this Workflow.
func (*Workflow) SetDeletionPolicy ¶
func (mg *Workflow) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Workflow.
func (*Workflow) SetManagementPolicy ¶ added in v0.31.0
func (mg *Workflow) SetManagementPolicy(r xpv1.ManagementPolicy)
SetManagementPolicy of this Workflow.
func (*Workflow) SetObservation ¶
SetObservation for this Workflow
func (*Workflow) SetParameters ¶
SetParameters for this Workflow
func (*Workflow) SetProviderConfigReference ¶
SetProviderConfigReference of this Workflow.
func (*Workflow) SetProviderReference ¶
SetProviderReference of this Workflow. Deprecated: Use SetProviderConfigReference.
func (*Workflow) SetPublishConnectionDetailsTo ¶
func (mg *Workflow) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Workflow.
func (*Workflow) SetWriteConnectionSecretToReference ¶
func (mg *Workflow) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Workflow.
type WorkflowList ¶
type WorkflowList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Workflow `json:"items"` }
WorkflowList contains a list of Workflows
func (*WorkflowList) DeepCopy ¶
func (in *WorkflowList) DeepCopy() *WorkflowList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowList.
func (*WorkflowList) DeepCopyInto ¶
func (in *WorkflowList) DeepCopyInto(out *WorkflowList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkflowList) DeepCopyObject ¶
func (in *WorkflowList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*WorkflowList) GetItems ¶
func (l *WorkflowList) GetItems() []resource.Managed
GetItems of this WorkflowList.
type WorkflowObservation ¶
type WorkflowObservation struct { // The timestamp of when the workflow was created in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. CreateTime *string `json:"createTime,omitempty" tf:"create_time,omitempty"` // Description of the workflow provided by the user. Must be at most 1000 unicode characters long. Description *string `json:"description,omitempty" tf:"description,omitempty"` // an identifier for the resource with format projects/{{project}}/locations/{{region}}/workflows/{{name}} ID *string `json:"id,omitempty" tf:"id,omitempty"` // A set of key/value label pairs to assign to this Workflow. Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"` // Name of the Workflow. Name *string `json:"name,omitempty" tf:"name,omitempty"` // Creates a unique name beginning with the // specified prefix. If this and name are unspecified, a random value is chosen for the name. NamePrefix *string `json:"namePrefix,omitempty" tf:"name_prefix,omitempty"` // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project *string `json:"project,omitempty" tf:"project,omitempty"` // The region of the workflow. Region *string `json:"region,omitempty" tf:"region,omitempty"` // The revision of the workflow. A new one is generated if the service account or source contents is changed. RevisionID *string `json:"revisionId,omitempty" tf:"revision_id,omitempty"` // Name of the service account associated with the latest workflow version. This service // account represents the identity of the workflow and determines what permissions the workflow has. // Format: projects/{project}/serviceAccounts/{account}. ServiceAccount *string `json:"serviceAccount,omitempty" tf:"service_account,omitempty"` // Workflow code to be executed. The size limit is 32KB. SourceContents *string `json:"sourceContents,omitempty" tf:"source_contents,omitempty"` // State of the workflow deployment. State *string `json:"state,omitempty" tf:"state,omitempty"` // The timestamp of when the workflow was last updated in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. UpdateTime *string `json:"updateTime,omitempty" tf:"update_time,omitempty"` }
func (*WorkflowObservation) DeepCopy ¶
func (in *WorkflowObservation) DeepCopy() *WorkflowObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowObservation.
func (*WorkflowObservation) DeepCopyInto ¶
func (in *WorkflowObservation) DeepCopyInto(out *WorkflowObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkflowParameters ¶
type WorkflowParameters struct { // Description of the workflow provided by the user. Must be at most 1000 unicode characters long. // +kubebuilder:validation:Optional Description *string `json:"description,omitempty" tf:"description,omitempty"` // A set of key/value label pairs to assign to this Workflow. // +kubebuilder:validation:Optional Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"` // Name of the Workflow. // +kubebuilder:validation:Optional Name *string `json:"name,omitempty" tf:"name,omitempty"` // Creates a unique name beginning with the // specified prefix. If this and name are unspecified, a random value is chosen for the name. // +kubebuilder:validation:Optional NamePrefix *string `json:"namePrefix,omitempty" tf:"name_prefix,omitempty"` // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. // +kubebuilder:validation:Optional Project *string `json:"project,omitempty" tf:"project,omitempty"` // The region of the workflow. // +kubebuilder:validation:Optional Region *string `json:"region,omitempty" tf:"region,omitempty"` // Name of the service account associated with the latest workflow version. This service // account represents the identity of the workflow and determines what permissions the workflow has. // Format: projects/{project}/serviceAccounts/{account}. // +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/cloudplatform/v1beta1.ServiceAccount // +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID() // +kubebuilder:validation:Optional ServiceAccount *string `json:"serviceAccount,omitempty" tf:"service_account,omitempty"` // Reference to a ServiceAccount in cloudplatform to populate serviceAccount. // +kubebuilder:validation:Optional ServiceAccountRef *v1.Reference `json:"serviceAccountRef,omitempty" tf:"-"` // Selector for a ServiceAccount in cloudplatform to populate serviceAccount. // +kubebuilder:validation:Optional ServiceAccountSelector *v1.Selector `json:"serviceAccountSelector,omitempty" tf:"-"` // Workflow code to be executed. The size limit is 32KB. // +kubebuilder:validation:Optional SourceContents *string `json:"sourceContents,omitempty" tf:"source_contents,omitempty"` }
func (*WorkflowParameters) DeepCopy ¶
func (in *WorkflowParameters) DeepCopy() *WorkflowParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowParameters.
func (*WorkflowParameters) DeepCopyInto ¶
func (in *WorkflowParameters) DeepCopyInto(out *WorkflowParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkflowSpec ¶
type WorkflowSpec struct { v1.ResourceSpec `json:",inline"` ForProvider WorkflowParameters `json:"forProvider"` }
WorkflowSpec defines the desired state of Workflow
func (*WorkflowSpec) DeepCopy ¶
func (in *WorkflowSpec) DeepCopy() *WorkflowSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowSpec.
func (*WorkflowSpec) DeepCopyInto ¶
func (in *WorkflowSpec) DeepCopyInto(out *WorkflowSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkflowStatus ¶
type WorkflowStatus struct { v1.ResourceStatus `json:",inline"` AtProvider WorkflowObservation `json:"atProvider,omitempty"` }
WorkflowStatus defines the observed state of Workflow.
func (*WorkflowStatus) DeepCopy ¶
func (in *WorkflowStatus) DeepCopy() *WorkflowStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowStatus.
func (*WorkflowStatus) DeepCopyInto ¶
func (in *WorkflowStatus) DeepCopyInto(out *WorkflowStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.