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=firewall.hcloud.upbound.io +versionName=v1alpha1

Index

Constants

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

Package type metadata.

Variables

View Source
var (
	Firewall_Kind             = "Firewall"
	Firewall_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Firewall_Kind}.String()
	Firewall_KindAPIVersion   = Firewall_Kind + "." + CRDGroupVersion.String()
	Firewall_GroupVersionKind = CRDGroupVersion.WithKind(Firewall_Kind)
)

Repository type metadata.

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
)

Functions

This section is empty.

Types

type ApplyToInitParameters

type ApplyToInitParameters struct {

	// Label Selector to select servers the firewall should be applied to (only one
	// of server and label_selectorcan be applied in one block)
	LabelSelector *string `json:"labelSelector,omitempty" tf:"label_selector,omitempty"`

	// ID of the server you want to apply the firewall to (only one of server
	// and label_selectorcan be applied in one block)
	Server *float64 `json:"server,omitempty" tf:"server,omitempty"`
}

func (*ApplyToInitParameters) DeepCopy

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

func (*ApplyToInitParameters) DeepCopyInto

func (in *ApplyToInitParameters) DeepCopyInto(out *ApplyToInitParameters)

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

type ApplyToObservation

type ApplyToObservation struct {

	// Label Selector to select servers the firewall should be applied to (only one
	// of server and label_selectorcan be applied in one block)
	LabelSelector *string `json:"labelSelector,omitempty" tf:"label_selector,omitempty"`

	// ID of the server you want to apply the firewall to (only one of server
	// and label_selectorcan be applied in one block)
	Server *float64 `json:"server,omitempty" tf:"server,omitempty"`
}

func (*ApplyToObservation) DeepCopy

func (in *ApplyToObservation) DeepCopy() *ApplyToObservation

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

func (*ApplyToObservation) DeepCopyInto

func (in *ApplyToObservation) DeepCopyInto(out *ApplyToObservation)

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

type ApplyToParameters

type ApplyToParameters struct {

	// Label Selector to select servers the firewall should be applied to (only one
	// of server and label_selectorcan be applied in one block)
	// +kubebuilder:validation:Optional
	LabelSelector *string `json:"labelSelector,omitempty" tf:"label_selector,omitempty"`

	// ID of the server you want to apply the firewall to (only one of server
	// and label_selectorcan be applied in one block)
	// +kubebuilder:validation:Optional
	Server *float64 `json:"server,omitempty" tf:"server,omitempty"`
}

func (*ApplyToParameters) DeepCopy

func (in *ApplyToParameters) DeepCopy() *ApplyToParameters

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

func (*ApplyToParameters) DeepCopyInto

func (in *ApplyToParameters) DeepCopyInto(out *ApplyToParameters)

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

type Firewall

type Firewall 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.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
	Spec   FirewallSpec   `json:"spec"`
	Status FirewallStatus `json:"status,omitempty"`
}

Firewall is the Schema for the Firewalls API. Provides a Hetzner Cloud Firewall to represent a Firewall 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 (*Firewall) DeepCopy

func (in *Firewall) DeepCopy() *Firewall

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

func (*Firewall) DeepCopyInto

func (in *Firewall) DeepCopyInto(out *Firewall)

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

func (*Firewall) DeepCopyObject

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

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

func (*Firewall) GetCondition

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

GetCondition of this Firewall.

func (*Firewall) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this Firewall

func (*Firewall) GetDeletionPolicy

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

GetDeletionPolicy of this Firewall.

func (*Firewall) GetID

func (tr *Firewall) GetID() string

GetID returns ID of underlying Terraform resource of this Firewall

func (*Firewall) GetInitParameters

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

GetInitParameters of this Firewall

func (*Firewall) GetManagementPolicies

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

GetManagementPolicies of this Firewall.

func (*Firewall) GetMergedParameters

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

GetInitParameters of this Firewall

func (*Firewall) GetObservation

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

GetObservation of this Firewall

func (*Firewall) GetParameters

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

GetParameters of this Firewall

func (*Firewall) GetProviderConfigReference

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

GetProviderConfigReference of this Firewall.

func (*Firewall) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Firewall.

func (*Firewall) GetTerraformResourceType

func (mg *Firewall) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Firewall

func (*Firewall) GetTerraformSchemaVersion

func (tr *Firewall) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Firewall) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Firewall.

func (*Firewall) Hub

func (tr *Firewall) Hub()

Hub marks this type as a conversion hub.

func (*Firewall) LateInitialize

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

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

func (*Firewall) SetConditions

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

SetConditions of this Firewall.

func (*Firewall) SetDeletionPolicy

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

SetDeletionPolicy of this Firewall.

func (*Firewall) SetManagementPolicies

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

SetManagementPolicies of this Firewall.

func (*Firewall) SetObservation

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

SetObservation for this Firewall

func (*Firewall) SetParameters

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

SetParameters for this Firewall

func (*Firewall) SetProviderConfigReference

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

SetProviderConfigReference of this Firewall.

func (*Firewall) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Firewall.

func (*Firewall) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Firewall.

type FirewallInitParameters

type FirewallInitParameters struct {

	// Resources the firewall should be assigned to
	ApplyTo []ApplyToInitParameters `json:"applyTo,omitempty" tf:"apply_to,omitempty"`

	// User-defined labels (key-value pairs) should be created with.
	// +mapType=granular
	Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`

	// Name of the Firewall.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Configuration of a Rule from this Firewall.
	Rule []RuleInitParameters `json:"rule,omitempty" tf:"rule,omitempty"`
}

func (*FirewallInitParameters) DeepCopy

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

func (*FirewallInitParameters) DeepCopyInto

func (in *FirewallInitParameters) DeepCopyInto(out *FirewallInitParameters)

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

type FirewallList

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

FirewallList contains a list of Firewalls

func (*FirewallList) DeepCopy

func (in *FirewallList) DeepCopy() *FirewallList

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

func (*FirewallList) DeepCopyInto

func (in *FirewallList) DeepCopyInto(out *FirewallList)

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

func (*FirewallList) DeepCopyObject

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

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

func (*FirewallList) GetItems

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

GetItems of this FirewallList.

type FirewallObservation

type FirewallObservation struct {

	// Resources the firewall should be assigned to
	ApplyTo []ApplyToObservation `json:"applyTo,omitempty" tf:"apply_to,omitempty"`

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

	// User-defined labels (key-value pairs) should be created with.
	// +mapType=granular
	Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`

	// Name of the Firewall.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Configuration of a Rule from this Firewall.
	Rule []RuleObservation `json:"rule,omitempty" tf:"rule,omitempty"`
}

func (*FirewallObservation) DeepCopy

func (in *FirewallObservation) DeepCopy() *FirewallObservation

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

func (*FirewallObservation) DeepCopyInto

func (in *FirewallObservation) DeepCopyInto(out *FirewallObservation)

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

type FirewallParameters

type FirewallParameters struct {

	// Resources the firewall should be assigned to
	// +kubebuilder:validation:Optional
	ApplyTo []ApplyToParameters `json:"applyTo,omitempty" tf:"apply_to,omitempty"`

	// User-defined labels (key-value pairs) should be created with.
	// +kubebuilder:validation:Optional
	// +mapType=granular
	Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`

	// Name of the Firewall.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Configuration of a Rule from this Firewall.
	// +kubebuilder:validation:Optional
	Rule []RuleParameters `json:"rule,omitempty" tf:"rule,omitempty"`
}

func (*FirewallParameters) DeepCopy

func (in *FirewallParameters) DeepCopy() *FirewallParameters

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

func (*FirewallParameters) DeepCopyInto

func (in *FirewallParameters) DeepCopyInto(out *FirewallParameters)

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

type FirewallSpec

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

FirewallSpec defines the desired state of Firewall

func (*FirewallSpec) DeepCopy

func (in *FirewallSpec) DeepCopy() *FirewallSpec

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

func (*FirewallSpec) DeepCopyInto

func (in *FirewallSpec) DeepCopyInto(out *FirewallSpec)

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

type FirewallStatus

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

FirewallStatus defines the observed state of Firewall.

func (*FirewallStatus) DeepCopy

func (in *FirewallStatus) DeepCopy() *FirewallStatus

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

func (*FirewallStatus) DeepCopyInto

func (in *FirewallStatus) DeepCopyInto(out *FirewallStatus)

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

type RuleInitParameters

type RuleInitParameters struct {

	// Description of the firewall rule
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// List of CIDRs that are allowed within this Firewall Rule (when direction
	// is out)
	// +listType=set
	DestinationIps []*string `json:"destinationIps,omitempty" tf:"destination_ips,omitempty"`

	// Direction of the Firewall Rule. in
	Direction *string `json:"direction,omitempty" tf:"direction,omitempty"`

	// Port of the Firewall Rule. Required when protocol is tcp or udp. You can use any
	// to allow all ports for the specific protocol. Port ranges are also possible: 80-85 allows all ports between 80 and
	// 85.
	Port *string `json:"port,omitempty" tf:"port,omitempty"`

	// Protocol of the Firewall Rule. tcp, icmp, udp, gre, esp
	Protocol *string `json:"protocol,omitempty" tf:"protocol,omitempty"`

	// List of CIDRs that are allowed within this Firewall Rule
	// +listType=set
	SourceIps []*string `json:"sourceIps,omitempty" tf:"source_ips,omitempty"`
}

func (*RuleInitParameters) DeepCopy

func (in *RuleInitParameters) DeepCopy() *RuleInitParameters

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

func (*RuleInitParameters) DeepCopyInto

func (in *RuleInitParameters) DeepCopyInto(out *RuleInitParameters)

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

type RuleObservation

type RuleObservation struct {

	// Description of the firewall rule
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// List of CIDRs that are allowed within this Firewall Rule (when direction
	// is out)
	// +listType=set
	DestinationIps []*string `json:"destinationIps,omitempty" tf:"destination_ips,omitempty"`

	// Direction of the Firewall Rule. in
	Direction *string `json:"direction,omitempty" tf:"direction,omitempty"`

	// Port of the Firewall Rule. Required when protocol is tcp or udp. You can use any
	// to allow all ports for the specific protocol. Port ranges are also possible: 80-85 allows all ports between 80 and
	// 85.
	Port *string `json:"port,omitempty" tf:"port,omitempty"`

	// Protocol of the Firewall Rule. tcp, icmp, udp, gre, esp
	Protocol *string `json:"protocol,omitempty" tf:"protocol,omitempty"`

	// List of CIDRs that are allowed within this Firewall Rule
	// +listType=set
	SourceIps []*string `json:"sourceIps,omitempty" tf:"source_ips,omitempty"`
}

func (*RuleObservation) DeepCopy

func (in *RuleObservation) DeepCopy() *RuleObservation

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

func (*RuleObservation) DeepCopyInto

func (in *RuleObservation) DeepCopyInto(out *RuleObservation)

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

type RuleParameters

type RuleParameters struct {

	// Description of the firewall rule
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// List of CIDRs that are allowed within this Firewall Rule (when direction
	// is out)
	// +kubebuilder:validation:Optional
	// +listType=set
	DestinationIps []*string `json:"destinationIps,omitempty" tf:"destination_ips,omitempty"`

	// Direction of the Firewall Rule. in
	// +kubebuilder:validation:Optional
	Direction *string `json:"direction" tf:"direction,omitempty"`

	// Port of the Firewall Rule. Required when protocol is tcp or udp. You can use any
	// to allow all ports for the specific protocol. Port ranges are also possible: 80-85 allows all ports between 80 and
	// 85.
	// +kubebuilder:validation:Optional
	Port *string `json:"port,omitempty" tf:"port,omitempty"`

	// Protocol of the Firewall Rule. tcp, icmp, udp, gre, esp
	// +kubebuilder:validation:Optional
	Protocol *string `json:"protocol" tf:"protocol,omitempty"`

	// List of CIDRs that are allowed within this Firewall Rule
	// +kubebuilder:validation:Optional
	// +listType=set
	SourceIps []*string `json:"sourceIps,omitempty" tf:"source_ips,omitempty"`
}

func (*RuleParameters) DeepCopy

func (in *RuleParameters) DeepCopy() *RuleParameters

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

func (*RuleParameters) DeepCopyInto

func (in *RuleParameters) DeepCopyInto(out *RuleParameters)

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