Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=loadbalancertarget.hcloud.upbound.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type BalancerTarget
- func (in *BalancerTarget) DeepCopy() *BalancerTarget
- func (in *BalancerTarget) DeepCopyInto(out *BalancerTarget)
- func (in *BalancerTarget) DeepCopyObject() runtime.Object
- func (mg *BalancerTarget) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *BalancerTarget) GetConnectionDetailsMapping() map[string]string
- func (mg *BalancerTarget) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *BalancerTarget) GetID() string
- func (tr *BalancerTarget) GetInitParameters() (map[string]any, error)
- func (mg *BalancerTarget) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *BalancerTarget) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *BalancerTarget) GetObservation() (map[string]any, error)
- func (tr *BalancerTarget) GetParameters() (map[string]any, error)
- func (mg *BalancerTarget) GetProviderConfigReference() *xpv1.Reference
- func (mg *BalancerTarget) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *BalancerTarget) GetTerraformResourceType() string
- func (tr *BalancerTarget) GetTerraformSchemaVersion() int
- func (mg *BalancerTarget) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *BalancerTarget) Hub()
- func (tr *BalancerTarget) LateInitialize(attrs []byte) (bool, error)
- func (mg *BalancerTarget) SetConditions(c ...xpv1.Condition)
- func (mg *BalancerTarget) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *BalancerTarget) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *BalancerTarget) SetObservation(obs map[string]any) error
- func (tr *BalancerTarget) SetParameters(params map[string]any) error
- func (mg *BalancerTarget) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *BalancerTarget) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *BalancerTarget) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type BalancerTargetInitParameters
- type BalancerTargetList
- type BalancerTargetObservation
- type BalancerTargetParameters
- type BalancerTargetSpec
- type BalancerTargetStatus
Constants ¶
const ( CRDGroup = "loadbalancertarget.hcloud.upbound.io" CRDVersion = "v1alpha1" )
Package type metadata.
Variables ¶
var ( BalancerTarget_Kind = "BalancerTarget" BalancerTarget_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: BalancerTarget_Kind}.String() BalancerTarget_KindAPIVersion = BalancerTarget_Kind + "." + CRDGroupVersion.String() BalancerTarget_GroupVersionKind = CRDGroupVersion.WithKind(BalancerTarget_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 BalancerTarget ¶
type BalancerTarget struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.loadBalancerId) || (has(self.initProvider) && has(self.initProvider.loadBalancerId))",message="spec.forProvider.loadBalancerId is a required parameter" // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter" Spec BalancerTargetSpec `json:"spec"` Status BalancerTargetStatus `json:"status,omitempty"` }
BalancerTarget is the Schema for the BalancerTargets API. Adds a target to a Hetzner Cloud Load Balancer. +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:resource:scope=Cluster,categories={crossplane,managed,hcloud}
func (*BalancerTarget) DeepCopy ¶
func (in *BalancerTarget) DeepCopy() *BalancerTarget
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BalancerTarget.
func (*BalancerTarget) DeepCopyInto ¶
func (in *BalancerTarget) DeepCopyInto(out *BalancerTarget)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BalancerTarget) DeepCopyObject ¶
func (in *BalancerTarget) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*BalancerTarget) GetCondition ¶
func (mg *BalancerTarget) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this BalancerTarget.
func (*BalancerTarget) GetConnectionDetailsMapping ¶
func (tr *BalancerTarget) GetConnectionDetailsMapping() map[string]string
GetConnectionDetailsMapping for this BalancerTarget
func (*BalancerTarget) GetDeletionPolicy ¶
func (mg *BalancerTarget) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this BalancerTarget.
func (*BalancerTarget) GetID ¶
func (tr *BalancerTarget) GetID() string
GetID returns ID of underlying Terraform resource of this BalancerTarget
func (*BalancerTarget) GetInitParameters ¶
func (tr *BalancerTarget) GetInitParameters() (map[string]any, error)
GetInitParameters of this BalancerTarget
func (*BalancerTarget) GetManagementPolicies ¶
func (mg *BalancerTarget) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this BalancerTarget.
func (*BalancerTarget) GetMergedParameters ¶
func (tr *BalancerTarget) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
GetInitParameters of this BalancerTarget
func (*BalancerTarget) GetObservation ¶
func (tr *BalancerTarget) GetObservation() (map[string]any, error)
GetObservation of this BalancerTarget
func (*BalancerTarget) GetParameters ¶
func (tr *BalancerTarget) GetParameters() (map[string]any, error)
GetParameters of this BalancerTarget
func (*BalancerTarget) GetProviderConfigReference ¶
func (mg *BalancerTarget) GetProviderConfigReference() *xpv1.Reference
GetProviderConfigReference of this BalancerTarget.
func (*BalancerTarget) GetPublishConnectionDetailsTo ¶
func (mg *BalancerTarget) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this BalancerTarget.
func (*BalancerTarget) GetTerraformResourceType ¶
func (mg *BalancerTarget) GetTerraformResourceType() string
GetTerraformResourceType returns Terraform resource type for this BalancerTarget
func (*BalancerTarget) GetTerraformSchemaVersion ¶
func (tr *BalancerTarget) GetTerraformSchemaVersion() int
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*BalancerTarget) GetWriteConnectionSecretToReference ¶
func (mg *BalancerTarget) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this BalancerTarget.
func (*BalancerTarget) Hub ¶
func (tr *BalancerTarget) Hub()
Hub marks this type as a conversion hub.
func (*BalancerTarget) LateInitialize ¶
func (tr *BalancerTarget) LateInitialize(attrs []byte) (bool, error)
LateInitialize this BalancerTarget using its observed tfState. returns True if there are any spec changes for the resource.
func (*BalancerTarget) SetConditions ¶
func (mg *BalancerTarget) SetConditions(c ...xpv1.Condition)
SetConditions of this BalancerTarget.
func (*BalancerTarget) SetDeletionPolicy ¶
func (mg *BalancerTarget) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this BalancerTarget.
func (*BalancerTarget) SetManagementPolicies ¶
func (mg *BalancerTarget) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this BalancerTarget.
func (*BalancerTarget) SetObservation ¶
func (tr *BalancerTarget) SetObservation(obs map[string]any) error
SetObservation for this BalancerTarget
func (*BalancerTarget) SetParameters ¶
func (tr *BalancerTarget) SetParameters(params map[string]any) error
SetParameters for this BalancerTarget
func (*BalancerTarget) SetProviderConfigReference ¶
func (mg *BalancerTarget) SetProviderConfigReference(r *xpv1.Reference)
SetProviderConfigReference of this BalancerTarget.
func (*BalancerTarget) SetPublishConnectionDetailsTo ¶
func (mg *BalancerTarget) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this BalancerTarget.
func (*BalancerTarget) SetWriteConnectionSecretToReference ¶
func (mg *BalancerTarget) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this BalancerTarget.
type BalancerTargetInitParameters ¶
type BalancerTargetInitParameters struct { // IP address for an IP Target. Required if // type is ip. IP *string `json:"ip,omitempty" tf:"ip,omitempty"` // Label Selector selecting targets // for this Load Balancer. Required if type is label_selector. LabelSelector *string `json:"labelSelector,omitempty" tf:"label_selector,omitempty"` // ID of the Load Balancer to which // the target gets attached. LoadBalancerID *float64 `json:"loadBalancerId,omitempty" tf:"load_balancer_id,omitempty"` // ID of the server which should be a // target for this Load Balancer. Required if type is server ServerID *float64 `json:"serverId,omitempty" tf:"server_id,omitempty"` // Type of the target. Possible values // server, label_selector, ip. Type *string `json:"type,omitempty" tf:"type,omitempty"` // use the private IP to connect to // Load Balancer targets. Only allowed if type is server or // label_selector. UsePrivateIP *bool `json:"usePrivateIp,omitempty" tf:"use_private_ip,omitempty"` }
func (*BalancerTargetInitParameters) DeepCopy ¶
func (in *BalancerTargetInitParameters) DeepCopy() *BalancerTargetInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BalancerTargetInitParameters.
func (*BalancerTargetInitParameters) DeepCopyInto ¶
func (in *BalancerTargetInitParameters) DeepCopyInto(out *BalancerTargetInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BalancerTargetList ¶
type BalancerTargetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []BalancerTarget `json:"items"` }
BalancerTargetList contains a list of BalancerTargets
func (*BalancerTargetList) DeepCopy ¶
func (in *BalancerTargetList) DeepCopy() *BalancerTargetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BalancerTargetList.
func (*BalancerTargetList) DeepCopyInto ¶
func (in *BalancerTargetList) DeepCopyInto(out *BalancerTargetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BalancerTargetList) DeepCopyObject ¶
func (in *BalancerTargetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*BalancerTargetList) GetItems ¶
func (l *BalancerTargetList) GetItems() []resource.Managed
GetItems of this BalancerTargetList.
type BalancerTargetObservation ¶
type BalancerTargetObservation struct { ID *string `json:"id,omitempty" tf:"id,omitempty"` // IP address for an IP Target. Required if // type is ip. IP *string `json:"ip,omitempty" tf:"ip,omitempty"` // Label Selector selecting targets // for this Load Balancer. Required if type is label_selector. LabelSelector *string `json:"labelSelector,omitempty" tf:"label_selector,omitempty"` // ID of the Load Balancer to which // the target gets attached. LoadBalancerID *float64 `json:"loadBalancerId,omitempty" tf:"load_balancer_id,omitempty"` // ID of the server which should be a // target for this Load Balancer. Required if type is server ServerID *float64 `json:"serverId,omitempty" tf:"server_id,omitempty"` // Type of the target. Possible values // server, label_selector, ip. Type *string `json:"type,omitempty" tf:"type,omitempty"` // use the private IP to connect to // Load Balancer targets. Only allowed if type is server or // label_selector. UsePrivateIP *bool `json:"usePrivateIp,omitempty" tf:"use_private_ip,omitempty"` }
func (*BalancerTargetObservation) DeepCopy ¶
func (in *BalancerTargetObservation) DeepCopy() *BalancerTargetObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BalancerTargetObservation.
func (*BalancerTargetObservation) DeepCopyInto ¶
func (in *BalancerTargetObservation) DeepCopyInto(out *BalancerTargetObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BalancerTargetParameters ¶
type BalancerTargetParameters struct { // IP address for an IP Target. Required if // type is ip. // +kubebuilder:validation:Optional IP *string `json:"ip,omitempty" tf:"ip,omitempty"` // Label Selector selecting targets // for this Load Balancer. Required if type is label_selector. // +kubebuilder:validation:Optional LabelSelector *string `json:"labelSelector,omitempty" tf:"label_selector,omitempty"` // ID of the Load Balancer to which // the target gets attached. // +kubebuilder:validation:Optional LoadBalancerID *float64 `json:"loadBalancerId,omitempty" tf:"load_balancer_id,omitempty"` // ID of the server which should be a // target for this Load Balancer. Required if type is server // +kubebuilder:validation:Optional ServerID *float64 `json:"serverId,omitempty" tf:"server_id,omitempty"` // Type of the target. Possible values // server, label_selector, ip. // +kubebuilder:validation:Optional Type *string `json:"type,omitempty" tf:"type,omitempty"` // use the private IP to connect to // Load Balancer targets. Only allowed if type is server or // label_selector. // +kubebuilder:validation:Optional UsePrivateIP *bool `json:"usePrivateIp,omitempty" tf:"use_private_ip,omitempty"` }
func (*BalancerTargetParameters) DeepCopy ¶
func (in *BalancerTargetParameters) DeepCopy() *BalancerTargetParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BalancerTargetParameters.
func (*BalancerTargetParameters) DeepCopyInto ¶
func (in *BalancerTargetParameters) DeepCopyInto(out *BalancerTargetParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BalancerTargetSpec ¶
type BalancerTargetSpec struct { v1.ResourceSpec `json:",inline"` ForProvider BalancerTargetParameters `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 BalancerTargetInitParameters `json:"initProvider,omitempty"` }
BalancerTargetSpec defines the desired state of BalancerTarget
func (*BalancerTargetSpec) DeepCopy ¶
func (in *BalancerTargetSpec) DeepCopy() *BalancerTargetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BalancerTargetSpec.
func (*BalancerTargetSpec) DeepCopyInto ¶
func (in *BalancerTargetSpec) DeepCopyInto(out *BalancerTargetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BalancerTargetStatus ¶
type BalancerTargetStatus struct { v1.ResourceStatus `json:",inline"` AtProvider BalancerTargetObservation `json:"atProvider,omitempty"` }
BalancerTargetStatus defines the observed state of BalancerTarget.
func (*BalancerTargetStatus) DeepCopy ¶
func (in *BalancerTargetStatus) DeepCopy() *BalancerTargetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BalancerTargetStatus.
func (*BalancerTargetStatus) DeepCopyInto ¶
func (in *BalancerTargetStatus) DeepCopyInto(out *BalancerTargetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.