v1beta2

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Overview

Package v1beta1 contains API Schema definitions for the tenet v1beta1 API group +kubebuilder:object:generate=true +groupName=tenet.cybozu.io

Index

Constants

View Source
const (
	NetworkPolicyAdmissionRuleOK NetworkPolicyAdmissionRuleStatus = "ok"

	NetworkPolicyAdmissionRuleTypeAll     NetworkPolicyAdmissionRuleType = "all"
	NetworkPolicyAdmissionRuleTypeEgress  NetworkPolicyAdmissionRuleType = "egress"
	NetworkPolicyAdmissionRuleTypeIngress NetworkPolicyAdmissionRuleType = "ingress"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "tenet.cybozu.io", Version: "v1beta2"}

	// 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

	// NetworkPolicyTemplateKind is the singular kind name for NetworkPolicyTemplates.
	NetworkPolicyTemplateKind = "NetworkPolicyTemplate"
)

Functions

This section is empty.

Types

type NetworkPolicyAdmissionRule

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

	Spec   NetworkPolicyAdmissionRuleSpec   `json:"spec"`
	Status NetworkPolicyAdmissionRuleStatus `json:"status,omitempty"`
}

NetworkPolicyAdmissionRule is the Schema for the networkpolicyadmissionrules API.

func (*NetworkPolicyAdmissionRule) DeepCopy

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

func (*NetworkPolicyAdmissionRule) DeepCopyInto

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

func (*NetworkPolicyAdmissionRule) DeepCopyObject

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

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

type NetworkPolicyAdmissionRuleForbiddenEntity added in v0.3.0

type NetworkPolicyAdmissionRuleForbiddenEntity struct {
	// Entity name.
	Entity string `json:"entity"`

	// Type of connection the rule applies to.
	// +kubebuilder:validation:Enum=egress;ingress;all
	// +default:"all"
	Type NetworkPolicyAdmissionRuleType `json:"type"`
}

NetworkPolicyAdmissionRuleForbiddenEntity defines forbidden entities.

func (*NetworkPolicyAdmissionRuleForbiddenEntity) DeepCopy added in v0.3.0

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

func (*NetworkPolicyAdmissionRuleForbiddenEntity) DeepCopyInto added in v0.3.0

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

type NetworkPolicyAdmissionRuleForbiddenIPRanges

type NetworkPolicyAdmissionRuleForbiddenIPRanges struct {
	// CIDR range.
	CIDR string `json:"cidr"`

	// Type of connection the rule applies to.
	// +kubebuilder:validation:Enum=egress;ingress;all
	// +default:"all"
	Type NetworkPolicyAdmissionRuleType `json:"type"`
}

NetworkPolicyAdmissionRuleForbiddenIPRanges defines forbidden IP ranges.

func (*NetworkPolicyAdmissionRuleForbiddenIPRanges) DeepCopy

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

func (*NetworkPolicyAdmissionRuleForbiddenIPRanges) DeepCopyInto

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

type NetworkPolicyAdmissionRuleList

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

NetworkPolicyAdmissionRuleList contains a list of NetworkPolicyAdmissionRule.

func (*NetworkPolicyAdmissionRuleList) DeepCopy

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

func (*NetworkPolicyAdmissionRuleList) DeepCopyInto

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

func (*NetworkPolicyAdmissionRuleList) DeepCopyObject

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

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

type NetworkPolicyAdmissionRuleNamespaceSelector

type NetworkPolicyAdmissionRuleNamespaceSelector struct {
	// ExcludeLabels defines labels through which a namespace should be excluded.
	ExcludeLabels map[string]string `json:"excludeLabels,omitempty"`

	// ExcludeLabelExpressions defines labels through which a namespace should be excluded by some expressions.
	ExcludeLabelExpressions []metav1.LabelSelectorRequirement `json:"excludeLabelExpressions,omitempty"`
}

NetworkPolicyAdmissionRuleNamespaceSelector defines how namespaces should be selected.

func (*NetworkPolicyAdmissionRuleNamespaceSelector) DeepCopy

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

func (*NetworkPolicyAdmissionRuleNamespaceSelector) DeepCopyInto

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

type NetworkPolicyAdmissionRuleSpec

type NetworkPolicyAdmissionRuleSpec struct {
	// NamespaceSelector qualifies which namespaces the rules should apply to.
	NamespaceSelector NetworkPolicyAdmissionRuleNamespaceSelector `json:"namespaceSelector,omitempty"`
	// ForbiddenIPRanges defines IP ranges whose usage must be forbidden in network policies.
	ForbiddenIPRanges []NetworkPolicyAdmissionRuleForbiddenIPRanges `json:"forbiddenIPRanges,omitempty"`
	// ForbiddenEntities defines entities whose usage must be forbidden in network policies.
	ForbiddenEntities []NetworkPolicyAdmissionRuleForbiddenEntity `json:"forbiddenEntities,omitempty"`
}

NetworkPolicyAdmissionRuleSpec defines the desired state of NetworkPolicyAdmissionRule.

func (*NetworkPolicyAdmissionRuleSpec) DeepCopy

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

func (*NetworkPolicyAdmissionRuleSpec) DeepCopyInto

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

type NetworkPolicyAdmissionRuleStatus

type NetworkPolicyAdmissionRuleStatus string

NetworkPolicyAdmissionRuleStatus defines the observed state of NetworkPolicyAdmissionRule.

type NetworkPolicyAdmissionRuleType

type NetworkPolicyAdmissionRuleType string

NetworkPolicyAdmissionRuleType defines the type of network connection the rules apply to.

type NetworkPolicyTemplate

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

	// Spec is the spec for the NetworkPolicyTemplate
	Spec NetworkPolicyTemplateSpec `json:"spec"`

	// Status represents the status of the NetworkPolicyTemplate
	// +optional
	Status NetworkPolicyTemplateStatus `json:"status,omitempty"`
}

NetworkPolicyTemplate is the Schema for the networkpolicytemplates API.

func (*NetworkPolicyTemplate) DeepCopy

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

func (*NetworkPolicyTemplate) DeepCopyInto

func (in *NetworkPolicyTemplate) DeepCopyInto(out *NetworkPolicyTemplate)

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

func (*NetworkPolicyTemplate) DeepCopyObject

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

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

type NetworkPolicyTemplateList

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

NetworkPolicyTemplateList contains a list of NetworkPolicyTemplate.

func (*NetworkPolicyTemplateList) DeepCopy

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

func (*NetworkPolicyTemplateList) DeepCopyInto

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

func (*NetworkPolicyTemplateList) DeepCopyObject

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

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

type NetworkPolicyTemplateSpec

type NetworkPolicyTemplateSpec struct {
	// ClusterWide indicates whether the generated templates are clusterwide templates
	//+kubebuilder:default=false
	ClusterWide bool `json:"clusterwide,omitempty"`
	// PolicyTemplate is a template for creating NetworkPolicies
	PolicyTemplate string `json:"policyTemplate"`
}

NetworkPolicyTemplateSpec defines the desired state of NetworkPolicyTemplate.

func (*NetworkPolicyTemplateSpec) DeepCopy

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

func (*NetworkPolicyTemplateSpec) DeepCopyInto

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

type NetworkPolicyTemplateStatus

type NetworkPolicyTemplateStatus string

NetworkPolicyTemplateStatus defines the observed state of NetworkPolicyTemplate +kubebuilder:validation:Enum=ok;invalid

const (
	NetworkPolicyTemplateOK      NetworkPolicyTemplateStatus = "ok"
	NetworkPolicyTemplateInvalid NetworkPolicyTemplateStatus = "invalid"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL