Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=networksubnet.hcloud.upbound.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type Subnet
- func (in *Subnet) DeepCopy() *Subnet
- func (in *Subnet) DeepCopyInto(out *Subnet)
- func (in *Subnet) DeepCopyObject() runtime.Object
- func (mg *Subnet) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (tr *Subnet) GetConnectionDetailsMapping() map[string]string
- func (mg *Subnet) GetDeletionPolicy() xpv1.DeletionPolicy
- func (tr *Subnet) GetID() string
- func (tr *Subnet) GetInitParameters() (map[string]any, error)
- func (mg *Subnet) GetManagementPolicies() xpv1.ManagementPolicies
- func (tr *Subnet) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)
- func (tr *Subnet) GetObservation() (map[string]any, error)
- func (tr *Subnet) GetParameters() (map[string]any, error)
- func (mg *Subnet) GetProviderConfigReference() *xpv1.Reference
- func (mg *Subnet) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Subnet) GetTerraformResourceType() string
- func (tr *Subnet) GetTerraformSchemaVersion() int
- func (mg *Subnet) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (tr *Subnet) Hub()
- func (tr *Subnet) LateInitialize(attrs []byte) (bool, error)
- func (mg *Subnet) SetConditions(c ...xpv1.Condition)
- func (mg *Subnet) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Subnet) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (tr *Subnet) SetObservation(obs map[string]any) error
- func (tr *Subnet) SetParameters(params map[string]any) error
- func (mg *Subnet) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Subnet) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Subnet) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type SubnetInitParameters
- type SubnetList
- type SubnetObservation
- type SubnetParameters
- type SubnetSpec
- type SubnetStatus
Constants ¶
const ( CRDGroup = "networksubnet.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 ( Subnet_Kind = "Subnet" Subnet_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Subnet_Kind}.String() Subnet_KindAPIVersion = Subnet_Kind + "." + CRDGroupVersion.String() Subnet_GroupVersionKind = CRDGroupVersion.WithKind(Subnet_Kind) )
Repository type metadata.
Functions ¶
This section is empty.
Types ¶
type Subnet ¶
type Subnet 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.ipRange) || (has(self.initProvider) && has(self.initProvider.ipRange))",message="spec.forProvider.ipRange 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" // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.networkZone) || (has(self.initProvider) && has(self.initProvider.networkZone))",message="spec.forProvider.networkZone 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 SubnetSpec `json:"spec"` Status SubnetStatus `json:"status,omitempty"` }
Subnet is the Schema for the Subnets API. Provides a Hetzner Cloud Network Subnet to represent a Subnet 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 (*Subnet) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subnet.
func (*Subnet) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Subnet) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Subnet) GetCondition ¶
func (mg *Subnet) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Subnet.
func (*Subnet) GetConnectionDetailsMapping ¶
GetConnectionDetailsMapping for this Subnet
func (*Subnet) GetDeletionPolicy ¶
func (mg *Subnet) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Subnet.
func (*Subnet) GetInitParameters ¶
GetInitParameters of this Subnet
func (*Subnet) GetManagementPolicies ¶
func (mg *Subnet) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Subnet.
func (*Subnet) GetMergedParameters ¶
GetInitParameters of this Subnet
func (*Subnet) GetObservation ¶
GetObservation of this Subnet
func (*Subnet) GetParameters ¶
GetParameters of this Subnet
func (*Subnet) GetProviderConfigReference ¶
GetProviderConfigReference of this Subnet.
func (*Subnet) GetPublishConnectionDetailsTo ¶
func (mg *Subnet) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Subnet.
func (*Subnet) GetTerraformResourceType ¶
GetTerraformResourceType returns Terraform resource type for this Subnet
func (*Subnet) GetTerraformSchemaVersion ¶
GetTerraformSchemaVersion returns the associated Terraform schema version
func (*Subnet) GetWriteConnectionSecretToReference ¶
func (mg *Subnet) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Subnet.
func (*Subnet) LateInitialize ¶
LateInitialize this Subnet using its observed tfState. returns True if there are any spec changes for the resource.
func (*Subnet) SetConditions ¶
SetConditions of this Subnet.
func (*Subnet) SetDeletionPolicy ¶
func (mg *Subnet) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Subnet.
func (*Subnet) SetManagementPolicies ¶
func (mg *Subnet) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this Subnet.
func (*Subnet) SetObservation ¶
SetObservation for this Subnet
func (*Subnet) SetParameters ¶
SetParameters for this Subnet
func (*Subnet) SetProviderConfigReference ¶
SetProviderConfigReference of this Subnet.
func (*Subnet) SetPublishConnectionDetailsTo ¶
func (mg *Subnet) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Subnet.
func (*Subnet) SetWriteConnectionSecretToReference ¶
func (mg *Subnet) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Subnet.
type SubnetInitParameters ¶
type SubnetInitParameters struct { // Range to allocate IPs from. Must be a subnet of the ip_range of the Network and must not overlap with any other subnets or with any destinations in routes. IPRange *string `json:"ipRange,omitempty" tf:"ip_range,omitempty"` // ID of the Network the subnet should be added to. NetworkID *float64 `json:"networkId,omitempty" tf:"network_id,omitempty"` // Name of network zone. NetworkZone *string `json:"networkZone,omitempty" tf:"network_zone,omitempty"` // Type of subnet. server, cloud or vswitch Type *string `json:"type,omitempty" tf:"type,omitempty"` // ID of the vswitch, Required if type is vswitch VswitchID *float64 `json:"vswitchId,omitempty" tf:"vswitch_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 SubnetList ¶
type SubnetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Subnet `json:"items"` }
SubnetList contains a list of Subnets
func (*SubnetList) DeepCopy ¶
func (in *SubnetList) DeepCopy() *SubnetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetList.
func (*SubnetList) DeepCopyInto ¶
func (in *SubnetList) DeepCopyInto(out *SubnetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SubnetList) DeepCopyObject ¶
func (in *SubnetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SubnetList) GetItems ¶
func (l *SubnetList) GetItems() []resource.Managed
GetItems of this SubnetList.
type SubnetObservation ¶
type SubnetObservation struct { Gateway *string `json:"gateway,omitempty" tf:"gateway,omitempty"` // (string) ID of the Network subnet. ID *string `json:"id,omitempty" tf:"id,omitempty"` // Range to allocate IPs from. Must be a subnet of the ip_range of the Network and must not overlap with any other subnets or with any destinations in routes. IPRange *string `json:"ipRange,omitempty" tf:"ip_range,omitempty"` // ID of the Network the subnet should be added to. NetworkID *float64 `json:"networkId,omitempty" tf:"network_id,omitempty"` // Name of network zone. NetworkZone *string `json:"networkZone,omitempty" tf:"network_zone,omitempty"` // Type of subnet. server, cloud or vswitch Type *string `json:"type,omitempty" tf:"type,omitempty"` // ID of the vswitch, Required if type is vswitch VswitchID *float64 `json:"vswitchId,omitempty" tf:"vswitch_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 { // Range to allocate IPs from. Must be a subnet of the ip_range of the Network and must not overlap with any other subnets or with any destinations in routes. // +kubebuilder:validation:Optional IPRange *string `json:"ipRange,omitempty" tf:"ip_range,omitempty"` // ID of the Network the subnet should be added to. // +kubebuilder:validation:Optional NetworkID *float64 `json:"networkId,omitempty" tf:"network_id,omitempty"` // Name of network zone. // +kubebuilder:validation:Optional NetworkZone *string `json:"networkZone,omitempty" tf:"network_zone,omitempty"` // Type of subnet. server, cloud or vswitch // +kubebuilder:validation:Optional Type *string `json:"type,omitempty" tf:"type,omitempty"` // ID of the vswitch, Required if type is vswitch // +kubebuilder:validation:Optional VswitchID *float64 `json:"vswitchId,omitempty" tf:"vswitch_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.
type SubnetSpec ¶
type SubnetSpec struct { v1.ResourceSpec `json:",inline"` ForProvider SubnetParameters `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 SubnetInitParameters `json:"initProvider,omitempty"` }
SubnetSpec defines the desired state of Subnet
func (*SubnetSpec) DeepCopy ¶
func (in *SubnetSpec) DeepCopy() *SubnetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetSpec.
func (*SubnetSpec) DeepCopyInto ¶
func (in *SubnetSpec) DeepCopyInto(out *SubnetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubnetStatus ¶
type SubnetStatus struct { v1.ResourceStatus `json:",inline"` AtProvider SubnetObservation `json:"atProvider,omitempty"` }
SubnetStatus defines the observed state of Subnet.
func (*SubnetStatus) DeepCopy ¶
func (in *SubnetStatus) DeepCopy() *SubnetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetStatus.
func (*SubnetStatus) DeepCopyInto ¶
func (in *SubnetStatus) DeepCopyInto(out *SubnetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.