v1

package
v1.14.10 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Ready => controller considers this resource Ready
	Ready = "Ready"
	// Validated => Spec passed validating
	Validated = "Validated"
	// Init => controller is initializing this resource
	Init = "Init"
	// Error => last recorded error
	Error = "Error"

	ReasonInit = "Init"
)

Constants for condition

View Source
const (
	ProtocolIPv4 = "IPv4"
	ProtocolIPv6 = "IPv6"
	ProtocolDual = "Dual"
)
View Source
const (
	GWDistributedType = "distributed"
	GWCentralizedType = "centralized"
)
View Source
const (
	TrafficPolicyLocal   = "Local"
	TrafficPolicyCluster = "Cluster"
)

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	SgPolicyAllow = SgPolicy(ovnnb.ACLActionAllow)
	SgPolicyDrop  = SgPolicy(ovnnb.ACLActionDrop)
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: kubeovn.GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back 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 ACL

type ACL struct {
	Direction string `json:"direction,omitempty"`
	Priority  int    `json:"priority,omitempty"`
	Match     string `json:"match,omitempty"`
	Action    string `json:"action,omitempty"`
}

func (*ACL) DeepCopy

func (in *ACL) DeepCopy() *ACL

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

func (*ACL) DeepCopyInto

func (in *ACL) DeepCopyInto(out *ACL)

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

type BFDPort added in v1.14.10

type BFDPort struct {
	Enabled bool `json:"enabled"`
	// ip address(es) of the BFD port
	IP string `json:"ip,omitempty"`

	// optional node selector used to select the nodes where the BFD LRP will be hosted
	// if not specified, at most 3 nodes will be selected
	NodeSelector *metav1.LabelSelector `json:"nodeSelector,omitempty"`
}

func (*BFDPort) DeepCopy added in v1.14.10

func (in *BFDPort) DeepCopy() *BFDPort

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

func (*BFDPort) DeepCopyInto added in v1.14.10

func (in *BFDPort) DeepCopyInto(out *BFDPort)

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

func (*BFDPort) IsEnabled added in v1.14.10

func (p *BFDPort) IsEnabled() bool

type BFDPortStatus added in v1.14.10

type BFDPortStatus struct {
	Name  string   `json:"name,omitempty"`
	IP    string   `json:"ip,omitempty"`
	Nodes []string `json:"nodes,omitempty"`
}

func (*BFDPortStatus) Clear added in v1.14.10

func (s *BFDPortStatus) Clear()

func (*BFDPortStatus) DeepCopy added in v1.14.10

func (in *BFDPortStatus) DeepCopy() *BFDPortStatus

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

func (*BFDPortStatus) DeepCopyInto added in v1.14.10

func (in *BFDPortStatus) DeepCopyInto(out *BFDPortStatus)

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

func (BFDPortStatus) IsEmpty added in v1.14.10

func (s BFDPortStatus) IsEmpty() bool

type Condition

type Condition struct {
	// Type of condition.
	Type ConditionType `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status corev1.ConditionStatus `json:"status"`
	// The reason for the condition's last transition.
	// +optional
	Reason string `json:"reason,omitempty"`
	// A human readable message indicating details about the transition.
	// +optional
	Message string `json:"message,omitempty"`
	// ObservedGeneration represents the .metadata.generation that the condition was set based upon.
	// For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9,
	// the condition is out of date with respect to the current state of the instance.
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// Last time the condition was probed
	// +optional
	LastUpdateTime metav1.Time `json:"lastUpdateTime"`
	// Last time the condition transitioned from one status to another.
	// +optional
	LastTransitionTime metav1.Time `json:"lastTransitionTime"`
}

Condition describes the state of an object at a certain point. +k8s:deepcopy-gen=true

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

type ConditionType

type ConditionType string

ConditionType encodes information on the condition

type Conditions added in v1.14.10

type Conditions []Condition

func (*Conditions) ConditionReason added in v1.14.10

func (c *Conditions) ConditionReason(ctype ConditionType) string

ConditionReason - return condition reason

func (Conditions) DeepCopy added in v1.14.10

func (in Conditions) DeepCopy() Conditions

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

func (Conditions) DeepCopyInto added in v1.14.10

func (in Conditions) DeepCopyInto(out *Conditions)

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

func (*Conditions) GetCondition added in v1.14.10

func (c *Conditions) GetCondition(ctype ConditionType) *Condition

GetCondition get existing condition

func (*Conditions) IsConditionTrue added in v1.14.10

func (c *Conditions) IsConditionTrue(ctype ConditionType, generation int64) bool

IsConditionTrue - if condition is true

func (*Conditions) IsReady added in v1.14.10

func (c *Conditions) IsReady(generation int64) bool

IsReady returns true if ready condition is set

func (*Conditions) IsValidated added in v1.14.10

func (c *Conditions) IsValidated(generation int64) bool

IsValidated returns true if ready condition is set

func (*Conditions) RemoveCondition added in v1.14.10

func (c *Conditions) RemoveCondition(ctype ConditionType)

RemoveCondition removes the condition with the provided type.

func (*Conditions) SetCondition added in v1.14.10

func (c *Conditions) SetCondition(ctype ConditionType, status corev1.ConditionStatus, reason, message string, generation int64)

SetCondition creates or updates a condition

func (*Conditions) SetReady added in v1.14.10

func (c *Conditions) SetReady(reason string, generation int64)

func (*Conditions) SetValidated added in v1.14.10

func (c *Conditions) SetValidated(generation int64)

type CustomInterface

type CustomInterface struct {
	Interface string   `json:"interface"`
	Nodes     []string `json:"nodes"`
}

func (*CustomInterface) DeepCopy

func (in *CustomInterface) DeepCopy() *CustomInterface

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

func (*CustomInterface) DeepCopyInto

func (in *CustomInterface) DeepCopyInto(out *CustomInterface)

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

type IP

type IP struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec IPSpec `json:"spec"`
}

+genclient +genclient:noStatus +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced

func (*IP) DeepCopy

func (in *IP) DeepCopy() *IP

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

func (*IP) DeepCopyInto

func (in *IP) DeepCopyInto(out *IP)

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

func (*IP) DeepCopyObject

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

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

type IPList

type IPList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []IP `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*IPList) DeepCopy

func (in *IPList) DeepCopy() *IPList

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

func (*IPList) DeepCopyInto

func (in *IPList) DeepCopyInto(out *IPList)

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

func (*IPList) DeepCopyObject

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

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

type IPPool

type IPPool struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   IPPoolSpec   `json:"spec"`
	Status IPPoolStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced

func (*IPPool) DeepCopy

func (in *IPPool) DeepCopy() *IPPool

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

func (*IPPool) DeepCopyInto

func (in *IPPool) DeepCopyInto(out *IPPool)

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

func (*IPPool) DeepCopyObject

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

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

type IPPoolList

type IPPoolList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []IPPool `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*IPPoolList) DeepCopy

func (in *IPPoolList) DeepCopy() *IPPoolList

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

func (*IPPoolList) DeepCopyInto

func (in *IPPoolList) DeepCopyInto(out *IPPoolList)

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

func (*IPPoolList) DeepCopyObject

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

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

type IPPoolSpec

type IPPoolSpec struct {
	Subnet     string   `json:"subnet,omitempty"`
	Namespaces []string `json:"namespaces,omitempty"`
	IPs        []string `json:"ips,omitempty"`
}

func (*IPPoolSpec) DeepCopy

func (in *IPPoolSpec) DeepCopy() *IPPoolSpec

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

func (*IPPoolSpec) DeepCopyInto

func (in *IPPoolSpec) DeepCopyInto(out *IPPoolSpec)

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

type IPPoolStatus

type IPPoolStatus struct {
	V4AvailableIPs     internal.BigInt `json:"v4AvailableIPs"`
	V4AvailableIPRange string          `json:"v4AvailableIPRange"`
	V4UsingIPs         internal.BigInt `json:"v4UsingIPs"`
	V4UsingIPRange     string          `json:"v4UsingIPRange"`
	V6AvailableIPs     internal.BigInt `json:"v6AvailableIPs"`
	V6AvailableIPRange string          `json:"v6AvailableIPRange"`
	V6UsingIPs         internal.BigInt `json:"v6UsingIPs"`
	V6UsingIPRange     string          `json:"v6UsingIPRange"`

	// Conditions represents the latest state of the object
	// +optional
	Conditions []Condition `json:"conditions,omitempty"`
}

func (*IPPoolStatus) Bytes

func (s *IPPoolStatus) Bytes() ([]byte, error)

func (*IPPoolStatus) ClearCondition

func (s *IPPoolStatus) ClearCondition(ctype ConditionType, reason, message string)

ClearCondition updates or creates a new condition

func (*IPPoolStatus) ClearError

func (s *IPPoolStatus) ClearError()

ClearError - shortcut to set error condition

func (*IPPoolStatus) DeepCopy

func (in *IPPoolStatus) DeepCopy() *IPPoolStatus

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

func (*IPPoolStatus) DeepCopyInto

func (in *IPPoolStatus) DeepCopyInto(out *IPPoolStatus)

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

func (*IPPoolStatus) EnsureCondition

func (s *IPPoolStatus) EnsureCondition(ctype ConditionType)

EnsureCondition useful for adding default conditions

func (*IPPoolStatus) EnsureStandardConditions

func (s *IPPoolStatus) EnsureStandardConditions()

EnsureStandardConditions - helper to inject standard conditions

func (*IPPoolStatus) GetCondition

func (s *IPPoolStatus) GetCondition(ctype ConditionType) *Condition

GetCondition get existing condition

func (IPPoolStatus) IsConditionTrue

func (s IPPoolStatus) IsConditionTrue(ctype ConditionType) bool

IsConditionTrue - if condition is true

func (IPPoolStatus) IsReady

func (s IPPoolStatus) IsReady() bool

IsReady returns true if ready condition is set

func (*IPPoolStatus) NotReady

func (s *IPPoolStatus) NotReady(reason, message string)

NotReady - shortcut to set ready condition to false

func (*IPPoolStatus) Ready

func (s *IPPoolStatus) Ready(reason, message string)

Ready - shortcut to set ready condition to true

func (*IPPoolStatus) SetCondition

func (s *IPPoolStatus) SetCondition(ctype ConditionType, reason, message string)

SetCondition updates or creates a new condition

func (*IPPoolStatus) SetError

func (s *IPPoolStatus) SetError(reason, message string)

SetError - shortcut to set error condition

type IPSpec

type IPSpec struct {
	PodName       string   `json:"podName"`
	Namespace     string   `json:"namespace"`
	Subnet        string   `json:"subnet"`
	AttachSubnets []string `json:"attachSubnets"`
	NodeName      string   `json:"nodeName"`
	IPAddress     string   `json:"ipAddress"`
	V4IPAddress   string   `json:"v4IpAddress"`
	V6IPAddress   string   `json:"v6IpAddress"`
	AttachIPs     []string `json:"attachIps"`
	MacAddress    string   `json:"macAddress"`
	AttachMacs    []string `json:"attachMacs"`
	ContainerID   string   `json:"containerID"`
	PodType       string   `json:"podType"`
}

func (*IPSpec) DeepCopy

func (in *IPSpec) DeepCopy() *IPSpec

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

func (*IPSpec) DeepCopyInto

func (in *IPSpec) DeepCopyInto(out *IPSpec)

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

type IptablesDnatRule

type IptablesDnatRule struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   IptablesDnatRuleSpec   `json:"spec"`
	Status IptablesDnatRuleStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced +resourceName=iptables-dnat-rules

func (*IptablesDnatRule) DeepCopy

func (in *IptablesDnatRule) DeepCopy() *IptablesDnatRule

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

func (*IptablesDnatRule) DeepCopyInto

func (in *IptablesDnatRule) DeepCopyInto(out *IptablesDnatRule)

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

func (*IptablesDnatRule) DeepCopyObject

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

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

type IptablesDnatRuleList

type IptablesDnatRuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []IptablesDnatRule `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*IptablesDnatRuleList) DeepCopy

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

func (*IptablesDnatRuleList) DeepCopyInto

func (in *IptablesDnatRuleList) DeepCopyInto(out *IptablesDnatRuleList)

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

func (*IptablesDnatRuleList) DeepCopyObject

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

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

type IptablesDnatRuleSpec

type IptablesDnatRuleSpec struct {
	EIP          string `json:"eip"`
	ExternalPort string `json:"externalPort"`
	Protocol     string `json:"protocol,omitempty"`
	InternalIP   string `json:"internalIp"`
	InternalPort string `json:"internalPort"`
}

func (*IptablesDnatRuleSpec) DeepCopy

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

func (*IptablesDnatRuleSpec) DeepCopyInto

func (in *IptablesDnatRuleSpec) DeepCopyInto(out *IptablesDnatRuleSpec)

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

type IptablesDnatRuleStatus

type IptablesDnatRuleStatus struct {
	// +optional
	// +patchStrategy=merge
	Ready        bool   `json:"ready" patchStrategy:"merge"`
	V4ip         string `json:"v4ip" patchStrategy:"merge"`
	V6ip         string `json:"v6ip" patchStrategy:"merge"`
	NatGwDp      string `json:"natGwDp" patchStrategy:"merge"`
	Redo         string `json:"redo" patchStrategy:"merge"`
	Protocol     string `json:"protocol"  patchStrategy:"merge"`
	InternalIP   string `json:"internalIp"  patchStrategy:"merge"`
	InternalPort string `json:"internalPort"  patchStrategy:"merge"`
	ExternalPort string `json:"externalPort"  patchStrategy:"merge"`

	// Conditions represents the latest state of the object
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

func (*IptablesDnatRuleStatus) Bytes

func (s *IptablesDnatRuleStatus) Bytes() ([]byte, error)

func (*IptablesDnatRuleStatus) DeepCopy

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

func (*IptablesDnatRuleStatus) DeepCopyInto

func (in *IptablesDnatRuleStatus) DeepCopyInto(out *IptablesDnatRuleStatus)

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

type IptablesEIP

type IptablesEIP struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   IptablesEIPSpec   `json:"spec"`
	Status IptablesEIPStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced +resourceName=iptables-eips

func (*IptablesEIP) DeepCopy

func (in *IptablesEIP) DeepCopy() *IptablesEIP

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

func (*IptablesEIP) DeepCopyInto

func (in *IptablesEIP) DeepCopyInto(out *IptablesEIP)

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

func (*IptablesEIP) DeepCopyObject

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

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

type IptablesEIPList

type IptablesEIPList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []IptablesEIP `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*IptablesEIPList) DeepCopy

func (in *IptablesEIPList) DeepCopy() *IptablesEIPList

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

func (*IptablesEIPList) DeepCopyInto

func (in *IptablesEIPList) DeepCopyInto(out *IptablesEIPList)

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

func (*IptablesEIPList) DeepCopyObject

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

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

type IptablesEIPSpec added in v1.14.10

type IptablesEIPSpec struct {
	V4ip           string `json:"v4ip"`
	V6ip           string `json:"v6ip"`
	MacAddress     string `json:"macAddress"`
	NatGwDp        string `json:"natGwDp"`
	QoSPolicy      string `json:"qosPolicy"`
	ExternalSubnet string `json:"externalSubnet"`
}

func (*IptablesEIPSpec) DeepCopy added in v1.14.10

func (in *IptablesEIPSpec) DeepCopy() *IptablesEIPSpec

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

func (*IptablesEIPSpec) DeepCopyInto added in v1.14.10

func (in *IptablesEIPSpec) DeepCopyInto(out *IptablesEIPSpec)

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

type IptablesEIPStatus added in v1.14.10

type IptablesEIPStatus struct {
	// +optional
	// +patchStrategy=merge
	Ready     bool   `json:"ready" patchStrategy:"merge"`
	IP        string `json:"ip" patchStrategy:"merge"`
	Redo      string `json:"redo" patchStrategy:"merge"`
	Nat       string `json:"nat" patchStrategy:"merge"`
	QoSPolicy string `json:"qosPolicy" patchStrategy:"merge"`
	// Conditions represents the latest state of the object
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

func (*IptablesEIPStatus) Bytes added in v1.14.10

func (s *IptablesEIPStatus) Bytes() ([]byte, error)

func (*IptablesEIPStatus) DeepCopy added in v1.14.10

func (in *IptablesEIPStatus) DeepCopy() *IptablesEIPStatus

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

func (*IptablesEIPStatus) DeepCopyInto added in v1.14.10

func (in *IptablesEIPStatus) DeepCopyInto(out *IptablesEIPStatus)

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

type IptablesFIPRule

type IptablesFIPRule struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   IptablesFIPRuleSpec   `json:"spec"`
	Status IptablesFIPRuleStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced +resourceName=iptables-fip-rules

func (*IptablesFIPRule) DeepCopy

func (in *IptablesFIPRule) DeepCopy() *IptablesFIPRule

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

func (*IptablesFIPRule) DeepCopyInto

func (in *IptablesFIPRule) DeepCopyInto(out *IptablesFIPRule)

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

func (*IptablesFIPRule) DeepCopyObject

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

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

type IptablesFIPRuleList

type IptablesFIPRuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []IptablesFIPRule `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*IptablesFIPRuleList) DeepCopy

func (in *IptablesFIPRuleList) DeepCopy() *IptablesFIPRuleList

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

func (*IptablesFIPRuleList) DeepCopyInto

func (in *IptablesFIPRuleList) DeepCopyInto(out *IptablesFIPRuleList)

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

func (*IptablesFIPRuleList) DeepCopyObject

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

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

type IptablesFIPRuleSpec

type IptablesFIPRuleSpec struct {
	EIP        string `json:"eip"`
	InternalIP string `json:"internalIp"`
}

func (*IptablesFIPRuleSpec) DeepCopy

func (in *IptablesFIPRuleSpec) DeepCopy() *IptablesFIPRuleSpec

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

func (*IptablesFIPRuleSpec) DeepCopyInto

func (in *IptablesFIPRuleSpec) DeepCopyInto(out *IptablesFIPRuleSpec)

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

type IptablesFIPRuleStatus

type IptablesFIPRuleStatus struct {
	// +optional
	// +patchStrategy=merge
	Ready      bool   `json:"ready" patchStrategy:"merge"`
	V4ip       string `json:"v4ip" patchStrategy:"merge"`
	V6ip       string `json:"v6ip" patchStrategy:"merge"`
	NatGwDp    string `json:"natGwDp" patchStrategy:"merge"`
	Redo       string `json:"redo" patchStrategy:"merge"`
	InternalIP string `json:"internalIp"  patchStrategy:"merge"`

	// Conditions represents the latest state of the object
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

func (*IptablesFIPRuleStatus) Bytes

func (s *IptablesFIPRuleStatus) Bytes() ([]byte, error)

func (*IptablesFIPRuleStatus) DeepCopy

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

func (*IptablesFIPRuleStatus) DeepCopyInto

func (in *IptablesFIPRuleStatus) DeepCopyInto(out *IptablesFIPRuleStatus)

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

type IptablesSnatRule

type IptablesSnatRule struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   IptablesSnatRuleSpec   `json:"spec"`
	Status IptablesSnatRuleStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced +resourceName=iptables-snat-rules

func (*IptablesSnatRule) DeepCopy

func (in *IptablesSnatRule) DeepCopy() *IptablesSnatRule

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

func (*IptablesSnatRule) DeepCopyInto

func (in *IptablesSnatRule) DeepCopyInto(out *IptablesSnatRule)

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

func (*IptablesSnatRule) DeepCopyObject

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

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

type IptablesSnatRuleList

type IptablesSnatRuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []IptablesSnatRule `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*IptablesSnatRuleList) DeepCopy

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

func (*IptablesSnatRuleList) DeepCopyInto

func (in *IptablesSnatRuleList) DeepCopyInto(out *IptablesSnatRuleList)

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

func (*IptablesSnatRuleList) DeepCopyObject

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

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

type IptablesSnatRuleSpec

type IptablesSnatRuleSpec struct {
	EIP          string `json:"eip"`
	InternalCIDR string `json:"internalCIDR"`
}

func (*IptablesSnatRuleSpec) DeepCopy

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

func (*IptablesSnatRuleSpec) DeepCopyInto

func (in *IptablesSnatRuleSpec) DeepCopyInto(out *IptablesSnatRuleSpec)

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

type IptablesSnatRuleStatus

type IptablesSnatRuleStatus struct {
	// +optional
	// +patchStrategy=merge
	Ready        bool   `json:"ready" patchStrategy:"merge"`
	V4ip         string `json:"v4ip" patchStrategy:"merge"`
	V6ip         string `json:"v6ip" patchStrategy:"merge"`
	NatGwDp      string `json:"natGwDp" patchStrategy:"merge"`
	Redo         string `json:"redo" patchStrategy:"merge"`
	InternalCIDR string `json:"internalCIDR" patchStrategy:"merge"`

	// Conditions represents the latest state of the object
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

func (*IptablesSnatRuleStatus) Bytes

func (s *IptablesSnatRuleStatus) Bytes() ([]byte, error)

func (*IptablesSnatRuleStatus) DeepCopy

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

func (*IptablesSnatRuleStatus) DeepCopyInto

func (in *IptablesSnatRuleStatus) DeepCopyInto(out *IptablesSnatRuleStatus)

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

type NatOutGoingPolicyMatch

type NatOutGoingPolicyMatch struct {
	SrcIPs string `json:"srcIPs,omitempty"`
	DstIPs string `json:"dstIPs,omitempty"`
}

func (*NatOutGoingPolicyMatch) DeepCopy

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

func (*NatOutGoingPolicyMatch) DeepCopyInto

func (in *NatOutGoingPolicyMatch) DeepCopyInto(out *NatOutGoingPolicyMatch)

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

type NatOutgoingPolicyRule

type NatOutgoingPolicyRule struct {
	Match  NatOutGoingPolicyMatch `json:"match"`
	Action string                 `json:"action"`
}

func (*NatOutgoingPolicyRule) DeepCopy

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

func (*NatOutgoingPolicyRule) DeepCopyInto

func (in *NatOutgoingPolicyRule) DeepCopyInto(out *NatOutgoingPolicyRule)

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

type NatOutgoingPolicyRuleStatus

type NatOutgoingPolicyRuleStatus struct {
	RuleID string `json:"ruleID"`
	NatOutgoingPolicyRule
}

func (*NatOutgoingPolicyRuleStatus) DeepCopy

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

func (*NatOutgoingPolicyRuleStatus) DeepCopyInto

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

type OvnDnatRule

type OvnDnatRule struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   OvnDnatRuleSpec   `json:"spec"`
	Status OvnDnatRuleStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced +resourceName=ovn-dnat-rules

func (*OvnDnatRule) DeepCopy

func (in *OvnDnatRule) DeepCopy() *OvnDnatRule

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

func (*OvnDnatRule) DeepCopyInto

func (in *OvnDnatRule) DeepCopyInto(out *OvnDnatRule)

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

func (*OvnDnatRule) DeepCopyObject

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

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

type OvnDnatRuleList

type OvnDnatRuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []OvnDnatRule `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*OvnDnatRuleList) DeepCopy

func (in *OvnDnatRuleList) DeepCopy() *OvnDnatRuleList

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

func (*OvnDnatRuleList) DeepCopyInto

func (in *OvnDnatRuleList) DeepCopyInto(out *OvnDnatRuleList)

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

func (*OvnDnatRuleList) DeepCopyObject

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

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

type OvnDnatRuleSpec

type OvnDnatRuleSpec struct {
	OvnEip       string `json:"ovnEip"`
	IPType       string `json:"ipType"` // vip, ip
	IPName       string `json:"ipName"` // vip, ip crd name
	InternalPort string `json:"internalPort"`
	ExternalPort string `json:"externalPort"`
	Protocol     string `json:"protocol,omitempty"`
	Vpc          string `json:"vpc"`
	V4Ip         string `json:"v4Ip"`
	V6Ip         string `json:"v6Ip"`
}

func (*OvnDnatRuleSpec) DeepCopy

func (in *OvnDnatRuleSpec) DeepCopy() *OvnDnatRuleSpec

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

func (*OvnDnatRuleSpec) DeepCopyInto

func (in *OvnDnatRuleSpec) DeepCopyInto(out *OvnDnatRuleSpec)

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

type OvnDnatRuleStatus

type OvnDnatRuleStatus struct {
	// +optional
	// +patchStrategy=merge
	Vpc          string `json:"vpc" patchStrategy:"merge"`
	V4Eip        string `json:"v4Eip" patchStrategy:"merge"`
	V6Eip        string `json:"v6Eip" patchStrategy:"merge"`
	ExternalPort string `json:"externalPort"`
	V4Ip         string `json:"v4Ip" patchStrategy:"merge"`
	V6Ip         string `json:"v6Ip" patchStrategy:"merge"`
	InternalPort string `json:"internalPort"`
	Protocol     string `json:"protocol,omitempty"`
	IPName       string `json:"ipName"`
	Ready        bool   `json:"ready" patchStrategy:"merge"`

	// Conditions represents the latest state of the object
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

func (*OvnDnatRuleStatus) Bytes

func (s *OvnDnatRuleStatus) Bytes() ([]byte, error)

func (*OvnDnatRuleStatus) DeepCopy

func (in *OvnDnatRuleStatus) DeepCopy() *OvnDnatRuleStatus

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

func (*OvnDnatRuleStatus) DeepCopyInto

func (in *OvnDnatRuleStatus) DeepCopyInto(out *OvnDnatRuleStatus)

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

type OvnEip

type OvnEip struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   OvnEipSpec   `json:"spec"`
	Status OvnEipStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced +resourceName=ovn-eips

func (*OvnEip) DeepCopy

func (in *OvnEip) DeepCopy() *OvnEip

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

func (*OvnEip) DeepCopyInto

func (in *OvnEip) DeepCopyInto(out *OvnEip)

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

func (*OvnEip) DeepCopyObject

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

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

type OvnEipList

type OvnEipList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []OvnEip `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*OvnEipList) DeepCopy

func (in *OvnEipList) DeepCopy() *OvnEipList

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

func (*OvnEipList) DeepCopyInto

func (in *OvnEipList) DeepCopyInto(out *OvnEipList)

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

func (*OvnEipList) DeepCopyObject

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

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

type OvnEipSpec

type OvnEipSpec struct {
	ExternalSubnet string `json:"externalSubnet"`
	V4Ip           string `json:"v4Ip"`
	V6Ip           string `json:"v6Ip"`
	MacAddress     string `json:"macAddress"`
	Type           string `json:"type"`
}

func (*OvnEipSpec) DeepCopy

func (in *OvnEipSpec) DeepCopy() *OvnEipSpec

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

func (*OvnEipSpec) DeepCopyInto

func (in *OvnEipSpec) DeepCopyInto(out *OvnEipSpec)

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

type OvnEipStatus

type OvnEipStatus struct {
	// Conditions represents the latest state of the object
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`

	Type       string `json:"type" patchStrategy:"merge"`
	Nat        string `json:"nat" patchStrategy:"merge"`
	Ready      bool   `json:"ready" patchStrategy:"merge"`
	V4Ip       string `json:"v4Ip" patchStrategy:"merge"`
	V6Ip       string `json:"v6Ip" patchStrategy:"merge"`
	MacAddress string `json:"macAddress" patchStrategy:"merge"`
}

func (*OvnEipStatus) Bytes

func (s *OvnEipStatus) Bytes() ([]byte, error)

func (*OvnEipStatus) DeepCopy

func (in *OvnEipStatus) DeepCopy() *OvnEipStatus

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

func (*OvnEipStatus) DeepCopyInto

func (in *OvnEipStatus) DeepCopyInto(out *OvnEipStatus)

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

type OvnFip

type OvnFip struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   OvnFipSpec   `json:"spec"`
	Status OvnFipStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced +resourceName=ovn-fips

func (*OvnFip) DeepCopy

func (in *OvnFip) DeepCopy() *OvnFip

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

func (*OvnFip) DeepCopyInto

func (in *OvnFip) DeepCopyInto(out *OvnFip)

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

func (*OvnFip) DeepCopyObject

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

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

type OvnFipList

type OvnFipList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []OvnFip `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*OvnFipList) DeepCopy

func (in *OvnFipList) DeepCopy() *OvnFipList

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

func (*OvnFipList) DeepCopyInto

func (in *OvnFipList) DeepCopyInto(out *OvnFipList)

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

func (*OvnFipList) DeepCopyObject

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

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

type OvnFipSpec

type OvnFipSpec struct {
	OvnEip string `json:"ovnEip"`
	IPType string `json:"ipType"` // vip, ip
	IPName string `json:"ipName"` // vip, ip crd name
	Vpc    string `json:"vpc"`
	V4Ip   string `json:"v4Ip"`
	V6Ip   string `json:"v6Ip"`
	Type   string `json:"type"` // distributed, centralized
}

func (*OvnFipSpec) DeepCopy

func (in *OvnFipSpec) DeepCopy() *OvnFipSpec

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

func (*OvnFipSpec) DeepCopyInto

func (in *OvnFipSpec) DeepCopyInto(out *OvnFipSpec)

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

type OvnFipStatus

type OvnFipStatus struct {
	// +optional
	// +patchStrategy=merge
	Vpc   string `json:"vpc" patchStrategy:"merge"`
	V4Eip string `json:"v4Eip" patchStrategy:"merge"`
	V6Eip string `json:"v6Eip" patchStrategy:"merge"`
	V4Ip  string `json:"v4Ip" patchStrategy:"merge"`
	V6Ip  string `json:"v6Ip" patchStrategy:"merge"`
	Ready bool   `json:"ready" patchStrategy:"merge"`

	// Conditions represents the latest state of the object
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

func (*OvnFipStatus) Bytes

func (s *OvnFipStatus) Bytes() ([]byte, error)

func (*OvnFipStatus) DeepCopy

func (in *OvnFipStatus) DeepCopy() *OvnFipStatus

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

func (*OvnFipStatus) DeepCopyInto

func (in *OvnFipStatus) DeepCopyInto(out *OvnFipStatus)

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

type OvnSnatRule

type OvnSnatRule struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   OvnSnatRuleSpec   `json:"spec"`
	Status OvnSnatRuleStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced +resourceName=ovn-snat-rules

func (*OvnSnatRule) DeepCopy

func (in *OvnSnatRule) DeepCopy() *OvnSnatRule

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

func (*OvnSnatRule) DeepCopyInto

func (in *OvnSnatRule) DeepCopyInto(out *OvnSnatRule)

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

func (*OvnSnatRule) DeepCopyObject

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

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

type OvnSnatRuleList

type OvnSnatRuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []OvnSnatRule `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*OvnSnatRuleList) DeepCopy

func (in *OvnSnatRuleList) DeepCopy() *OvnSnatRuleList

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

func (*OvnSnatRuleList) DeepCopyInto

func (in *OvnSnatRuleList) DeepCopyInto(out *OvnSnatRuleList)

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

func (*OvnSnatRuleList) DeepCopyObject

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

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

type OvnSnatRuleSpec

type OvnSnatRuleSpec struct {
	OvnEip    string `json:"ovnEip"`
	VpcSubnet string `json:"vpcSubnet"`
	IPName    string `json:"ipName"`
	Vpc       string `json:"vpc"`
	V4IpCidr  string `json:"v4IpCidr"` // subnet cidr or pod ip address
	V6IpCidr  string `json:"v6IpCidr"` // subnet cidr or pod ip address
}

func (*OvnSnatRuleSpec) DeepCopy

func (in *OvnSnatRuleSpec) DeepCopy() *OvnSnatRuleSpec

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

func (*OvnSnatRuleSpec) DeepCopyInto

func (in *OvnSnatRuleSpec) DeepCopyInto(out *OvnSnatRuleSpec)

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

type OvnSnatRuleStatus

type OvnSnatRuleStatus struct {
	// +optional
	// +patchStrategy=merge
	Vpc      string `json:"vpc" patchStrategy:"merge"`
	V4Eip    string `json:"v4Eip" patchStrategy:"merge"`
	V6Eip    string `json:"v6Eip" patchStrategy:"merge"`
	V4IpCidr string `json:"v4IpCidr" patchStrategy:"merge"`
	V6IpCidr string `json:"v6IpCidr" patchStrategy:"merge"`
	Ready    bool   `json:"ready" patchStrategy:"merge"`

	// Conditions represents the latest state of the object
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

func (*OvnSnatRuleStatus) Bytes

func (s *OvnSnatRuleStatus) Bytes() ([]byte, error)

func (*OvnSnatRuleStatus) DeepCopy

func (in *OvnSnatRuleStatus) DeepCopy() *OvnSnatRuleStatus

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

func (*OvnSnatRuleStatus) DeepCopyInto

func (in *OvnSnatRuleStatus) DeepCopyInto(out *OvnSnatRuleStatus)

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

type Phase added in v1.14.10

type Phase string

Phase represents resource phase

const (
	// PhasePending means the resource is pending and not processed yet
	PhasePending Phase = "Pending"
	// PhaseProcessing means the resource is being processed
	PhaseProcessing Phase = "Processing"
	// PhaseCompleted means the resource has been processed successfully
	PhaseCompleted Phase = "Completed"
)

type PolicyRoute

type PolicyRoute struct {
	Priority int               `json:"priority,omitempty"`
	Match    string            `json:"match,omitempty"`
	Action   PolicyRouteAction `json:"action,omitempty"`
	// NextHopIP is an optional parameter. It needs to be provided only when 'action' is 'reroute'.
	// +optional
	NextHopIP string `json:"nextHopIP,omitempty"`
}

func (*PolicyRoute) DeepCopy

func (in *PolicyRoute) DeepCopy() *PolicyRoute

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

func (*PolicyRoute) DeepCopyInto

func (in *PolicyRoute) DeepCopyInto(out *PolicyRoute)

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

type PolicyRouteAction

type PolicyRouteAction string

type ProviderNetwork

type ProviderNetwork struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   ProviderNetworkSpec   `json:"spec"`
	Status ProviderNetworkStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced +resourceName=provider-networks

func (*ProviderNetwork) DeepCopy

func (in *ProviderNetwork) DeepCopy() *ProviderNetwork

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

func (*ProviderNetwork) DeepCopyInto

func (in *ProviderNetwork) DeepCopyInto(out *ProviderNetwork)

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

func (*ProviderNetwork) DeepCopyObject

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

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

type ProviderNetworkCondition

type ProviderNetworkCondition struct {
	// Node name
	Node string `json:"node"`
	Condition
}

func (*ProviderNetworkCondition) DeepCopy

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

func (*ProviderNetworkCondition) DeepCopyInto

func (in *ProviderNetworkCondition) DeepCopyInto(out *ProviderNetworkCondition)

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

type ProviderNetworkList

type ProviderNetworkList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []ProviderNetwork `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ProviderNetworkList) DeepCopy

func (in *ProviderNetworkList) DeepCopy() *ProviderNetworkList

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

func (*ProviderNetworkList) DeepCopyInto

func (in *ProviderNetworkList) DeepCopyInto(out *ProviderNetworkList)

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

func (*ProviderNetworkList) DeepCopyObject

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

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

type ProviderNetworkSpec

type ProviderNetworkSpec struct {
	DefaultInterface string            `json:"defaultInterface,omitempty"`
	CustomInterfaces []CustomInterface `json:"customInterfaces,omitempty"`
	ExcludeNodes     []string          `json:"excludeNodes,omitempty"`
	ExchangeLinkName bool              `json:"exchangeLinkName,omitempty"`
}

func (*ProviderNetworkSpec) DeepCopy

func (in *ProviderNetworkSpec) DeepCopy() *ProviderNetworkSpec

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

func (*ProviderNetworkSpec) DeepCopyInto

func (in *ProviderNetworkSpec) DeepCopyInto(out *ProviderNetworkSpec)

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

type ProviderNetworkStatus

type ProviderNetworkStatus struct {
	// +optional
	Ready bool `json:"ready"`

	// +optional
	ReadyNodes []string `json:"readyNodes,omitempty"`

	// +optional
	NotReadyNodes []string `json:"notReadyNodes,omitempty"`

	// +optional
	Vlans []string `json:"vlans,omitempty"`

	// Conditions represents the latest state of the object
	// +optional
	Conditions []ProviderNetworkCondition `json:"conditions,omitempty"`
}

func (*ProviderNetworkStatus) ClearNodeCondition

func (s *ProviderNetworkStatus) ClearNodeCondition(node string, ctype ConditionType, reason, message string) bool

ClearNodeCondition updates or creates a new condition

func (*ProviderNetworkStatus) ConditionReason

func (s *ProviderNetworkStatus) ConditionReason(node string, ctype ConditionType) string

ConditionReason - return condition reason

func (*ProviderNetworkStatus) DeepCopy

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

func (*ProviderNetworkStatus) DeepCopyInto

func (in *ProviderNetworkStatus) DeepCopyInto(out *ProviderNetworkStatus)

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

func (*ProviderNetworkStatus) EnsureNodeCondition

func (s *ProviderNetworkStatus) EnsureNodeCondition(node string, ctype ConditionType) bool

EnsureNodeCondition useful for adding default conditions

func (*ProviderNetworkStatus) EnsureNodeStandardConditions

func (s *ProviderNetworkStatus) EnsureNodeStandardConditions(node string) bool

EnsureNodeStandardConditions - helper to inject standard conditions

func (*ProviderNetworkStatus) GetNodeCondition

func (s *ProviderNetworkStatus) GetNodeCondition(node string, ctype ConditionType) *ProviderNetworkCondition

GetNodeCondition get existing condition

func (*ProviderNetworkStatus) IsNodeConditionTrue

func (s *ProviderNetworkStatus) IsNodeConditionTrue(node string, ctype ConditionType) bool

IsNodeConditionTrue - if condition is true

func (*ProviderNetworkStatus) IsReady

func (s *ProviderNetworkStatus) IsReady() bool

IsReady returns true if ready condition is set

func (*ProviderNetworkStatus) NodeIsReady

func (s *ProviderNetworkStatus) NodeIsReady(node string) bool

NodeIsReady returns true if ready condition is set

func (*ProviderNetworkStatus) RemoveNodeCondition

func (s *ProviderNetworkStatus) RemoveNodeCondition(node string, ctype ConditionType)

RemoveNodeCondition removes the condition with the provided type.

func (*ProviderNetworkStatus) RemoveNodeConditions

func (s *ProviderNetworkStatus) RemoveNodeConditions(node string) bool

RemoveNodeConditions updates or creates a new condition

func (*ProviderNetworkStatus) SetNodeCondition

func (s *ProviderNetworkStatus) SetNodeCondition(node string, ctype ConditionType, reason, message string) bool

SetNodeCondition updates or creates a new condition

func (*ProviderNetworkStatus) SetNodeNotReady

func (s *ProviderNetworkStatus) SetNodeNotReady(node, reason, message string) bool

SetNodeNotReady - shortcut to set ready condition to false

func (*ProviderNetworkStatus) SetNodeReady

func (s *ProviderNetworkStatus) SetNodeReady(node, reason, message string) bool

SetNodeReady - shortcut to set ready condition to true

type QoSPolicy

type QoSPolicy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   QoSPolicySpec   `json:"spec"`
	Status QoSPolicyStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced +resourceName=qos-policies

func (*QoSPolicy) DeepCopy

func (in *QoSPolicy) DeepCopy() *QoSPolicy

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

func (*QoSPolicy) DeepCopyInto

func (in *QoSPolicy) DeepCopyInto(out *QoSPolicy)

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

func (*QoSPolicy) DeepCopyObject

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

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

type QoSPolicyBandwidthLimitRule

type QoSPolicyBandwidthLimitRule struct {
	Name       string                 `json:"name"`
	Interface  string                 `json:"interface,omitempty"`
	RateMax    string                 `json:"rateMax,omitempty"`
	BurstMax   string                 `json:"burstMax,omitempty"`
	Priority   int                    `json:"priority,omitempty"`
	Direction  QoSPolicyRuleDirection `json:"direction,omitempty"`
	MatchType  QoSPolicyRuleMatchType `json:"matchType,omitempty"`
	MatchValue string                 `json:"matchValue,omitempty"`
}

BandwidthLimitRule describes the rule of an bandwidth limit.

func (*QoSPolicyBandwidthLimitRule) DeepCopy

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

func (*QoSPolicyBandwidthLimitRule) DeepCopyInto

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

type QoSPolicyBandwidthLimitRules

type QoSPolicyBandwidthLimitRules []QoSPolicyBandwidthLimitRule

func (QoSPolicyBandwidthLimitRules) DeepCopy

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

func (QoSPolicyBandwidthLimitRules) DeepCopyInto

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

func (QoSPolicyBandwidthLimitRules) Strings

type QoSPolicyBindingType

type QoSPolicyBindingType string
const (
	QoSBindingTypeEIP   QoSPolicyBindingType = "EIP"
	QoSBindingTypeNatGw QoSPolicyBindingType = "NATGW"
)

type QoSPolicyList

type QoSPolicyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []QoSPolicy `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*QoSPolicyList) DeepCopy

func (in *QoSPolicyList) DeepCopy() *QoSPolicyList

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

func (*QoSPolicyList) DeepCopyInto

func (in *QoSPolicyList) DeepCopyInto(out *QoSPolicyList)

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

func (*QoSPolicyList) DeepCopyObject

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

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

type QoSPolicyRuleDirection

type QoSPolicyRuleDirection string
const (
	QoSDirectionIngress QoSPolicyRuleDirection = "ingress"
	QoSDirectionEgress  QoSPolicyRuleDirection = "egress"
)

type QoSPolicyRuleMatchType

type QoSPolicyRuleMatchType string
const QoSMatchTypeIP QoSPolicyRuleMatchType = "ip"

type QoSPolicySpec

type QoSPolicySpec struct {
	BandwidthLimitRules QoSPolicyBandwidthLimitRules `json:"bandwidthLimitRules"`
	Shared              bool                         `json:"shared"`
	BindingType         QoSPolicyBindingType         `json:"bindingType"`
}

func (*QoSPolicySpec) DeepCopy

func (in *QoSPolicySpec) DeepCopy() *QoSPolicySpec

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

func (*QoSPolicySpec) DeepCopyInto

func (in *QoSPolicySpec) DeepCopyInto(out *QoSPolicySpec)

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

type QoSPolicyStatus

type QoSPolicyStatus struct {
	BandwidthLimitRules QoSPolicyBandwidthLimitRules `json:"bandwidthLimitRules" patchStrategy:"merge"`
	Shared              bool                         `json:"shared" patchStrategy:"merge"`
	BindingType         QoSPolicyBindingType         `json:"bindingType"`

	// Conditions represents the latest state of the object
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

func (*QoSPolicyStatus) Bytes

func (s *QoSPolicyStatus) Bytes() ([]byte, error)

func (*QoSPolicyStatus) DeepCopy

func (in *QoSPolicyStatus) DeepCopy() *QoSPolicyStatus

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

func (*QoSPolicyStatus) DeepCopyInto

func (in *QoSPolicyStatus) DeepCopyInto(out *QoSPolicyStatus)

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

type RoutePolicy

type RoutePolicy string
const (
	PolicySrc RoutePolicy = "policySrc"
	PolicyDst RoutePolicy = "policyDst"
)

type SecurityGroup

type SecurityGroup struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   SecurityGroupSpec   `json:"spec"`
	Status SecurityGroupStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced +resourceName=security-groups

func (*SecurityGroup) DeepCopy

func (in *SecurityGroup) DeepCopy() *SecurityGroup

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

func (*SecurityGroup) DeepCopyInto

func (in *SecurityGroup) DeepCopyInto(out *SecurityGroup)

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

func (*SecurityGroup) DeepCopyObject

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

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

type SecurityGroupList

type SecurityGroupList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []SecurityGroup `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*SecurityGroupList) DeepCopy

func (in *SecurityGroupList) DeepCopy() *SecurityGroupList

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

func (*SecurityGroupList) DeepCopyInto

func (in *SecurityGroupList) DeepCopyInto(out *SecurityGroupList)

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

func (*SecurityGroupList) DeepCopyObject

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

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

type SecurityGroupRule added in v1.14.10

type SecurityGroupRule struct {
	IPVersion           string       `json:"ipVersion"`
	Protocol            SgProtocol   `json:"protocol,omitempty"`
	Priority            int          `json:"priority,omitempty"`
	RemoteType          SgRemoteType `json:"remoteType"`
	RemoteAddress       string       `json:"remoteAddress,omitempty"`
	RemoteSecurityGroup string       `json:"remoteSecurityGroup,omitempty"`
	PortRangeMin        int          `json:"portRangeMin,omitempty"`
	PortRangeMax        int          `json:"portRangeMax,omitempty"`
	Policy              SgPolicy     `json:"policy"`
}

func (*SecurityGroupRule) DeepCopy added in v1.14.10

func (in *SecurityGroupRule) DeepCopy() *SecurityGroupRule

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

func (*SecurityGroupRule) DeepCopyInto added in v1.14.10

func (in *SecurityGroupRule) DeepCopyInto(out *SecurityGroupRule)

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

type SecurityGroupSpec

type SecurityGroupSpec struct {
	IngressRules          []SecurityGroupRule `json:"ingressRules,omitempty"`
	EgressRules           []SecurityGroupRule `json:"egressRules,omitempty"`
	AllowSameGroupTraffic bool                `json:"allowSameGroupTraffic,omitempty"`
}

func (*SecurityGroupSpec) DeepCopy

func (in *SecurityGroupSpec) DeepCopy() *SecurityGroupSpec

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

func (*SecurityGroupSpec) DeepCopyInto

func (in *SecurityGroupSpec) DeepCopyInto(out *SecurityGroupSpec)

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

type SecurityGroupStatus

type SecurityGroupStatus struct {
	PortGroup              string `json:"portGroup"`
	AllowSameGroupTraffic  bool   `json:"allowSameGroupTraffic"`
	IngressMd5             string `json:"ingressMd5"`
	EgressMd5              string `json:"egressMd5"`
	IngressLastSyncSuccess bool   `json:"ingressLastSyncSuccess"`
	EgressLastSyncSuccess  bool   `json:"egressLastSyncSuccess"`
}

func (*SecurityGroupStatus) Bytes

func (s *SecurityGroupStatus) Bytes() ([]byte, error)

func (*SecurityGroupStatus) DeepCopy

func (in *SecurityGroupStatus) DeepCopy() *SecurityGroupStatus

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

func (*SecurityGroupStatus) DeepCopyInto

func (in *SecurityGroupStatus) DeepCopyInto(out *SecurityGroupStatus)

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

type SgPolicy

type SgPolicy string

type SgProtocol

type SgProtocol string
const (
	SgProtocolALL  SgProtocol = "all"
	SgProtocolICMP SgProtocol = "icmp"
	SgProtocolTCP  SgProtocol = "tcp"
	SgProtocolUDP  SgProtocol = "udp"
)

type SgRemoteType

type SgRemoteType string
const (
	SgRemoteTypeAddress SgRemoteType = "address"
	SgRemoteTypeSg      SgRemoteType = "securityGroup"
)

type StaticRoute

type StaticRoute struct {
	Policy     RoutePolicy `json:"policy,omitempty"`
	CIDR       string      `json:"cidr"`
	NextHopIP  string      `json:"nextHopIP"`
	ECMPMode   string      `json:"ecmpMode"`
	BfdID      string      `json:"bfdId"`
	RouteTable string      `json:"routeTable"`
}

func (*StaticRoute) DeepCopy

func (in *StaticRoute) DeepCopy() *StaticRoute

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

func (*StaticRoute) DeepCopyInto

func (in *StaticRoute) DeepCopyInto(out *StaticRoute)

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

type Subnet

type Subnet struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   SubnetSpec   `json:"spec"`
	Status SubnetStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced

func (*Subnet) DeepCopy

func (in *Subnet) DeepCopy() *Subnet

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

func (*Subnet) DeepCopyInto

func (in *Subnet) DeepCopyInto(out *Subnet)

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

func (*Subnet) DeepCopyObject

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

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

type SubnetList

type SubnetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Subnet `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

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.

type SubnetSpec

type SubnetSpec struct {
	Default    bool     `json:"default"`
	Vpc        string   `json:"vpc,omitempty"`
	Protocol   string   `json:"protocol,omitempty"`
	Namespaces []string `json:"namespaces,omitempty"`
	CIDRBlock  string   `json:"cidrBlock"`
	Gateway    string   `json:"gateway"`
	ExcludeIps []string `json:"excludeIps,omitempty"`
	Provider   string   `json:"provider,omitempty"`

	GatewayType string `json:"gatewayType,omitempty"`
	GatewayNode string `json:"gatewayNode"`
	NatOutgoing bool   `json:"natOutgoing"`

	ExternalEgressGateway string `json:"externalEgressGateway,omitempty"`
	PolicyRoutingPriority uint32 `json:"policyRoutingPriority,omitempty"`
	PolicyRoutingTableID  uint32 `json:"policyRoutingTableID,omitempty"`
	Mtu                   uint32 `json:"mtu,omitempty"`

	Private      bool     `json:"private"`
	AllowSubnets []string `json:"allowSubnets,omitempty"`

	Vlan string   `json:"vlan,omitempty"`
	Vips []string `json:"vips,omitempty"`

	LogicalGateway         bool `json:"logicalGateway,omitempty"`
	DisableGatewayCheck    bool `json:"disableGatewayCheck,omitempty"`
	DisableInterConnection bool `json:"disableInterConnection,omitempty"`

	EnableDHCP    bool   `json:"enableDHCP,omitempty"`
	DHCPv4Options string `json:"dhcpV4Options,omitempty"`
	DHCPv6Options string `json:"dhcpV6Options,omitempty"`

	EnableIPv6RA  bool   `json:"enableIPv6RA,omitempty"`
	IPv6RAConfigs string `json:"ipv6RAConfigs,omitempty"`

	Acls           []ACL `json:"acls,omitempty"`
	AllowEWTraffic bool  `json:"allowEWTraffic,omitempty"`

	NatOutgoingPolicyRules []NatOutgoingPolicyRule `json:"natOutgoingPolicyRules,omitempty"`

	U2OInterconnectionIP    string `json:"u2oInterconnectionIP,omitempty"`
	U2OInterconnection      bool   `json:"u2oInterconnection,omitempty"`
	EnableLb                *bool  `json:"enableLb,omitempty"`
	EnableEcmp              bool   `json:"enableEcmp,omitempty"`
	EnableMulticastSnoop    bool   `json:"enableMulticastSnoop,omitempty"`
	EnableExternalLBAddress bool   `json:"enableExternalLBAddress,omitempty"`

	RouteTable         string                 `json:"routeTable,omitempty"`
	NamespaceSelectors []metav1.LabelSelector `json:"namespaceSelectors,omitempty"`
}

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 {
	// Conditions represents the latest state of the object
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`

	V4AvailableIPs         float64                       `json:"v4availableIPs"`
	V4AvailableIPRange     string                        `json:"v4availableIPrange"`
	V4UsingIPs             float64                       `json:"v4usingIPs"`
	V4UsingIPRange         string                        `json:"v4usingIPrange"`
	V6AvailableIPs         float64                       `json:"v6availableIPs"`
	V6AvailableIPRange     string                        `json:"v6availableIPrange"`
	V6UsingIPs             float64                       `json:"v6usingIPs"`
	V6UsingIPRange         string                        `json:"v6usingIPrange"`
	ActivateGateway        string                        `json:"activateGateway"`
	DHCPv4OptionsUUID      string                        `json:"dhcpV4OptionsUUID"`
	DHCPv6OptionsUUID      string                        `json:"dhcpV6OptionsUUID"`
	U2OInterconnectionIP   string                        `json:"u2oInterconnectionIP"`
	U2OInterconnectionMAC  string                        `json:"u2oInterconnectionMAC"`
	U2OInterconnectionVPC  string                        `json:"u2oInterconnectionVPC"`
	NatOutgoingPolicyRules []NatOutgoingPolicyRuleStatus `json:"natOutgoingPolicyRules"`
	McastQuerierIP         string                        `json:"mcastQuerierIP"`
	McastQuerierMAC        string                        `json:"mcastQuerierMAC"`
}

func (*SubnetStatus) Bytes

func (s *SubnetStatus) Bytes() ([]byte, error)

func (*SubnetStatus) ClearAllConditions

func (s *SubnetStatus) ClearAllConditions()

ClearAllConditions updates or creates a new condition

func (*SubnetStatus) ClearCondition

func (s *SubnetStatus) ClearCondition(ctype ConditionType, reason, message string)

ClearCondition updates or creates a new condition

func (*SubnetStatus) ClearError

func (s *SubnetStatus) ClearError()

ClearError - shortcut to set error condition

func (*SubnetStatus) ConditionReason

func (s *SubnetStatus) ConditionReason(ctype ConditionType) string

ConditionReason - return condition reason

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.

func (*SubnetStatus) EnsureCondition

func (s *SubnetStatus) EnsureCondition(ctype ConditionType)

EnsureCondition useful for adding default conditions

func (*SubnetStatus) EnsureStandardConditions

func (s *SubnetStatus) EnsureStandardConditions()

EnsureStandardConditions - helper to inject standard conditions

func (*SubnetStatus) GetCondition

func (s *SubnetStatus) GetCondition(ctype ConditionType) *Condition

GetCondition get existing condition

func (*SubnetStatus) IsConditionTrue

func (s *SubnetStatus) IsConditionTrue(ctype ConditionType) bool

IsConditionTrue - if condition is true

func (*SubnetStatus) IsNotReady

func (s *SubnetStatus) IsNotReady() bool

IsNotReady returns true if ready condition is set

func (*SubnetStatus) IsNotValidated

func (s *SubnetStatus) IsNotValidated() bool

IsNotValidated returns true if ready condition is set

func (*SubnetStatus) IsReady

func (s *SubnetStatus) IsReady() bool

IsReady returns true if ready condition is set

func (*SubnetStatus) IsValidated

func (s *SubnetStatus) IsValidated() bool

IsValidated returns true if ready condition is set

func (*SubnetStatus) NotReady

func (s *SubnetStatus) NotReady(reason, message string)

NotReady - shortcut to set ready condition to false

func (*SubnetStatus) NotValidated

func (s *SubnetStatus) NotValidated(reason, message string)

NotValidated - shortcut to set validated condition to false

func (*SubnetStatus) Ready

func (s *SubnetStatus) Ready(reason, message string)

Ready - shortcut to set ready condition to true

func (*SubnetStatus) RemoveAllConditions

func (s *SubnetStatus) RemoveAllConditions()

RemoveAllConditions updates or creates a new condition

func (*SubnetStatus) RemoveCondition

func (s *SubnetStatus) RemoveCondition(ctype ConditionType)

RemoveCondition removes the condition with the provided type.

func (*SubnetStatus) SetCondition

func (s *SubnetStatus) SetCondition(ctype ConditionType, reason, message string)

SetCondition updates or creates a new condition

func (*SubnetStatus) SetError

func (s *SubnetStatus) SetError(reason, message string)

SetError - shortcut to set error condition

func (*SubnetStatus) Validated

func (s *SubnetStatus) Validated(reason, message string)

Validated - shortcut to set validated condition to true

type SwitchLBRule

type SwitchLBRule struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   SwitchLBRuleSpec   `json:"spec"`
	Status SwitchLBRuleStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced +resourceName=switch-lb-rules

func (*SwitchLBRule) DeepCopy

func (in *SwitchLBRule) DeepCopy() *SwitchLBRule

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

func (*SwitchLBRule) DeepCopyInto

func (in *SwitchLBRule) DeepCopyInto(out *SwitchLBRule)

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

func (*SwitchLBRule) DeepCopyObject

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

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

type SwitchLBRuleList

type SwitchLBRuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []SwitchLBRule `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*SwitchLBRuleList) DeepCopy

func (in *SwitchLBRuleList) DeepCopy() *SwitchLBRuleList

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

func (*SwitchLBRuleList) DeepCopyInto

func (in *SwitchLBRuleList) DeepCopyInto(out *SwitchLBRuleList)

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

func (*SwitchLBRuleList) DeepCopyObject

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

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

type SwitchLBRulePort added in v1.14.10

type SwitchLBRulePort struct {
	Name       string `json:"name"`
	Port       int32  `json:"port"`
	TargetPort int32  `json:"targetPort,omitempty"`
	Protocol   string `json:"protocol"`
}

func (*SwitchLBRulePort) DeepCopy added in v1.14.10

func (in *SwitchLBRulePort) DeepCopy() *SwitchLBRulePort

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

func (*SwitchLBRulePort) DeepCopyInto added in v1.14.10

func (in *SwitchLBRulePort) DeepCopyInto(out *SwitchLBRulePort)

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

type SwitchLBRuleSpec

type SwitchLBRuleSpec struct {
	Vip             string             `json:"vip"`
	Namespace       string             `json:"namespace"`
	Selector        []string           `json:"selector"`
	Endpoints       []string           `json:"endpoints"`
	SessionAffinity string             `json:"sessionAffinity,omitempty"`
	Ports           []SwitchLBRulePort `json:"ports"`
}

func (*SwitchLBRuleSpec) DeepCopy

func (in *SwitchLBRuleSpec) DeepCopy() *SwitchLBRuleSpec

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

func (*SwitchLBRuleSpec) DeepCopyInto

func (in *SwitchLBRuleSpec) DeepCopyInto(out *SwitchLBRuleSpec)

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

type SwitchLBRuleStatus

type SwitchLBRuleStatus struct {
	// Conditions represents the latest state of the object
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`

	Ports   string `json:"ports" patchStrategy:"merge"`
	Service string `json:"service" patchStrategy:"merge"`
}

func (*SwitchLBRuleStatus) DeepCopy

func (in *SwitchLBRuleStatus) DeepCopy() *SwitchLBRuleStatus

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

func (*SwitchLBRuleStatus) DeepCopyInto

func (in *SwitchLBRuleStatus) DeepCopyInto(out *SwitchLBRuleStatus)

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

type Vip

type Vip struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   VipSpec   `json:"spec"`
	Status VipStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced

func (*Vip) DeepCopy

func (in *Vip) DeepCopy() *Vip

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

func (*Vip) DeepCopyInto

func (in *Vip) DeepCopyInto(out *Vip)

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

func (*Vip) DeepCopyObject

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

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

type VipList

type VipList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Vip `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*VipList) DeepCopy

func (in *VipList) DeepCopy() *VipList

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

func (*VipList) DeepCopyInto

func (in *VipList) DeepCopyInto(out *VipList)

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

func (*VipList) DeepCopyObject

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

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

type VipSpec

type VipSpec struct {
	Namespace string `json:"namespace"`
	Subnet    string `json:"subnet"`
	Type      string `json:"type"`
	// usage type: switch lb vip, allowed address pair vip by default
	V4ip          string   `json:"v4ip"`
	V6ip          string   `json:"v6ip"`
	MacAddress    string   `json:"macAddress"`
	Selector      []string `json:"selector"`
	AttachSubnets []string `json:"attachSubnets"`
}

func (*VipSpec) DeepCopy

func (in *VipSpec) DeepCopy() *VipSpec

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

func (*VipSpec) DeepCopyInto

func (in *VipSpec) DeepCopyInto(out *VipSpec)

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

type VipStatus

type VipStatus struct {
	// Conditions represents the latest state of the object
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`

	Type string `json:"type"`
	V4ip string `json:"v4ip" patchStrategy:"merge"`
	V6ip string `json:"v6ip" patchStrategy:"merge"`
	Mac  string `json:"mac" patchStrategy:"merge"`
}

func (*VipStatus) Bytes

func (s *VipStatus) Bytes() ([]byte, error)

func (*VipStatus) DeepCopy

func (in *VipStatus) DeepCopy() *VipStatus

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

func (*VipStatus) DeepCopyInto

func (in *VipStatus) DeepCopyInto(out *VipStatus)

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

type Vlan

type Vlan struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   VlanSpec   `json:"spec"`
	Status VlanStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced

func (*Vlan) DeepCopy

func (in *Vlan) DeepCopy() *Vlan

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

func (*Vlan) DeepCopyInto

func (in *Vlan) DeepCopyInto(out *Vlan)

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

func (*Vlan) DeepCopyObject

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

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

type VlanList

type VlanList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Vlan `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*VlanList) DeepCopy

func (in *VlanList) DeepCopy() *VlanList

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

func (*VlanList) DeepCopyInto

func (in *VlanList) DeepCopyInto(out *VlanList)

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

func (*VlanList) DeepCopyObject

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

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

type VlanSpec

type VlanSpec struct {
	// deprecated fields, use ID & Provider instead
	VlanID                int    `json:"vlanId,omitempty"`
	ProviderInterfaceName string `json:"providerInterfaceName,omitempty"`

	ID       int    `json:"id"`
	Provider string `json:"provider,omitempty"`
}

func (*VlanSpec) DeepCopy

func (in *VlanSpec) DeepCopy() *VlanSpec

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

func (*VlanSpec) DeepCopyInto

func (in *VlanSpec) DeepCopyInto(out *VlanSpec)

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

type VlanStatus

type VlanStatus struct {
	// +optional
	// +patchStrategy=merge
	Subnets []string `json:"subnets,omitempty"`

	Conflict bool `json:"conflict,omitempty"`

	// Conditions represents the latest state of the object
	// +optional
	Conditions []Condition `json:"conditions,omitempty"`
}

func (*VlanStatus) DeepCopy

func (in *VlanStatus) DeepCopy() *VlanStatus

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

func (*VlanStatus) DeepCopyInto

func (in *VlanStatus) DeepCopyInto(out *VlanStatus)

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

func (*VlanStatus) SetVlanCondition

func (v *VlanStatus) SetVlanCondition(ctype ConditionType, reason, message string)

SetVlanCondition updates or creates a new condition

func (*VlanStatus) SetVlanError

func (v *VlanStatus) SetVlanError(reason, message string)

SetVlanError - shortcut to set error condition

type Vpc

type Vpc struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   VpcSpec   `json:"spec"`
	Status VpcStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced

func (*Vpc) DeepCopy

func (in *Vpc) DeepCopy() *Vpc

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

func (*Vpc) DeepCopyInto

func (in *Vpc) DeepCopyInto(out *Vpc)

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

func (*Vpc) DeepCopyObject

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

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

type VpcBgpSpeaker

type VpcBgpSpeaker struct {
	Enabled               bool            `json:"enabled"`
	ASN                   uint32          `json:"asn"`
	RemoteASN             uint32          `json:"remoteAsn"`
	Neighbors             []string        `json:"neighbors"`
	HoldTime              metav1.Duration `json:"holdTime"`
	RouterID              string          `json:"routerId"`
	Password              string          `json:"password"`
	EnableGracefulRestart bool            `json:"enableGracefulRestart"`
	ExtraArgs             []string        `json:"extraArgs"`
}

func (*VpcBgpSpeaker) DeepCopy

func (in *VpcBgpSpeaker) DeepCopy() *VpcBgpSpeaker

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

func (*VpcBgpSpeaker) DeepCopyInto

func (in *VpcBgpSpeaker) DeepCopyInto(out *VpcBgpSpeaker)

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

type VpcDNSSpec

type VpcDNSSpec struct {
	Replicas int32  `json:"replicas"`
	Vpc      string `json:"vpc"`
	Subnet   string `json:"subnet"`
}

func (*VpcDNSSpec) DeepCopy

func (in *VpcDNSSpec) DeepCopy() *VpcDNSSpec

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

func (*VpcDNSSpec) DeepCopyInto

func (in *VpcDNSSpec) DeepCopyInto(out *VpcDNSSpec)

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

type VpcDNSStatus

type VpcDNSStatus struct {
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`

	Active bool `json:"active" patchStrategy:"merge"`
}

func (*VpcDNSStatus) DeepCopy

func (in *VpcDNSStatus) DeepCopy() *VpcDNSStatus

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

func (*VpcDNSStatus) DeepCopyInto

func (in *VpcDNSStatus) DeepCopyInto(out *VpcDNSStatus)

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

type VpcDns

type VpcDns struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   VpcDNSSpec   `json:"spec"`
	Status VpcDNSStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced +resourceName=vpc-dnses

func (*VpcDns) DeepCopy

func (in *VpcDns) DeepCopy() *VpcDns

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

func (*VpcDns) DeepCopyInto

func (in *VpcDns) DeepCopyInto(out *VpcDns)

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

func (*VpcDns) DeepCopyObject

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

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

type VpcDnsList

type VpcDnsList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []VpcDns `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*VpcDnsList) DeepCopy

func (in *VpcDnsList) DeepCopy() *VpcDnsList

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

func (*VpcDnsList) DeepCopyInto

func (in *VpcDnsList) DeepCopyInto(out *VpcDnsList)

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

func (*VpcDnsList) DeepCopyObject

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

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

type VpcEgressGateway added in v1.14.10

type VpcEgressGateway struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   VpcEgressGatewaySpec   `json:"spec"`
	Status VpcEgressGatewayStatus `json:"status"`
}

+genclient +genclient:method=GetScale,verb=get,subresource=scale,result=k8s.io/api/autoscaling/v1.Scale +genclient:method=UpdateScale,verb=update,subresource=scale,input=k8s.io/api/autoscaling/v1.Scale,result=k8s.io/api/autoscaling/v1.Scale +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +resourceName=vpc-egress-gateways vpc egress gateway is used to forward the egress traffic from the VPC to the external network

func (*VpcEgressGateway) DeepCopy added in v1.14.10

func (in *VpcEgressGateway) DeepCopy() *VpcEgressGateway

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

func (*VpcEgressGateway) DeepCopyInto added in v1.14.10

func (in *VpcEgressGateway) DeepCopyInto(out *VpcEgressGateway)

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

func (*VpcEgressGateway) DeepCopyObject added in v1.14.10

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

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

func (*VpcEgressGateway) Ready added in v1.14.10

func (g *VpcEgressGateway) Ready() bool

Ready returns true if the VpcEgressGateway has been processed successfully and is ready to serve traffic

func (*VpcEgressGateway) VPC added in v1.14.10

func (g *VpcEgressGateway) VPC(defaultVPC string) string

VPC returns the VPC name If the VpcEgressGateway has no VPC specified in the spec, it will return the default VPC name

type VpcEgressGatewayBFDConfig added in v1.14.10

type VpcEgressGatewayBFDConfig struct {
	// whether to enable BFD
	// if set to true, the egress gateway will establish BFD session(s) with the VPC BFD LRP
	// the VPC's .spec.bfd.enabled must be set to true to enable BFD
	Enabled bool `json:"enabled"`
	// optional BFD minRX/minTX/multiplier
	MinRX      int32 `json:"minRX,omitempty"`
	MinTX      int32 `json:"minTX,omitempty"`
	Multiplier int32 `json:"multiplier,omitempty"`
}

func (*VpcEgressGatewayBFDConfig) DeepCopy added in v1.14.10

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

func (*VpcEgressGatewayBFDConfig) DeepCopyInto added in v1.14.10

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

type VpcEgressGatewayList added in v1.14.10

type VpcEgressGatewayList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []VpcEgressGateway `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*VpcEgressGatewayList) DeepCopy added in v1.14.10

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

func (*VpcEgressGatewayList) DeepCopyInto added in v1.14.10

func (in *VpcEgressGatewayList) DeepCopyInto(out *VpcEgressGatewayList)

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

func (*VpcEgressGatewayList) DeepCopyObject added in v1.14.10

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

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

type VpcEgressGatewayNodeSelector added in v1.14.10

type VpcEgressGatewayNodeSelector struct {
	MatchLabels      map[string]string                `json:"matchLabels,omitempty"`
	MatchExpressions []corev1.NodeSelectorRequirement `json:"matchExpressions,omitempty"`
	MatchFields      []corev1.NodeSelectorRequirement `json:"matchFields,omitempty"`
}

func (*VpcEgressGatewayNodeSelector) DeepCopy added in v1.14.10

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

func (*VpcEgressGatewayNodeSelector) DeepCopyInto added in v1.14.10

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

type VpcEgressGatewayPolicy added in v1.14.10

type VpcEgressGatewayPolicy struct {
	// whether to enable SNAT/MASQUERADE for the egress traffic
	SNAT bool `json:"snat"`
	// CIDRs/subnets targeted by the egress traffic policy
	IPBlocks []string `json:"ipBlocks,omitempty"`
	Subnets  []string `json:"subnets,omitempty"`
}

func (*VpcEgressGatewayPolicy) DeepCopy added in v1.14.10

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

func (*VpcEgressGatewayPolicy) DeepCopyInto added in v1.14.10

func (in *VpcEgressGatewayPolicy) DeepCopyInto(out *VpcEgressGatewayPolicy)

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

type VpcEgressGatewaySelector added in v1.14.10

type VpcEgressGatewaySelector struct {
	NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty"`
	PodSelector       *metav1.LabelSelector `json:"podSelector,omitempty"`
}

func (*VpcEgressGatewaySelector) DeepCopy added in v1.14.10

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

func (*VpcEgressGatewaySelector) DeepCopyInto added in v1.14.10

func (in *VpcEgressGatewaySelector) DeepCopyInto(out *VpcEgressGatewaySelector)

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

type VpcEgressGatewaySpec added in v1.14.10

type VpcEgressGatewaySpec struct {
	// optional VPC name
	// if not specified, the default VPC will be used
	VPC string `json:"vpc,omitempty"`
	// workload replicas
	Replicas int32 `json:"replicas,omitempty"`
	// optional name prefix used to generate the workload
	// the workload name will be generated as <prefix><vpc-egress-gateway-name>
	Prefix string `json:"prefix,omitempty"`
	// optional image used by the workload
	// if not specified, the default image passed in by kube-ovn-controller will be used
	Image string `json:"image,omitempty"`
	// optional internal subnet used to create the workload
	// if not specified, the workload will be created in the default subnet of the VPC
	InternalSubnet string `json:"internalSubnet,omitempty"`
	// external subnet used to create the workload
	ExternalSubnet string `json:"externalSubnet"`
	// optional internal/external IPs used to create the workload
	// these IPs must be in the internal/external subnet
	// the IPs count must NOT be less than the replicas count
	InternalIPs []string `json:"internalIPs,omitempty"`
	ExternalIPs []string `json:"externalIPs,omitempty"`
	// namespace/pod selectors
	Selectors []VpcEgressGatewaySelector `json:"selectors,omitempty"`
	// optional traffic policy used to control the traffic routing
	// if not specified, the default traffic policy "Cluster" will be used
	// if set to "Local", traffic will be routed to the gateway pod/instance on the same node when available
	// currently it works only for the default vpc
	TrafficPolicy string `json:"trafficPolicy,omitempty"`

	// BFD configuration
	BFD VpcEgressGatewayBFDConfig `json:"bfd"`
	// egress policies
	// at least one policy must be specified
	Policies []VpcEgressGatewayPolicy `json:"policies,omitempty"`
	// optional node selector used to select the nodes where the workload will be running
	NodeSelector []VpcEgressGatewayNodeSelector `json:"nodeSelector,omitempty"`
}

func (*VpcEgressGatewaySpec) DeepCopy added in v1.14.10

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

func (*VpcEgressGatewaySpec) DeepCopyInto added in v1.14.10

func (in *VpcEgressGatewaySpec) DeepCopyInto(out *VpcEgressGatewaySpec)

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

type VpcEgressGatewayStatus added in v1.14.10

type VpcEgressGatewayStatus struct {
	// used by the scale subresource
	Replicas      int32  `json:"replicas,omitempty"`
	LabelSelector string `json:"labelSelector,omitempty"`

	// whether the egress gateway is ready
	Ready bool  `json:"ready"`
	Phase Phase `json:"phase"`
	// internal/external IPs used by the workload
	InternalIPs []string   `json:"internalIPs,omitempty"`
	ExternalIPs []string   `json:"externalIPs,omitempty"`
	Conditions  Conditions `json:"conditions,omitempty"`

	// workload information
	Workload VpcEgressWorkload `json:"workload"`
}

func (*VpcEgressGatewayStatus) DeepCopy added in v1.14.10

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

func (*VpcEgressGatewayStatus) DeepCopyInto added in v1.14.10

func (in *VpcEgressGatewayStatus) DeepCopyInto(out *VpcEgressGatewayStatus)

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

type VpcEgressWorkload added in v1.14.10

type VpcEgressWorkload struct {
	APIVersion string `json:"apiVersion,omitempty"`
	Kind       string `json:"kind,omitempty"`
	Name       string `json:"name,omitempty"`
	// nodes where the workload is running
	Nodes []string `json:"nodes,omitempty"`
}

func (*VpcEgressWorkload) DeepCopy added in v1.14.10

func (in *VpcEgressWorkload) DeepCopy() *VpcEgressWorkload

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

func (*VpcEgressWorkload) DeepCopyInto added in v1.14.10

func (in *VpcEgressWorkload) DeepCopyInto(out *VpcEgressWorkload)

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

type VpcList

type VpcList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Vpc `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*VpcList) DeepCopy

func (in *VpcList) DeepCopy() *VpcList

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

func (*VpcList) DeepCopyInto

func (in *VpcList) DeepCopyInto(out *VpcList)

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

func (*VpcList) DeepCopyObject

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

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

type VpcNatGateway

type VpcNatGateway struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   VpcNatGatewaySpec   `json:"spec"`
	Status VpcNatGatewayStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced +resourceName=vpc-nat-gateways

func (*VpcNatGateway) DeepCopy

func (in *VpcNatGateway) DeepCopy() *VpcNatGateway

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

func (*VpcNatGateway) DeepCopyInto

func (in *VpcNatGateway) DeepCopyInto(out *VpcNatGateway)

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

func (*VpcNatGateway) DeepCopyObject

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

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

type VpcNatGatewayList

type VpcNatGatewayList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []VpcNatGateway `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*VpcNatGatewayList) DeepCopy

func (in *VpcNatGatewayList) DeepCopy() *VpcNatGatewayList

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

func (*VpcNatGatewayList) DeepCopyInto

func (in *VpcNatGatewayList) DeepCopyInto(out *VpcNatGatewayList)

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

func (*VpcNatGatewayList) DeepCopyObject

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

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

type VpcNatGatewaySpec added in v1.14.10

type VpcNatGatewaySpec struct {
	Vpc             string              `json:"vpc"`
	Subnet          string              `json:"subnet"`
	ExternalSubnets []string            `json:"externalSubnets"`
	LanIP           string              `json:"lanIp"`
	Selector        []string            `json:"selector"`
	Tolerations     []corev1.Toleration `json:"tolerations"`
	Affinity        corev1.Affinity     `json:"affinity"`
	QoSPolicy       string              `json:"qosPolicy"`
	BgpSpeaker      VpcBgpSpeaker       `json:"bgpSpeaker"`
}

func (*VpcNatGatewaySpec) DeepCopy added in v1.14.10

func (in *VpcNatGatewaySpec) DeepCopy() *VpcNatGatewaySpec

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

func (*VpcNatGatewaySpec) DeepCopyInto added in v1.14.10

func (in *VpcNatGatewaySpec) DeepCopyInto(out *VpcNatGatewaySpec)

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

type VpcNatGatewayStatus added in v1.14.10

type VpcNatGatewayStatus struct {
	QoSPolicy       string              `json:"qosPolicy" patchStrategy:"merge"`
	ExternalSubnets []string            `json:"externalSubnets" patchStrategy:"merge"`
	Selector        []string            `json:"selector" patchStrategy:"merge"`
	Tolerations     []corev1.Toleration `json:"tolerations" patchStrategy:"merge"`
	Affinity        corev1.Affinity     `json:"affinity" patchStrategy:"merge"`
}

func (*VpcNatGatewayStatus) Bytes added in v1.14.10

func (s *VpcNatGatewayStatus) Bytes() ([]byte, error)

func (*VpcNatGatewayStatus) DeepCopy added in v1.14.10

func (in *VpcNatGatewayStatus) DeepCopy() *VpcNatGatewayStatus

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

func (*VpcNatGatewayStatus) DeepCopyInto added in v1.14.10

func (in *VpcNatGatewayStatus) DeepCopyInto(out *VpcNatGatewayStatus)

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

type VpcPeering

type VpcPeering struct {
	RemoteVpc      string `json:"remoteVpc,omitempty"`
	LocalConnectIP string `json:"localConnectIP,omitempty"`
}

func (*VpcPeering) DeepCopy

func (in *VpcPeering) DeepCopy() *VpcPeering

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

func (*VpcPeering) DeepCopyInto

func (in *VpcPeering) DeepCopyInto(out *VpcPeering)

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

type VpcSpec

type VpcSpec struct {
	DefaultSubnet string         `json:"defaultSubnet,omitempty"`
	Namespaces    []string       `json:"namespaces,omitempty"`
	StaticRoutes  []*StaticRoute `json:"staticRoutes,omitempty"`
	PolicyRoutes  []*PolicyRoute `json:"policyRoutes,omitempty"`
	VpcPeerings   []*VpcPeering  `json:"vpcPeerings,omitempty"`

	EnableExternal bool `json:"enableExternal,omitempty"`

	ExtraExternalSubnets []string `json:"extraExternalSubnets,omitempty"`

	EnableBfd bool `json:"enableBfd,omitempty"`

	// optional BFD LRP configuration
	// currently the LRP is used for vpc external gateway only
	BFDPort *BFDPort `json:"bfdPort"`
}

func (*VpcSpec) DeepCopy

func (in *VpcSpec) DeepCopy() *VpcSpec

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

func (*VpcSpec) DeepCopyInto

func (in *VpcSpec) DeepCopyInto(out *VpcSpec)

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

type VpcStatus

type VpcStatus struct {
	// Conditions represents the latest state of the object
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`

	Standby                 bool     `json:"standby"`
	Default                 bool     `json:"default"`
	DefaultLogicalSwitch    string   `json:"defaultLogicalSwitch"`
	Router                  string   `json:"router"`
	TCPLoadBalancer         string   `json:"tcpLoadBalancer"`
	UDPLoadBalancer         string   `json:"udpLoadBalancer"`
	SctpLoadBalancer        string   `json:"sctpLoadBalancer"`
	TCPSessionLoadBalancer  string   `json:"tcpSessionLoadBalancer"`
	UDPSessionLoadBalancer  string   `json:"udpSessionLoadBalancer"`
	SctpSessionLoadBalancer string   `json:"sctpSessionLoadBalancer"`
	Subnets                 []string `json:"subnets"`
	VpcPeerings             []string `json:"vpcPeerings"`
	EnableExternal          bool     `json:"enableExternal"`
	ExtraExternalSubnets    []string `json:"extraExternalSubnets"`
	EnableBfd               bool     `json:"enableBfd"`

	BFDPort BFDPortStatus `json:"bfdPort"`
}

func (*VpcStatus) Bytes

func (s *VpcStatus) Bytes() ([]byte, error)

func (*VpcStatus) DeepCopy

func (in *VpcStatus) DeepCopy() *VpcStatus

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

func (*VpcStatus) DeepCopyInto

func (in *VpcStatus) DeepCopyInto(out *VpcStatus)

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