v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

+groupName=firewall.upcloud.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: firewall.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Rules

type Rules struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              RulesSpec   `json:"spec,omitempty"`
	Status            RulesStatus `json:"status,omitempty"`
}

func (*Rules) DeepCopy

func (in *Rules) DeepCopy() *Rules

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

func (*Rules) DeepCopyInto

func (in *Rules) DeepCopyInto(out *Rules)

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

func (*Rules) DeepCopyObject

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

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

func (*Rules) SetupWebhookWithManager

func (r *Rules) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Rules) ValidateCreate

func (r *Rules) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Rules) ValidateDelete

func (r *Rules) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Rules) ValidateUpdate

func (r *Rules) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type RulesList

type RulesList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Rules CRD objects
	Items []Rules `json:"items,omitempty"`
}

RulesList is a list of Ruless

func (*RulesList) DeepCopy

func (in *RulesList) DeepCopy() *RulesList

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

func (*RulesList) DeepCopyInto

func (in *RulesList) DeepCopyInto(out *RulesList)

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

func (*RulesList) DeepCopyObject

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

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

type RulesSpec

type RulesSpec struct {
	State *RulesSpecResource `json:"state,omitempty" tf:"-"`

	Resource RulesSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*RulesSpec) DeepCopy

func (in *RulesSpec) DeepCopy() *RulesSpec

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

func (*RulesSpec) DeepCopyInto

func (in *RulesSpec) DeepCopyInto(out *RulesSpec)

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

type RulesSpecFirewallRule

type RulesSpecFirewallRule struct {
	// Action to take if the rule conditions are met
	Action *string `json:"action" tf:"action"`
	// Freeform comment string for the rule
	// +optional
	Comment *string `json:"comment,omitempty" tf:"comment"`
	// The destination address range ends from this address
	// +optional
	DestinationAddressEnd *string `json:"destinationAddressEnd,omitempty" tf:"destination_address_end"`
	// The destination address range starts from this address
	// +optional
	DestinationAddressStart *string `json:"destinationAddressStart,omitempty" tf:"destination_address_start"`
	// The destination port range ends from this port number
	// +optional
	DestinationPortEnd *string `json:"destinationPortEnd,omitempty" tf:"destination_port_end"`
	// The destination port range starts from this port number
	// +optional
	DestinationPortStart *string `json:"destinationPortStart,omitempty" tf:"destination_port_start"`
	// The direction of network traffic this rule will be applied to
	Direction *string `json:"direction" tf:"direction"`
	// The address family of new firewall rule
	Family *string `json:"family" tf:"family"`
	// The ICMP type
	// +optional
	IcmpType *string `json:"icmpType,omitempty" tf:"icmp_type"`
	// The protocol this rule will be applied to
	// +optional
	Protocol *string `json:"protocol,omitempty" tf:"protocol"`
	// The source address range ends from this address
	// +optional
	SourceAddressEnd *string `json:"sourceAddressEnd,omitempty" tf:"source_address_end"`
	// The source address range starts from this address
	// +optional
	SourceAddressStart *string `json:"sourceAddressStart,omitempty" tf:"source_address_start"`
	// The source port range ends from this port number
	// +optional
	SourcePortEnd *string `json:"sourcePortEnd,omitempty" tf:"source_port_end"`
	// The source port range starts from this port number
	// +optional
	SourcePortStart *string `json:"sourcePortStart,omitempty" tf:"source_port_start"`
}

func (*RulesSpecFirewallRule) DeepCopy

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

func (*RulesSpecFirewallRule) DeepCopyInto

func (in *RulesSpecFirewallRule) DeepCopyInto(out *RulesSpecFirewallRule)

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

type RulesSpecResource

type RulesSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// +kubebuilder:validation:MaxItems=1000
	FirewallRule []RulesSpecFirewallRule `json:"firewallRule" tf:"firewall_rule"`
	// The unique id of the server to be protected the firewall rules
	ServerID *string `json:"serverID" tf:"server_id"`
}

func (*RulesSpecResource) DeepCopy

func (in *RulesSpecResource) DeepCopy() *RulesSpecResource

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

func (*RulesSpecResource) DeepCopyInto

func (in *RulesSpecResource) DeepCopyInto(out *RulesSpecResource)

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

type RulesStatus

type RulesStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*RulesStatus) DeepCopy

func (in *RulesStatus) DeepCopy() *RulesStatus

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

func (*RulesStatus) DeepCopyInto

func (in *RulesStatus) DeepCopyInto(out *RulesStatus)

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