v1alpha1

package
v2.12.4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true

Index

Constants

View Source
const (
	MeshTLSType model.ResourceType = "MeshTLS"
)

Variables

View Source
var MeshTLSResourceTypeDescriptor = model.ResourceTypeDescriptor{
	Name:                         MeshTLSType,
	Resource:                     NewMeshTLSResource(),
	ResourceList:                 &MeshTLSResourceList{},
	Scope:                        model.ScopeMesh,
	KDSFlags:                     model.GlobalToZonesFlag | model.ZoneToGlobalFlag | model.SyncedAcrossZonesFlag,
	WsPath:                       "meshtlses",
	KumactlArg:                   "meshtls",
	KumactlListArg:               "meshtlses",
	AllowToInspect:               true,
	IsPolicy:                     true,
	IsDestination:                false,
	IsExperimental:               false,
	SingularDisplayName:          "Mesh TLS",
	PluralDisplayName:            "Mesh TLSes",
	IsPluginOriginated:           true,
	IsTargetRefBased:             true,
	HasToTargetRef:               false,
	HasFromTargetRef:             true,
	HasRulesTargetRef:            true,
	HasStatus:                    false,
	AllowedOnSystemNamespaceOnly: false,
	IsReferenceableInTo:          false,
	ShortName:                    "mtls",
	IsFromAsRules:                true,
}

Functions

This section is empty.

Types

type Conf

type Conf struct {
	// Version section for providing version specification.
	TlsVersion *common_tls.Version `json:"tlsVersion,omitempty"`

	// TlsCiphers section for providing ciphers specification.
	TlsCiphers *[]common_tls.TlsCipher `json:"tlsCiphers,omitempty"`

	// Mode defines the behavior of inbound listeners with regard to traffic encryption.
	Mode *Mode `json:"mode,omitempty"`
}

func (*Conf) DeepCopy

func (in *Conf) DeepCopy() *Conf

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

func (*Conf) DeepCopyInto

func (in *Conf) DeepCopyInto(out *Conf)

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

type From

type From struct {
	// TargetRef is a reference to the resource that represents a group of
	// clients.
	TargetRef common_api.TargetRef `json:"targetRef"`
	// Default is a configuration specific to the group of clients referenced in
	// 'targetRef'
	Default Conf `json:"default,omitempty"`
}

func (*From) DeepCopy

func (in *From) DeepCopy() *From

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

func (*From) DeepCopyInto

func (in *From) DeepCopyInto(out *From)

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

func (*From) GetDefault

func (x *From) GetDefault() interface{}

func (*From) GetTargetRef

func (x *From) GetTargetRef() common_api.TargetRef

type MeshTLS

type MeshTLS struct {
	// TargetRef is a reference to the resource the policy takes an effect on.
	// The resource could be either a real store object or virtual resource
	// defined in-place.
	TargetRef *common_api.TargetRef `json:"targetRef,omitempty"`
	// From list makes a match between clients and corresponding configurations
	From *[]From `json:"from,omitempty"`
	// Rules defines inbound tls configurations. Currently limited to
	// selecting all inbound traffic, as L7 matching is not yet implemented.
	Rules *[]Rule `json:"rules,omitempty"`
}

MeshTLS +kuma:policy:singular_display_name=Mesh TLS +kuma:policy:is_from_as_rules=true

func (*MeshTLS) DeepCopy

func (in *MeshTLS) DeepCopy() *MeshTLS

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

func (*MeshTLS) DeepCopyInto

func (in *MeshTLS) DeepCopyInto(out *MeshTLS)

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

func (*MeshTLS) GetFromList

func (x *MeshTLS) GetFromList() []core_model.PolicyItem

func (*MeshTLS) GetRules

func (x *MeshTLS) GetRules() []inbound.RuleEntry

func (*MeshTLS) GetTargetRef

func (x *MeshTLS) GetTargetRef() common_api.TargetRef

type MeshTLSResource

type MeshTLSResource struct {
	Meta model.ResourceMeta
	Spec *MeshTLS
}

func NewMeshTLSResource

func NewMeshTLSResource() *MeshTLSResource

func (*MeshTLSResource) Deprecations

func (t *MeshTLSResource) Deprecations() []string

func (*MeshTLSResource) Descriptor

func (*MeshTLSResource) GetMeta

func (t *MeshTLSResource) GetMeta() model.ResourceMeta

func (*MeshTLSResource) GetSpec

func (t *MeshTLSResource) GetSpec() model.ResourceSpec

func (*MeshTLSResource) GetStatus

func (t *MeshTLSResource) GetStatus() model.ResourceStatus

func (*MeshTLSResource) SetMeta

func (t *MeshTLSResource) SetMeta(m model.ResourceMeta)

func (*MeshTLSResource) SetSpec

func (t *MeshTLSResource) SetSpec(spec model.ResourceSpec) error

func (*MeshTLSResource) SetStatus

func (t *MeshTLSResource) SetStatus(model.ResourceStatus) error

func (*MeshTLSResource) Validate

func (t *MeshTLSResource) Validate() error

type MeshTLSResourceList

type MeshTLSResourceList struct {
	Items      []*MeshTLSResource
	Pagination model.Pagination
}

func (*MeshTLSResourceList) AddItem

func (l *MeshTLSResourceList) AddItem(r model.Resource) error

func (*MeshTLSResourceList) GetItemType

func (l *MeshTLSResourceList) GetItemType() model.ResourceType

func (*MeshTLSResourceList) GetItems

func (l *MeshTLSResourceList) GetItems() []model.Resource

func (*MeshTLSResourceList) GetPagination

func (l *MeshTLSResourceList) GetPagination() *model.Pagination

func (*MeshTLSResourceList) NewItem

func (l *MeshTLSResourceList) NewItem() model.Resource

func (*MeshTLSResourceList) SetPagination

func (l *MeshTLSResourceList) SetPagination(p model.Pagination)

type Mode

type Mode string

+kubebuilder:validation:Enum=Permissive;Strict

const (
	ModeStrict     Mode = "Strict"
	ModePermissive Mode = "Permissive"
)

type Rule

type Rule struct {
	// Default contains configuration of the inbound tls
	Default Conf `json:"default,omitempty"`
}

func (*Rule) DeepCopy

func (in *Rule) DeepCopy() *Rule

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

func (*Rule) DeepCopyInto

func (in *Rule) DeepCopyInto(out *Rule)

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

func (*Rule) GetDefault

func (x *Rule) GetDefault() interface{}

Jump to

Keyboard shortcuts

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