cli-runtimek8s.io/cli-runtime/pkg/kustomize/k8sdeps/validator Index | Files

package validator

import "k8s.io/cli-runtime/pkg/kustomize/k8sdeps/validator"

Package validator provides functions to validate labels, annotations, namespace using apimachinery

Index

Types

type KustValidator

type KustValidator struct{}

KustValidator validates Labels and annotations by apimachinery

func NewKustValidator

func NewKustValidator() *KustValidator

NewKustValidator returns a KustValidator object

func (*KustValidator) MakeAnnotationValidator

func (v *KustValidator) MakeAnnotationValidator() func(map[string]string) error

MakeAnnotationValidator returns a MapValidatorFunc using apimachinery.

func (*KustValidator) MakeLabelValidator

func (v *KustValidator) MakeLabelValidator() func(map[string]string) error

MakeLabelValidator returns a MapValidatorFunc using apimachinery.

func (*KustValidator) ValidateNamespace

func (v *KustValidator) ValidateNamespace(s string) []string

ValidateNamespace validates a string is a valid namespace using apimachinery.

Source Files

validators.go

Version
v0.17.8-rc.0
Published
Jun 17, 2020
Platform
js/wasm
Imports
5 packages
Last checked
4 seconds ago

Tools for package owners.