v1alpha1

package
v0.0.0-...-0c44014 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=rdns.hcloud.upbound.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "rdns.hcloud.upbound.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
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
)
View Source
var (
	Rdns_Kind             = "Rdns"
	Rdns_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Rdns_Kind}.String()
	Rdns_KindAPIVersion   = Rdns_Kind + "." + CRDGroupVersion.String()
	Rdns_GroupVersionKind = CRDGroupVersion.WithKind(Rdns_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type Rdns

type Rdns 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.dnsPtr) || (has(self.initProvider) && has(self.initProvider.dnsPtr))",message="spec.forProvider.dnsPtr is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.ipAddress) || (has(self.initProvider) && has(self.initProvider.ipAddress))",message="spec.forProvider.ipAddress is a required parameter"
	Spec   RdnsSpec   `json:"spec"`
	Status RdnsStatus `json:"status,omitempty"`
}

Rdns is the Schema for the Rdnss API. Provides a Hetzner Cloud Reverse DNS Entry to create, modify and reset reverse dns entries for Hetzner Cloud Servers, Primary IPs, Floating IPs or Load Balancers. +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 (*Rdns) DeepCopy

func (in *Rdns) DeepCopy() *Rdns

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rdns.

func (*Rdns) DeepCopyInto

func (in *Rdns) DeepCopyInto(out *Rdns)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Rdns) DeepCopyObject

func (in *Rdns) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Rdns) GetCondition

func (mg *Rdns) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Rdns.

func (*Rdns) GetConnectionDetailsMapping

func (tr *Rdns) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Rdns

func (*Rdns) GetDeletionPolicy

func (mg *Rdns) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Rdns.

func (*Rdns) GetID

func (tr *Rdns) GetID() string

GetID returns ID of underlying Terraform resource of this Rdns

func (*Rdns) GetInitParameters

func (tr *Rdns) GetInitParameters() (map[string]any, error)

GetInitParameters of this Rdns

func (*Rdns) GetManagementPolicies

func (mg *Rdns) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Rdns.

func (*Rdns) GetMergedParameters

func (tr *Rdns) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this Rdns

func (*Rdns) GetObservation

func (tr *Rdns) GetObservation() (map[string]any, error)

GetObservation of this Rdns

func (*Rdns) GetParameters

func (tr *Rdns) GetParameters() (map[string]any, error)

GetParameters of this Rdns

func (*Rdns) GetProviderConfigReference

func (mg *Rdns) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Rdns.

func (*Rdns) GetPublishConnectionDetailsTo

func (mg *Rdns) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Rdns.

func (*Rdns) GetTerraformResourceType

func (mg *Rdns) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Rdns

func (*Rdns) GetTerraformSchemaVersion

func (tr *Rdns) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Rdns) GetWriteConnectionSecretToReference

func (mg *Rdns) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Rdns.

func (*Rdns) Hub

func (tr *Rdns) Hub()

Hub marks this type as a conversion hub.

func (*Rdns) LateInitialize

func (tr *Rdns) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Rdns using its observed tfState. returns True if there are any spec changes for the resource.

func (*Rdns) SetConditions

func (mg *Rdns) SetConditions(c ...xpv1.Condition)

SetConditions of this Rdns.

func (*Rdns) SetDeletionPolicy

func (mg *Rdns) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Rdns.

func (*Rdns) SetManagementPolicies

func (mg *Rdns) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Rdns.

func (*Rdns) SetObservation

func (tr *Rdns) SetObservation(obs map[string]any) error

SetObservation for this Rdns

func (*Rdns) SetParameters

func (tr *Rdns) SetParameters(params map[string]any) error

SetParameters for this Rdns

func (*Rdns) SetProviderConfigReference

func (mg *Rdns) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Rdns.

func (*Rdns) SetPublishConnectionDetailsTo

func (mg *Rdns) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Rdns.

func (*Rdns) SetWriteConnectionSecretToReference

func (mg *Rdns) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Rdns.

type RdnsInitParameters

type RdnsInitParameters struct {

	// The DNS address the ip_address should resolve to.
	DNSPtr *string `json:"dnsPtr,omitempty" tf:"dns_ptr,omitempty"`

	// The Floating IP the ip_address belongs to.
	FloatingIPID *float64 `json:"floatingIpId,omitempty" tf:"floating_ip_id,omitempty"`

	// The IP address that should point to dns_ptr.
	IPAddress *string `json:"ipAddress,omitempty" tf:"ip_address,omitempty"`

	// The Load Balancer the ip_address belongs to.
	LoadBalancerID *float64 `json:"loadBalancerId,omitempty" tf:"load_balancer_id,omitempty"`

	// The Primary IP the ip_address belongs to.
	PrimaryIPID *float64 `json:"primaryIpId,omitempty" tf:"primary_ip_id,omitempty"`

	// The server the ip_address belongs to.
	ServerID *float64 `json:"serverId,omitempty" tf:"server_id,omitempty"`
}

func (*RdnsInitParameters) DeepCopy

func (in *RdnsInitParameters) DeepCopy() *RdnsInitParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RdnsInitParameters.

func (*RdnsInitParameters) DeepCopyInto

func (in *RdnsInitParameters) DeepCopyInto(out *RdnsInitParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RdnsList

type RdnsList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Rdns `json:"items"`
}

RdnsList contains a list of Rdnss

func (*RdnsList) DeepCopy

func (in *RdnsList) DeepCopy() *RdnsList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RdnsList.

func (*RdnsList) DeepCopyInto

func (in *RdnsList) DeepCopyInto(out *RdnsList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RdnsList) DeepCopyObject

func (in *RdnsList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*RdnsList) GetItems

func (l *RdnsList) GetItems() []resource.Managed

GetItems of this RdnsList.

type RdnsObservation

type RdnsObservation struct {

	// The DNS address the ip_address should resolve to.
	DNSPtr *string `json:"dnsPtr,omitempty" tf:"dns_ptr,omitempty"`

	// The Floating IP the ip_address belongs to.
	FloatingIPID *float64 `json:"floatingIpId,omitempty" tf:"floating_ip_id,omitempty"`

	// (int) Unique ID of the Reverse DNS Entry.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// The IP address that should point to dns_ptr.
	IPAddress *string `json:"ipAddress,omitempty" tf:"ip_address,omitempty"`

	// The Load Balancer the ip_address belongs to.
	LoadBalancerID *float64 `json:"loadBalancerId,omitempty" tf:"load_balancer_id,omitempty"`

	// The Primary IP the ip_address belongs to.
	PrimaryIPID *float64 `json:"primaryIpId,omitempty" tf:"primary_ip_id,omitempty"`

	// The server the ip_address belongs to.
	ServerID *float64 `json:"serverId,omitempty" tf:"server_id,omitempty"`
}

func (*RdnsObservation) DeepCopy

func (in *RdnsObservation) DeepCopy() *RdnsObservation

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RdnsObservation.

func (*RdnsObservation) DeepCopyInto

func (in *RdnsObservation) DeepCopyInto(out *RdnsObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RdnsParameters

type RdnsParameters struct {

	// The DNS address the ip_address should resolve to.
	// +kubebuilder:validation:Optional
	DNSPtr *string `json:"dnsPtr,omitempty" tf:"dns_ptr,omitempty"`

	// The Floating IP the ip_address belongs to.
	// +kubebuilder:validation:Optional
	FloatingIPID *float64 `json:"floatingIpId,omitempty" tf:"floating_ip_id,omitempty"`

	// The IP address that should point to dns_ptr.
	// +kubebuilder:validation:Optional
	IPAddress *string `json:"ipAddress,omitempty" tf:"ip_address,omitempty"`

	// The Load Balancer the ip_address belongs to.
	// +kubebuilder:validation:Optional
	LoadBalancerID *float64 `json:"loadBalancerId,omitempty" tf:"load_balancer_id,omitempty"`

	// The Primary IP the ip_address belongs to.
	// +kubebuilder:validation:Optional
	PrimaryIPID *float64 `json:"primaryIpId,omitempty" tf:"primary_ip_id,omitempty"`

	// The server the ip_address belongs to.
	// +kubebuilder:validation:Optional
	ServerID *float64 `json:"serverId,omitempty" tf:"server_id,omitempty"`
}

func (*RdnsParameters) DeepCopy

func (in *RdnsParameters) DeepCopy() *RdnsParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RdnsParameters.

func (*RdnsParameters) DeepCopyInto

func (in *RdnsParameters) DeepCopyInto(out *RdnsParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RdnsSpec

type RdnsSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     RdnsParameters `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 RdnsInitParameters `json:"initProvider,omitempty"`
}

RdnsSpec defines the desired state of Rdns

func (*RdnsSpec) DeepCopy

func (in *RdnsSpec) DeepCopy() *RdnsSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RdnsSpec.

func (*RdnsSpec) DeepCopyInto

func (in *RdnsSpec) DeepCopyInto(out *RdnsSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RdnsStatus

type RdnsStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        RdnsObservation `json:"atProvider,omitempty"`
}

RdnsStatus defines the observed state of Rdns.

func (*RdnsStatus) DeepCopy

func (in *RdnsStatus) DeepCopy() *RdnsStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RdnsStatus.

func (*RdnsStatus) DeepCopyInto

func (in *RdnsStatus) DeepCopyInto(out *RdnsStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL