v1alpha1

package
v0.0.0-...-8d93ae3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the policy v1alpha1 API group +kubebuilder:object:generate=true +groupName=policy.submariner.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "policy.submariner.io", 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 MultiClusterPolicy

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

	Spec   MultiClusterPolicySpec   `json:"spec,omitempty"`
	Status MultiClusterPolicyStatus `json:"status,omitempty"`
}

MultiClusterPolicy is the Schema for the multiclusterpolicies API

func (*MultiClusterPolicy) DeepCopy

func (in *MultiClusterPolicy) DeepCopy() *MultiClusterPolicy

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

func (*MultiClusterPolicy) DeepCopyInto

func (in *MultiClusterPolicy) DeepCopyInto(out *MultiClusterPolicy)

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

func (*MultiClusterPolicy) DeepCopyObject

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

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

type MultiClusterPolicyEgressRule

type MultiClusterPolicyEgressRule struct {

	// List of destination MultiCluster Service Imports for outgoing traffic
	// of pods selected for this rule.
	// Items in this list are combined using a logical OR operation. If this field is
	// empty or missing, this rule matches all destinations (traffic not restricted by
	// destination). If this field is present and contains at least one item, this rule
	// allows traffic only if the traffic matches at least one item in the to list.
	// +optional
	To []MultiClusterPolicyPeer `json:"to,omitempty" protobuf:"bytes,2,rep,name=to"`
}

MultiClusterPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a MultiClusterPolicySpec's podSelector

func (*MultiClusterPolicyEgressRule) DeepCopy

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

func (*MultiClusterPolicyEgressRule) DeepCopyInto

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

type MultiClusterPolicyList

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

MultiClusterPolicyList contains a list of MultiClusterPolicy

func (*MultiClusterPolicyList) DeepCopy

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

func (*MultiClusterPolicyList) DeepCopyInto

func (in *MultiClusterPolicyList) DeepCopyInto(out *MultiClusterPolicyList)

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

func (*MultiClusterPolicyList) DeepCopyObject

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

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

type MultiClusterPolicyPeer

type MultiClusterPolicyPeer struct {

	// Selects Namespaces using cluster-scoped labels. This field
	// must be present
	NamespaceSelector *metav1.LabelSelector `json:"namespaceSelector,omitempty" protobuf:"bytes,2,opt,name=namespaceSelector"`

	//List of ServiceImports
	ServiceImportRefs []string `json:"serviceImportRefs,omitempty" protobuf:"bytes,2,opt,name=serviceImportRefs"`
}

MultiClusterPolicyPeer describes a peer to allow traffic to.

func (*MultiClusterPolicyPeer) DeepCopy

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

func (*MultiClusterPolicyPeer) DeepCopyInto

func (in *MultiClusterPolicyPeer) DeepCopyInto(out *MultiClusterPolicyPeer)

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

type MultiClusterPolicySpec

type MultiClusterPolicySpec struct {

	// Selects the pods to which this MultiClusterPolicy object applies.
	// This field is NOT optional and follows standard
	// label selector semantics. An empty podSelector matches all pods in this
	// namespace.
	PodSelector metav1.LabelSelector `json:"podSelector" protobuf:"bytes,1,opt,name=podSelector"`

	// List of egress rules to be applied to the selected pods.
	// +optional
	Egress []MultiClusterPolicyEgressRule `json:"egress,omitempty" protobuf:"bytes,3,rep,name=egress"`
}

MultiClusterPolicySpec defines the desired state of MultiClusterPolicy

func (*MultiClusterPolicySpec) DeepCopy

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

func (*MultiClusterPolicySpec) DeepCopyInto

func (in *MultiClusterPolicySpec) DeepCopyInto(out *MultiClusterPolicySpec)

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

type MultiClusterPolicyStatus

type MultiClusterPolicyStatus struct {

	// Boolbean flag indicates if policy is valid and applied to the data plane
	Valid bool `json:"valid,omitempty"`
}

MultiClusterPolicyStatus defines the observed state of MultiClusterPolicy

func (*MultiClusterPolicyStatus) DeepCopy

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

func (*MultiClusterPolicyStatus) DeepCopyInto

func (in *MultiClusterPolicyStatus) DeepCopyInto(out *MultiClusterPolicyStatus)

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