k8s

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// K8sMeshDefaultsGenerated identifies that default resources for mesh were successfully generated
	K8sMeshDefaultsGenerated = "k8s.kuma.io/mesh-defaults-generated"

	// Kubernetes secret type to differentiate Kuma System secrets. Secret is bound to a mesh
	MeshSecretType = "system.kuma.io/secret"

	// Kubernetes secret type to differentiate Kuma System secrets. Secret is bound to a control plane
	GlobalSecretType = "system.kuma.io/global-secret"
)

Variables

This section is empty.

Functions

func ResourceNameExtensions

func ResourceNameExtensions(namespace, name string) core_model.ResourceNameExtensions

Types

type AdmissionValidator

type AdmissionValidator interface {
	admission.DecoderInjector
	webhook.AdmissionHandler
	Supports(admission.Request) bool
}

type CompositeValidator

type CompositeValidator struct {
	Validators []AdmissionValidator
}

func (*CompositeValidator) AddValidator

func (c *CompositeValidator) AddValidator(validator AdmissionValidator)

func (*CompositeValidator) Handle

func (*CompositeValidator) InjectDecoder

func (c *CompositeValidator) InjectDecoder(d *admission.Decoder) error

func (*CompositeValidator) WebHook

func (c *CompositeValidator) WebHook() *admission.Webhook

type Converter

type Converter interface {
	ToKubernetesObject(core_model.Resource) (k8s_model.KubernetesObject, error)
	ToKubernetesList(core_model.ResourceList) (k8s_model.KubernetesList, error)
	ToCoreResource(obj k8s_model.KubernetesObject, out core_model.Resource) error
	ToCoreList(obj k8s_model.KubernetesList, out core_model.ResourceList, predicate ConverterPredicate) error
}

type ConverterPredicate

type ConverterPredicate = func(core_model.Resource) bool

Jump to

Keyboard shortcuts

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