v1alpha1

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the networking v1alpha1 API group +kubebuilder:object:generate=true +groupName=networking.k8s.aws

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "networking.k8s.aws", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type EndpointInfo

type EndpointInfo struct {
	// CIDR is the network address(s) of the endpoint
	CIDR NetworkAddress `json:"cidr"`

	// Except is the exceptions to the CIDR ranges mentioned above.
	Except []NetworkAddress `json:"except,omitempty"`

	// Ports is the list of ports
	Ports []Port `json:"ports,omitempty"`
}

EndpointInfo defines the network endpoint information for the policy ingress/egress

func (*EndpointInfo) DeepCopy

func (in *EndpointInfo) DeepCopy() *EndpointInfo

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

func (*EndpointInfo) DeepCopyInto

func (in *EndpointInfo) DeepCopyInto(out *EndpointInfo)

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

type NetworkAddress

type NetworkAddress string

type PodEndpoint

type PodEndpoint struct {
	// HostIP is the IP address of the host the pod is currently running on
	HostIP NetworkAddress `json:"hostIP"`
	// PodIP is the IP address of the pod
	PodIP NetworkAddress `json:"podIP"`
	// Name is the pod name
	Name string `json:"name"`
	// Namespace is the pod namespace
	Namespace string `json:"namespace"`
}

PodEndpoint defines the summary information for the pods

func (*PodEndpoint) DeepCopy

func (in *PodEndpoint) DeepCopy() *PodEndpoint

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

func (*PodEndpoint) DeepCopyInto

func (in *PodEndpoint) DeepCopyInto(out *PodEndpoint)

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

type PolicyEndpoint

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

	Spec   PolicyEndpointSpec   `json:"spec,omitempty"`
	Status PolicyEndpointStatus `json:"status,omitempty"`
}

PolicyEndpoint is the Schema for the policyendpoints API

func (*PolicyEndpoint) DeepCopy

func (in *PolicyEndpoint) DeepCopy() *PolicyEndpoint

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

func (*PolicyEndpoint) DeepCopyInto

func (in *PolicyEndpoint) DeepCopyInto(out *PolicyEndpoint)

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

func (*PolicyEndpoint) DeepCopyObject

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

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

type PolicyEndpointList

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

PolicyEndpointList contains a list of PolicyEndpoint

func (*PolicyEndpointList) DeepCopy

func (in *PolicyEndpointList) DeepCopy() *PolicyEndpointList

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

func (*PolicyEndpointList) DeepCopyInto

func (in *PolicyEndpointList) DeepCopyInto(out *PolicyEndpointList)

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

func (*PolicyEndpointList) DeepCopyObject

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

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

type PolicyEndpointSpec

type PolicyEndpointSpec struct {
	// PodSelector is the podSelector from the policy resource
	PodSelector *metav1.LabelSelector `json:"podSelector,omitempty"`

	// PolicyRef is a reference to the Kubernetes NetworkPolicy resource.
	PolicyRef PolicyReference `json:"policyRef"`

	// PodIsolation specifies whether the pod needs to be isolated for a
	// particular traffic direction Ingress or Egress, or both. If default isolation is not
	// specified, and there are no ingress/egress rules, then the pod is not isolated
	// from the point of view of this policy. This follows the NetworkPolicy spec.PolicyTypes.
	PodIsolation []networking.PolicyType `json:"podIsolation,omitempty"`

	// PodSelectorEndpoints contains information about the pods
	// matching the podSelector
	PodSelectorEndpoints []PodEndpoint `json:"podSelectorEndpoints,omitempty"`

	// Ingress is the list of ingress rules containing resolved network addresses
	Ingress []EndpointInfo `json:"ingress,omitempty"`

	// Egress is the list of egress rules containing resolved network addresses
	Egress []EndpointInfo `json:"egress,omitempty"`
}

PolicyEndpointSpec defines the desired state of PolicyEndpoint

func (*PolicyEndpointSpec) DeepCopy

func (in *PolicyEndpointSpec) DeepCopy() *PolicyEndpointSpec

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

func (*PolicyEndpointSpec) DeepCopyInto

func (in *PolicyEndpointSpec) DeepCopyInto(out *PolicyEndpointSpec)

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

type PolicyEndpointStatus

type PolicyEndpointStatus struct {
}

PolicyEndpointStatus defines the observed state of PolicyEndpoint

func (*PolicyEndpointStatus) DeepCopy

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

func (*PolicyEndpointStatus) DeepCopyInto

func (in *PolicyEndpointStatus) DeepCopyInto(out *PolicyEndpointStatus)

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

type PolicyReference

type PolicyReference struct {
	// Name is the name of the Policy
	Name string `json:"name"`

	// Namespace is the namespace of the Policy
	Namespace string `json:"namespace"`
}

PolicyReference is the reference to the network policy resource

func (*PolicyReference) DeepCopy

func (in *PolicyReference) DeepCopy() *PolicyReference

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

func (*PolicyReference) DeepCopyInto

func (in *PolicyReference) DeepCopyInto(out *PolicyReference)

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

type Port

type Port struct {
	// Protocol specifies the transport protocol, default TCP
	Protocol *corev1.Protocol `json:"protocol,omitempty"`

	// Port specifies the numerical port for the protocol. If empty applies to all ports
	Port *int32 `json:"port,omitempty"`

	// Endport specifies the port range port to endPort
	// port must be defined and an integer, endPort > port
	EndPort *int32 `json:"endPort,omitempty"`
}

Port contains information about the transport port/protocol

func (*Port) DeepCopy

func (in *Port) DeepCopy() *Port

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

func (*Port) DeepCopyInto

func (in *Port) DeepCopyInto(out *Port)

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