Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=networkroute.hcloud.upbound.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type Route
- func (in *Route) DeepCopy() *Route
- func (in *Route) DeepCopyInto(out *Route)
- func (in *Route) DeepCopyObject() runtime.Object
- func (mg *Route) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Route) GetConnectionDetailsMapping() map[string]string
- func (mg *Route) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Route) GetID() string
- func (tr *Route) GetInitParameters() (map[string]any, error)
- func (mg *Route) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Route) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *Route) GetObservation() (map[string]any, error)
- func (tr *Route) GetParameters() (map[string]any, error)
- func (mg *Route) GetProviderConfigReference() *xpv1.Reference
- func (mg *Route) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Route) GetTerraformResourceType() string
- func (tr *Route) GetTerraformSchemaVersion() int
- func (mg *Route) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Route) Hub()
- func (tr *Route) LateInitialize(attrs []byte) (bool, error)
- func (mg *Route) SetConditions(c ...xpv1.Condition)
- func (mg *Route) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Route) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *Route) SetObservation(obs map[string]any) error
- func (tr *Route) SetParameters(params map[string]any) error
- func (mg *Route) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Route) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Route) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type RouteInitParameters
- type RouteList
- type RouteObservation
- type RouteParameters
- type RouteSpec
- type RouteStatus
Constants ¶
const ( CRDGroup = "networkroute.hcloud.upbound.io" CRDVersion = "v1alpha1" )
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 ( Route_Kind = "Route" Route_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Route_Kind}.String() Route_KindAPIVersion = Route_Kind + "." + CRDGroupVersion.String() Route_GroupVersionKind = CRDGroupVersion.WithKind(Route_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type Route ¶
type Route 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.destination) || (has(self.initProvider) && has(self.initProvider.destination))",message="spec.forProvider.destination is a required parameter" // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.gateway) || (has(self.initProvider) && has(self.initProvider.gateway))",message="spec.forProvider.gateway is a required parameter" // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.networkId) || (has(self.initProvider) && has(self.initProvider.networkId))",message="spec.forProvider.networkId is a required parameter" Spec RouteSpec `json:"spec"` Status RouteStatus `json:"status,omitempty"` }
Route is the Schema for the Routes API. Provides a Hetzner Cloud Network Route to represent a Network route in the Hetzner Cloud. +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 (*Route) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Route.
func (*Route) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Route) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Route) GetCondition ¶
func (mg *Route) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Route.
func (*Route) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Route
func (*Route) GetDeletionPolicy ¶
func (mg *Route) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Route.
func (*Route) GetInitParameters ¶
GetInitParameters of this Route
func (*Route) GetManagementPolicies ¶
func (mg *Route) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Route.
func (*Route) GetMergedParameters ¶
GetInitParameters of this Route
func (*Route) GetObservation ¶
GetObservation of this Route
func (*Route) GetParameters ¶
GetParameters of this Route
func (*Route) GetProviderConfigReference ¶
GetProviderConfigReference of this Route.
func (*Route) GetPublishConnectionDetailsTo ¶
func (mg *Route) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Route.
func (*Route) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Route
func (*Route) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Route) GetWriteConnectionSecretToReference ¶
func (mg *Route) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Route.
func (*Route) LateInitialize ¶
LateInitialize this Route using its observed tfState. returns True if there are any spec changes for the resource.
func (*Route) SetConditions ¶
SetConditions of this Route.
func (*Route) SetDeletionPolicy ¶
func (mg *Route) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Route.
func (*Route) SetManagementPolicies ¶
func (mg *Route) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this Route.
func (*Route) SetObservation ¶
SetObservation for this Route
func (*Route) SetParameters ¶
SetParameters for this Route
func (*Route) SetProviderConfigReference ¶
SetProviderConfigReference of this Route.
func (*Route) SetPublishConnectionDetailsTo ¶
func (mg *Route) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Route.
func (*Route) SetWriteConnectionSecretToReference ¶
func (mg *Route) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Route.
type RouteInitParameters ¶
type RouteInitParameters struct { // Destination network or host of this route. Must be a subnet of the ip_range of the Network. Must not overlap with an existing ip_range in any subnets or with any destinations in other routes or with the first ip of the networks ip_range or with 172.31.1.1. Destination *string `json:"destination,omitempty" tf:"destination,omitempty"` // Gateway for the route. Cannot be the first ip of the networks ip_range and also cannot be 172.31.1.1 as this IP is being used as a gateway for the public network interface of servers. Gateway *string `json:"gateway,omitempty" tf:"gateway,omitempty"` // ID of the Network the route should be added to. NetworkID *float64 `json:"networkId,omitempty" tf:"network_id,omitempty"` }
func (*RouteInitParameters) DeepCopy ¶
func (in *RouteInitParameters) DeepCopy() *RouteInitParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteInitParameters.
func (*RouteInitParameters) DeepCopyInto ¶
func (in *RouteInitParameters) DeepCopyInto(out *RouteInitParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RouteList ¶
type RouteList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Route `json:"items"` }
RouteList contains a list of Routes
func (*RouteList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteList.
func (*RouteList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RouteList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RouteObservation ¶
type RouteObservation struct { // Destination network or host of this route. Must be a subnet of the ip_range of the Network. Must not overlap with an existing ip_range in any subnets or with any destinations in other routes or with the first ip of the networks ip_range or with 172.31.1.1. Destination *string `json:"destination,omitempty" tf:"destination,omitempty"` // Gateway for the route. Cannot be the first ip of the networks ip_range and also cannot be 172.31.1.1 as this IP is being used as a gateway for the public network interface of servers. Gateway *string `json:"gateway,omitempty" tf:"gateway,omitempty"` // (int) Unique ID of the Network route. ID *string `json:"id,omitempty" tf:"id,omitempty"` // ID of the Network the route should be added to. NetworkID *float64 `json:"networkId,omitempty" tf:"network_id,omitempty"` }
func (*RouteObservation) DeepCopy ¶
func (in *RouteObservation) DeepCopy() *RouteObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteObservation.
func (*RouteObservation) DeepCopyInto ¶
func (in *RouteObservation) DeepCopyInto(out *RouteObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RouteParameters ¶
type RouteParameters struct { // Destination network or host of this route. Must be a subnet of the ip_range of the Network. Must not overlap with an existing ip_range in any subnets or with any destinations in other routes or with the first ip of the networks ip_range or with 172.31.1.1. // +kubebuilder:validation:Optional Destination *string `json:"destination,omitempty" tf:"destination,omitempty"` // Gateway for the route. Cannot be the first ip of the networks ip_range and also cannot be 172.31.1.1 as this IP is being used as a gateway for the public network interface of servers. // +kubebuilder:validation:Optional Gateway *string `json:"gateway,omitempty" tf:"gateway,omitempty"` // ID of the Network the route should be added to. // +kubebuilder:validation:Optional NetworkID *float64 `json:"networkId,omitempty" tf:"network_id,omitempty"` }
func (*RouteParameters) DeepCopy ¶
func (in *RouteParameters) DeepCopy() *RouteParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteParameters.
func (*RouteParameters) DeepCopyInto ¶
func (in *RouteParameters) DeepCopyInto(out *RouteParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RouteSpec ¶
type RouteSpec struct { v1.ResourceSpec `json:",inline"` ForProvider RouteParameters `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 RouteInitParameters `json:"initProvider,omitempty"` }
RouteSpec defines the desired state of Route
func (*RouteSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteSpec.
func (*RouteSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RouteStatus ¶
type RouteStatus struct { v1.ResourceStatus `json:",inline"` AtProvider RouteObservation `json:"atProvider,omitempty"` }
RouteStatus defines the observed state of Route.
func (*RouteStatus) DeepCopy ¶
func (in *RouteStatus) DeepCopy() *RouteStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteStatus.
func (*RouteStatus) DeepCopyInto ¶
func (in *RouteStatus) DeepCopyInto(out *RouteStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.