Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=vpcaccess.gcp.upbound.io +versionName=v1beta2
Index ¶
- Constants
- Variables
- type Connector
- func (in *Connector) DeepCopy() *Connector
- func (in *Connector) DeepCopyInto(out *Connector)
- func (in *Connector) DeepCopyObject() runtime.Object
- func (mg *Connector) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Connector) GetConnectionDetailsMapping() map[string]string
- func (mg *Connector) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Connector) GetID() string
- func (tr *Connector) GetInitParameters() (map[string]any, error)
- func (mg *Connector) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Connector) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *Connector) GetObservation() (map[string]any, error)
- func (tr *Connector) GetParameters() (map[string]any, error)
- func (mg *Connector) GetProviderConfigReference() *xpv1.Reference
- func (mg *Connector) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Connector) GetTerraformResourceType() string
- func (tr *Connector) GetTerraformSchemaVersion() int
- func (mg *Connector) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Connector) Hub()
- func (tr *Connector) LateInitialize(attrs []byte) (bool, error)
- func (mg *Connector) ResolveReferences(ctx context.Context, c client.Reader) error
- func (mg *Connector) SetConditions(c ...xpv1.Condition)
- func (mg *Connector) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Connector) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *Connector) SetObservation(obs map[string]any) error
- func (tr *Connector) SetParameters(params map[string]any) error
- func (mg *Connector) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Connector) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Connector) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type ConnectorInitParameters
- type ConnectorList
- type ConnectorObservation
- type ConnectorParameters
- type ConnectorSpec
- type ConnectorStatus
- type SubnetInitParameters
- type SubnetObservation
- type SubnetParameters
Constants ¶
const ( CRDGroup = "vpcaccess.gcp.upbound.io" CRDVersion = "v1beta2" )
Package type metadata.
Variables ¶
var ( Connector_Kind = "Connector" Connector_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Connector_Kind}.String() Connector_KindAPIVersion = Connector_Kind + "." + CRDGroupVersion.String() Connector_GroupVersionKind = CRDGroupVersion.WithKind(Connector_Kind) )
Repository type metadata.
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 )
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ConnectorSpec `json:"spec"` Status ConnectorStatus `json:"status,omitempty"` }
Connector is the Schema for the Connectors API. Serverless VPC Access connector resource. +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].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:resource:scope=Cluster,categories={crossplane,managed,gcp}
func (*Connector) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Connector.
func (*Connector) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Connector) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Connector) GetCondition ¶
func (mg *Connector) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Connector.
func (*Connector) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Connector
func (*Connector) GetDeletionPolicy ¶
func (mg *Connector) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Connector.
func (*Connector) GetInitParameters ¶
GetInitParameters of this Connector
func (*Connector) GetManagementPolicies ¶
func (mg *Connector) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Connector.
func (*Connector) GetMergedParameters ¶
GetInitParameters of this Connector
func (*Connector) GetObservation ¶
GetObservation of this Connector
func (*Connector) GetParameters ¶
GetParameters of this Connector
func (*Connector) GetProviderConfigReference ¶
GetProviderConfigReference of this Connector.
func (*Connector) GetPublishConnectionDetailsTo ¶
func (mg *Connector) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Connector.
func (*Connector) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Connector
func (*Connector) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Connector) GetWriteConnectionSecretToReference ¶
func (mg *Connector) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Connector.
func (*Connector) LateInitialize ¶
LateInitialize this Connector using its observed tfState. returns True if there are any spec changes for the resource.
func (*Connector) ResolveReferences ¶
func (*Connector) SetConditions ¶
SetConditions of this Connector.
func (*Connector) SetDeletionPolicy ¶
func (mg *Connector) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Connector.
func (*Connector) SetManagementPolicies ¶
func (mg *Connector) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this Connector.
func (*Connector) SetObservation ¶
SetObservation for this Connector
func (*Connector) SetParameters ¶
SetParameters for this Connector
func (*Connector) SetProviderConfigReference ¶
SetProviderConfigReference of this Connector.
func (*Connector) SetPublishConnectionDetailsTo ¶
func (mg *Connector) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Connector.
func (*Connector) SetWriteConnectionSecretToReference ¶
func (mg *Connector) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Connector.
type ConnectorInitParameters ¶
type ConnectorInitParameters struct { // The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28. IPCidrRange *string `json:"ipCidrRange,omitempty" tf:"ip_cidr_range,omitempty"` // Machine type of VM Instance underlying connector. Default is e2-micro MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"` // Maximum value of instances in autoscaling group underlying the connector. Value must be between 3 and 10, inclusive. Must be // higher than the value specified by min_instances. MaxInstances *float64 `json:"maxInstances,omitempty" tf:"max_instances,omitempty"` // Maximum throughput of the connector in Mbps, must be greater than min_throughput. Default is 300. Refers to the expected throughput // when using an e2-micro machine type. Value must be a multiple of 100 from 300 through 1000. Must be higher than the value specified by // min_throughput. If both max_throughput and max_instances are provided, max_instances takes precedence over max_throughput. The use of // max_throughput is discouraged in favor of max_instances. MaxThroughput *float64 `json:"maxThroughput,omitempty" tf:"max_throughput,omitempty"` // Minimum value of instances in autoscaling group underlying the connector. Value must be between 2 and 9, inclusive. Must be // lower than the value specified by max_instances. MinInstances *float64 `json:"minInstances,omitempty" tf:"min_instances,omitempty"` // Minimum throughput of the connector in Mbps. Default and min is 200. Refers to the expected throughput when using an e2-micro machine type. // Value must be a multiple of 100 from 200 through 900. Must be lower than the value specified by max_throughput. If both min_throughput and // min_instances are provided, min_instances takes precedence over min_throughput. The use of min_throughput is discouraged in favor of min_instances. MinThroughput *float64 `json:"minThroughput,omitempty" tf:"min_throughput,omitempty"` // Name or self_link of the VPC network. Required if ip_cidr_range is set. // +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/compute/v1beta1.Network Network *string `json:"network,omitempty" tf:"network,omitempty"` // Reference to a Network in compute to populate network. // +kubebuilder:validation:Optional NetworkRef *v1.Reference `json:"networkRef,omitempty" tf:"-"` // Selector for a Network in compute to populate network. // +kubebuilder:validation:Optional NetworkSelector *v1.Selector `json:"networkSelector,omitempty" tf:"-"` // 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 subnet in which to house the connector // Structure is documented below. Subnet *SubnetInitParameters `json:"subnet,omitempty" tf:"subnet,omitempty"` }
func (*ConnectorInitParameters) DeepCopy ¶
func (in *ConnectorInitParameters) DeepCopy() *ConnectorInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectorInitParameters.
func (*ConnectorInitParameters) DeepCopyInto ¶
func (in *ConnectorInitParameters) DeepCopyInto(out *ConnectorInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConnectorList ¶
type ConnectorList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Connector `json:"items"` }
ConnectorList contains a list of Connectors
func (*ConnectorList) DeepCopy ¶
func (in *ConnectorList) DeepCopy() *ConnectorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectorList.
func (*ConnectorList) DeepCopyInto ¶
func (in *ConnectorList) DeepCopyInto(out *ConnectorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConnectorList) DeepCopyObject ¶
func (in *ConnectorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ConnectorList) GetItems ¶
func (l *ConnectorList) GetItems() []resource.Managed
GetItems of this ConnectorList.
type ConnectorObservation ¶
type ConnectorObservation struct { // List of projects using the connector. ConnectedProjects []*string `json:"connectedProjects,omitempty" tf:"connected_projects,omitempty"` // an identifier for the resource with format projects/{{project}}/locations/{{region}}/connectors/{{name}} ID *string `json:"id,omitempty" tf:"id,omitempty"` // The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28. IPCidrRange *string `json:"ipCidrRange,omitempty" tf:"ip_cidr_range,omitempty"` // Machine type of VM Instance underlying connector. Default is e2-micro MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"` // Maximum value of instances in autoscaling group underlying the connector. Value must be between 3 and 10, inclusive. Must be // higher than the value specified by min_instances. MaxInstances *float64 `json:"maxInstances,omitempty" tf:"max_instances,omitempty"` // Maximum throughput of the connector in Mbps, must be greater than min_throughput. Default is 300. Refers to the expected throughput // when using an e2-micro machine type. Value must be a multiple of 100 from 300 through 1000. Must be higher than the value specified by // min_throughput. If both max_throughput and max_instances are provided, max_instances takes precedence over max_throughput. The use of // max_throughput is discouraged in favor of max_instances. MaxThroughput *float64 `json:"maxThroughput,omitempty" tf:"max_throughput,omitempty"` // Minimum value of instances in autoscaling group underlying the connector. Value must be between 2 and 9, inclusive. Must be // lower than the value specified by max_instances. MinInstances *float64 `json:"minInstances,omitempty" tf:"min_instances,omitempty"` // Minimum throughput of the connector in Mbps. Default and min is 200. Refers to the expected throughput when using an e2-micro machine type. // Value must be a multiple of 100 from 200 through 900. Must be lower than the value specified by max_throughput. If both min_throughput and // min_instances are provided, min_instances takes precedence over min_throughput. The use of min_throughput is discouraged in favor of min_instances. MinThroughput *float64 `json:"minThroughput,omitempty" tf:"min_throughput,omitempty"` // Name or self_link of the VPC network. Required if ip_cidr_range is set. Network *string `json:"network,omitempty" tf:"network,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"` // Region where the VPC Access connector resides. If it is not provided, the provider region is used. Region *string `json:"region,omitempty" tf:"region,omitempty"` // The fully qualified name of this VPC connector SelfLink *string `json:"selfLink,omitempty" tf:"self_link,omitempty"` // State of the VPC access connector. State *string `json:"state,omitempty" tf:"state,omitempty"` // The subnet in which to house the connector // Structure is documented below. Subnet *SubnetObservation `json:"subnet,omitempty" tf:"subnet,omitempty"` }
func (*ConnectorObservation) DeepCopy ¶
func (in *ConnectorObservation) DeepCopy() *ConnectorObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectorObservation.
func (*ConnectorObservation) DeepCopyInto ¶
func (in *ConnectorObservation) DeepCopyInto(out *ConnectorObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConnectorParameters ¶
type ConnectorParameters struct { // The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28. // +kubebuilder:validation:Optional IPCidrRange *string `json:"ipCidrRange,omitempty" tf:"ip_cidr_range,omitempty"` // Machine type of VM Instance underlying connector. Default is e2-micro // +kubebuilder:validation:Optional MachineType *string `json:"machineType,omitempty" tf:"machine_type,omitempty"` // Maximum value of instances in autoscaling group underlying the connector. Value must be between 3 and 10, inclusive. Must be // higher than the value specified by min_instances. // +kubebuilder:validation:Optional MaxInstances *float64 `json:"maxInstances,omitempty" tf:"max_instances,omitempty"` // Maximum throughput of the connector in Mbps, must be greater than min_throughput. Default is 300. Refers to the expected throughput // when using an e2-micro machine type. Value must be a multiple of 100 from 300 through 1000. Must be higher than the value specified by // min_throughput. If both max_throughput and max_instances are provided, max_instances takes precedence over max_throughput. The use of // max_throughput is discouraged in favor of max_instances. // +kubebuilder:validation:Optional MaxThroughput *float64 `json:"maxThroughput,omitempty" tf:"max_throughput,omitempty"` // Minimum value of instances in autoscaling group underlying the connector. Value must be between 2 and 9, inclusive. Must be // lower than the value specified by max_instances. // +kubebuilder:validation:Optional MinInstances *float64 `json:"minInstances,omitempty" tf:"min_instances,omitempty"` // Minimum throughput of the connector in Mbps. Default and min is 200. Refers to the expected throughput when using an e2-micro machine type. // Value must be a multiple of 100 from 200 through 900. Must be lower than the value specified by max_throughput. If both min_throughput and // min_instances are provided, min_instances takes precedence over min_throughput. The use of min_throughput is discouraged in favor of min_instances. // +kubebuilder:validation:Optional MinThroughput *float64 `json:"minThroughput,omitempty" tf:"min_throughput,omitempty"` // Name or self_link of the VPC network. Required if ip_cidr_range is set. // +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/compute/v1beta1.Network // +kubebuilder:validation:Optional Network *string `json:"network,omitempty" tf:"network,omitempty"` // Reference to a Network in compute to populate network. // +kubebuilder:validation:Optional NetworkRef *v1.Reference `json:"networkRef,omitempty" tf:"-"` // Selector for a Network in compute to populate network. // +kubebuilder:validation:Optional NetworkSelector *v1.Selector `json:"networkSelector,omitempty" tf:"-"` // 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"` // Region where the VPC Access connector resides. If it is not provided, the provider region is used. // +kubebuilder:validation:Required Region *string `json:"region" tf:"region,omitempty"` // The subnet in which to house the connector // Structure is documented below. // +kubebuilder:validation:Optional Subnet *SubnetParameters `json:"subnet,omitempty" tf:"subnet,omitempty"` }
func (*ConnectorParameters) DeepCopy ¶
func (in *ConnectorParameters) DeepCopy() *ConnectorParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectorParameters.
func (*ConnectorParameters) DeepCopyInto ¶
func (in *ConnectorParameters) DeepCopyInto(out *ConnectorParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConnectorSpec ¶
type ConnectorSpec struct { v1.ResourceSpec `json:",inline"` ForProvider ConnectorParameters `json:"forProvider"` // THIS IS A BETA FIELD. It will be honored // unless the Management Policies feature flag is disabled. // InitProvider holds the same fields as ForProvider, with the exception // of Identifier and other resource reference fields. The fields that are // in InitProvider are merged into ForProvider when the resource is created. // The same fields are also added to the terraform ignore_changes hook, to // avoid updating them after creation. This is useful for fields that are // required on creation, but we do not desire to update them after creation, // for example because of an external controller is managing them, like an // autoscaler. InitProvider ConnectorInitParameters `json:"initProvider,omitempty"` }
ConnectorSpec defines the desired state of Connector
func (*ConnectorSpec) DeepCopy ¶
func (in *ConnectorSpec) DeepCopy() *ConnectorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectorSpec.
func (*ConnectorSpec) DeepCopyInto ¶
func (in *ConnectorSpec) DeepCopyInto(out *ConnectorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConnectorStatus ¶
type ConnectorStatus struct { v1.ResourceStatus `json:",inline"` AtProvider ConnectorObservation `json:"atProvider,omitempty"` }
ConnectorStatus defines the observed state of Connector.
func (*ConnectorStatus) DeepCopy ¶
func (in *ConnectorStatus) DeepCopy() *ConnectorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectorStatus.
func (*ConnectorStatus) DeepCopyInto ¶
func (in *ConnectorStatus) DeepCopyInto(out *ConnectorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubnetInitParameters ¶
type SubnetInitParameters struct { // Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is // https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}" // +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/compute/v1beta2.Subnetwork Name *string `json:"name,omitempty" tf:"name,omitempty"` // Reference to a Subnetwork in compute to populate name. // +kubebuilder:validation:Optional NameRef *v1.Reference `json:"nameRef,omitempty" tf:"-"` // Selector for a Subnetwork in compute to populate name. // +kubebuilder:validation:Optional NameSelector *v1.Selector `json:"nameSelector,omitempty" tf:"-"` // Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued. ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"` }
func (*SubnetInitParameters) DeepCopy ¶
func (in *SubnetInitParameters) DeepCopy() *SubnetInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetInitParameters.
func (*SubnetInitParameters) DeepCopyInto ¶
func (in *SubnetInitParameters) DeepCopyInto(out *SubnetInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubnetObservation ¶
type SubnetObservation struct { // Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is // https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}" Name *string `json:"name,omitempty" tf:"name,omitempty"` // Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued. ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"` }
func (*SubnetObservation) DeepCopy ¶
func (in *SubnetObservation) DeepCopy() *SubnetObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetObservation.
func (*SubnetObservation) DeepCopyInto ¶
func (in *SubnetObservation) DeepCopyInto(out *SubnetObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubnetParameters ¶
type SubnetParameters struct { // Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is // https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}" // +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/compute/v1beta2.Subnetwork // +kubebuilder:validation:Optional Name *string `json:"name,omitempty" tf:"name,omitempty"` // Reference to a Subnetwork in compute to populate name. // +kubebuilder:validation:Optional NameRef *v1.Reference `json:"nameRef,omitempty" tf:"-"` // Selector for a Subnetwork in compute to populate name. // +kubebuilder:validation:Optional NameSelector *v1.Selector `json:"nameSelector,omitempty" tf:"-"` // Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued. // +kubebuilder:validation:Optional ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"` }
func (*SubnetParameters) DeepCopy ¶
func (in *SubnetParameters) DeepCopy() *SubnetParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetParameters.
func (*SubnetParameters) DeepCopyInto ¶
func (in *SubnetParameters) DeepCopyInto(out *SubnetParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.