Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=dataflow.gcp.upbound.io +versionName=v1beta1
Index ¶
- Constants
- Variables
- type Job
- func (in *Job) DeepCopy() *Job
- func (in *Job) DeepCopyInto(out *Job)
- func (in *Job) DeepCopyObject() runtime.Object
- func (mg *Job) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Job) GetConnectionDetailsMapping() map[string]string
- func (mg *Job) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Job) GetID() string
- func (tr *Job) GetObservation() (map[string]any, error)
- func (tr *Job) GetParameters() (map[string]any, error)
- func (mg *Job) GetProviderConfigReference() *xpv1.Reference
- func (mg *Job) GetProviderReference() *xpv1.Reference
- func (mg *Job) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Job) GetTerraformResourceType() string
- func (tr *Job) GetTerraformSchemaVersion() int
- func (mg *Job) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Job) LateInitialize(attrs []byte) (bool, error)
- func (mg *Job) SetConditions(c ...xpv1.Condition)
- func (mg *Job) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (tr *Job) SetObservation(obs map[string]any) error
- func (tr *Job) SetParameters(params map[string]any) error
- func (mg *Job) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Job) SetProviderReference(r *xpv1.Reference)
- func (mg *Job) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Job) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type JobList
- type JobObservation
- type JobParameters
- type JobSpec
- type JobStatus
Constants ¶
const ( CRDGroup = "dataflow.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 ( Job_Kind = "Job" Job_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Job_Kind}.String() Job_KindAPIVersion = Job_Kind + "." + CRDGroupVersion.String() Job_GroupVersionKind = CRDGroupVersion.WithKind(Job_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec JobSpec `json:"spec"` Status JobStatus `json:"status,omitempty"` }
Job is the Schema for the Jobs API. Creates a job in Dataflow according to a provided config file. +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 (*Job) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Job.
func (*Job) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Job) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Job) GetCondition ¶
func (mg *Job) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Job.
func (*Job) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Job
func (*Job) GetDeletionPolicy ¶
func (mg *Job) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Job.
func (*Job) GetObservation ¶
GetObservation of this Job
func (*Job) GetParameters ¶
GetParameters of this Job
func (*Job) GetProviderConfigReference ¶
GetProviderConfigReference of this Job.
func (*Job) GetProviderReference ¶
GetProviderReference of this Job. Deprecated: Use GetProviderConfigReference.
func (*Job) GetPublishConnectionDetailsTo ¶
func (mg *Job) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Job.
func (*Job) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Job
func (*Job) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Job) GetWriteConnectionSecretToReference ¶
func (mg *Job) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Job.
func (*Job) LateInitialize ¶
LateInitialize this Job using its observed tfState. returns True if there are any spec changes for the resource.
func (*Job) SetConditions ¶
SetConditions of this Job.
func (*Job) SetDeletionPolicy ¶
func (mg *Job) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Job.
func (*Job) SetObservation ¶
SetObservation for this Job
func (*Job) SetParameters ¶
SetParameters for this Job
func (*Job) SetProviderConfigReference ¶
SetProviderConfigReference of this Job.
func (*Job) SetProviderReference ¶
SetProviderReference of this Job. Deprecated: Use SetProviderConfigReference.
func (*Job) SetPublishConnectionDetailsTo ¶
func (mg *Job) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Job.
func (*Job) SetWriteConnectionSecretToReference ¶
func (mg *Job) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Job.
type JobList ¶
type JobList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Job `json:"items"` }
JobList contains a list of Jobs
func (*JobList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobList.
func (*JobList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*JobList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type JobObservation ¶
type JobObservation struct { ID *string `json:"id,omitempty" tf:"id,omitempty"` // The unique ID of this job. JobID *string `json:"jobId,omitempty" tf:"job_id,omitempty"` // The current state of the resource, selected from the JobState enum State *string `json:"state,omitempty" tf:"state,omitempty"` // The type of this job, selected from the JobType enum Type *string `json:"type,omitempty" tf:"type,omitempty"` }
func (*JobObservation) DeepCopy ¶
func (in *JobObservation) DeepCopy() *JobObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobObservation.
func (*JobObservation) DeepCopyInto ¶
func (in *JobObservation) DeepCopyInto(out *JobObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JobParameters ¶
type JobParameters struct { // List of experiments that should be used by the job. An example value is ["enable_stackdriver_agent_metrics"]. // +kubebuilder:validation:Optional AdditionalExperiments []*string `json:"additionalExperiments,omitempty" tf:"additional_experiments,omitempty"` // Enable/disable the use of Streaming Engine for the job. Note that Streaming Engine is enabled by default for pipelines developed against the Beam SDK for Python v2.21.0 or later when using Python 3. // +kubebuilder:validation:Optional EnableStreamingEngine *bool `json:"enableStreamingEngine,omitempty" tf:"enable_streaming_engine,omitempty"` // The configuration for VM IPs. Options are "WORKER_IP_PUBLIC" or "WORKER_IP_PRIVATE". // +kubebuilder:validation:Optional IPConfiguration *string `json:"ipConfiguration,omitempty" tf:"ip_configuration,omitempty"` // The name for the Cloud KMS key for the job. Key format is: projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY // +kubebuilder:validation:Optional KMSKeyName *string `json:"kmsKeyName,omitempty" tf:"kms_key_name,omitempty"` // User labels to be specified for the job. Keys and values should follow the restrictions // specified in the labeling restrictions page. // NOTE: Google-provided Dataflow templates often provide default labels that begin with goog-dataflow-provided. // Unless explicitly set in config, these labels will be ignored to prevent diffs on re-apply. // +kubebuilder:validation:Optional Labels map[string]string `json:"labels,omitempty" tf:"labels,omitempty"` // The machine type to use for the job. // +kubebuilder:validation:Optional MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"` // The number of workers permitted to work on the job. More workers may improve processing speed at additional cost. // +kubebuilder:validation:Optional MaxWorkers *float64 `json:"maxWorkers,omitempty" tf:"max_workers,omitempty"` // A unique name for the resource, required by Dataflow. // +kubebuilder:validation:Required Name *string `json:"name" tf:"name,omitempty"` // The network to which VMs will be assigned. If it is not provided, "default" will be used. // +kubebuilder:validation:Optional Network *string `json:"network,omitempty" tf:"network,omitempty"` // One of "drain" or "cancel". See above note. // +kubebuilder:validation:Optional OnDelete *string `json:"onDelete,omitempty" tf:"on_delete,omitempty"` // Key/Value pairs to be passed to the Dataflow job (as used in the template). // +kubebuilder:validation:Optional Parameters map[string]string `json:"parameters,omitempty" tf:"parameters,omitempty"` // 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 in which the created job should run. // +kubebuilder:validation:Optional Region *string `json:"region,omitempty" tf:"region,omitempty"` // The Service Account email used to create the job. // +kubebuilder:validation:Optional ServiceAccountEmail *string `json:"serviceAccountEmail,omitempty" tf:"service_account_email,omitempty"` // See above note. // +kubebuilder:validation:Optional SkipWaitOnJobTermination *bool `json:"skipWaitOnJobTermination,omitempty" tf:"skip_wait_on_job_termination,omitempty"` // The subnetwork to which VMs will be assigned. Should be of the form "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in a Shared VPC network, you must use the complete URL. For example "googleapis.com/compute/v1/projects/PROJECT_ID/regions/REGION/subnetworks/SUBNET_NAME" // +kubebuilder:validation:Optional Subnetwork *string `json:"subnetwork,omitempty" tf:"subnetwork,omitempty"` // A writeable location on GCS for the Dataflow job to dump its temporary data. // +kubebuilder:validation:Required TempGcsLocation *string `json:"tempGcsLocation" tf:"temp_gcs_location,omitempty"` // The GCS path to the Dataflow job template. // +kubebuilder:validation:Required TemplateGcsPath *string `json:"templateGcsPath" tf:"template_gcs_path,omitempty"` // Only applicable when updating a pipeline. Map of transform name prefixes of the job to be replaced with the corresponding name prefixes of the new job. This field is not used outside of update. // +kubebuilder:validation:Optional TransformNameMapping map[string]string `json:"transformNameMapping,omitempty" tf:"transform_name_mapping,omitempty"` // The zone in which the created job should run. If it is not provided, the provider zone is used. // +kubebuilder:validation:Optional Zone *string `json:"zone,omitempty" tf:"zone,omitempty"` }
func (*JobParameters) DeepCopy ¶
func (in *JobParameters) DeepCopy() *JobParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobParameters.
func (*JobParameters) DeepCopyInto ¶
func (in *JobParameters) DeepCopyInto(out *JobParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JobSpec ¶
type JobSpec struct { v1.ResourceSpec `json:",inline"` ForProvider JobParameters `json:"forProvider"` }
JobSpec defines the desired state of Job
func (*JobSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobSpec.
func (*JobSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JobStatus ¶
type JobStatus struct { v1.ResourceStatus `json:",inline"` AtProvider JobObservation `json:"atProvider,omitempty"` }
JobStatus defines the observed state of Job.
func (*JobStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobStatus.
func (*JobStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.