dependency

package
v3.29.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// dogus that are no longer supported in k8s CES LOP
	LegacyDoguNginx       = "nginx"
	LegacyDoguRegistrator = "registrator"
	// dogus that migrated from dogu to components
	ComponentDoguCas     = "cas"
	ComponentDoguPostfix = "postfix"
)

dogus with special validation treatment

View Source
const K8sDoguOperatorClientDependencyName = "k8s-dogu-operator"

Variables

This section is empty.

Functions

This section is empty.

Types

type CompositeDependencyValidator

type CompositeDependencyValidator struct {
	Validators []DependencyValidator `json:"validators"`
}

CompositeDependencyValidator is a composite validator responsible to validate the dogu and client dependencies of dogus.

func (*CompositeDependencyValidator) ValidateDependencies

func (dv *CompositeDependencyValidator) ValidateDependencies(ctx context.Context, dogu *core.Dogu) error

ValidateDependencies validates all kinds of dependencies for dogus. An error is returned when any invalid dependencies were detected.

type DependencyValidator

type DependencyValidator interface {
	ValidateAllDependencies(ctx context.Context, dogu *core.Dogu) error
}

DependencyValidator is responsible to validate the dependencies of a dogu

type Validator added in v3.14.0

type Validator interface {
	// ValidateDependencies is used to check if dogu dependencies are installed.
	ValidateDependencies(ctx context.Context, dogu *cesappcore.Dogu) error
}

Validator checks if all necessary dependencies of the dogu are installed.

func NewCompositeDependencyValidator

func NewCompositeDependencyValidator(operatorConfig *config.OperatorConfig, doguFetcher cesregistry.LocalDoguFetcher) Validator

NewCompositeDependencyValidator create a new composite validator checking the dogu and client dependencies

Jump to

Keyboard shortcuts

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