k8s

package
v0.0.0-...-a894687 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// K8sMeshDefaultsGenerated identifies that default resources for mesh were successfully generated
	K8sMeshDefaultsGenerated = "k8s.dubbo.io/mesh-defaults-generated"

	// Kubernetes secret type to differentiate dubbo System secrets. Secret is bound to a mesh
	MeshSecretType = "system.dubbo.io/secret" // #nosec G101 -- This is the name not the value

	// Kubernetes secret type to differentiate dubbo System secrets. Secret is bound to a control plane
	GlobalSecretType = "system.dubbo.io/global-secret" // #nosec G101 -- This is the name not the value
)

Variables

This section is empty.

Functions

func ResourceNameExtensions

func ResourceNameExtensions(namespace, name string) core_model.ResourceNameExtensions

Types

type AdmissionValidator

type AdmissionValidator interface {
	webhook.AdmissionHandler
	InjectDecoder(d admission.Decoder)
	Supports(admission.Request) bool
}

type CompositeValidator

type CompositeValidator struct {
	Validators []AdmissionValidator
}

func (*CompositeValidator) AddValidator

func (c *CompositeValidator) AddValidator(validator AdmissionValidator)

func (*CompositeValidator) IntoWebhook

func (c *CompositeValidator) IntoWebhook(scheme *runtime.Scheme) *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