crdupgradesafety

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default(diff kappcus.FieldDiff) (bool, error)

func Enum

func Enum(diff kappcus.FieldDiff) (bool, error)

func MaxItems

func MaxItems(diff kappcus.FieldDiff) (bool, error)

func MaxLength

func MaxLength(diff kappcus.FieldDiff) (bool, error)

func MaxProperties

func MaxProperties(diff kappcus.FieldDiff) (bool, error)

func Maximum

func Maximum(diff kappcus.FieldDiff) (bool, error)

func MinItems

func MinItems(diff kappcus.FieldDiff) (bool, error)

func MinLength

func MinLength(diff kappcus.FieldDiff) (bool, error)

func MinProperties

func MinProperties(diff kappcus.FieldDiff) (bool, error)

func Minimum

func Minimum(diff kappcus.FieldDiff) (bool, error)

func Required

func Required(diff kappcus.FieldDiff) (bool, error)

func Type

func Type(diff kappcus.FieldDiff) (bool, error)

Types

type Option

type Option func(p *Preflight)

func WithValidator

func WithValidator(v *kappcus.Validator) Option

type Preflight

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

func (*Preflight) Install

func (p *Preflight) Install(ctx context.Context, rel *release.Release) error

func (*Preflight) Upgrade

func (p *Preflight) Upgrade(ctx context.Context, rel *release.Release) error

type ServedVersionValidator

type ServedVersionValidator struct {
	Validations []kappcus.ChangeValidation
}

func (*ServedVersionValidator) Name

func (c *ServedVersionValidator) Name() string

func (*ServedVersionValidator) Validate

Jump to

Keyboard shortcuts

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