validation

package
v6.15.6 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 15 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAppConfigMapNotFound

func IsAppConfigMapNotFound(err error) bool

IsAppConfigMapNotFound asserts appConfigMapNotFoundError.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsKubeConfigNotFound

func IsKubeConfigNotFound(err error) bool

IsKubeConfigNotFound asserts kubeConfigNotFoundError.

func IsValidationError

func IsValidationError(err error) bool

IsValidationError asserts validationError.

Types

type Config

type Config struct {
	G8sClient client.Client
	K8sClient kubernetes.Interface
	Logger    micrologger.Logger

	ProjectName          string
	Provider             string
	EnableManagedByLabel bool
}

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

func NewValidator

func NewValidator(config Config) (*Validator, error)

func (*Validator) ValidateApp

func (v *Validator) ValidateApp(ctx context.Context, app v1alpha1.App) (bool, error)

func (*Validator) ValidateAppUpdate added in v6.2.0

func (v *Validator) ValidateAppUpdate(ctx context.Context, app, currentApp v1alpha1.App) (bool, error)

Jump to

Keyboard shortcuts

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