preflight

package
v1.115.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SpecDataKey = "preflight-spec"
)

Variables

This section is empty.

Functions

func CreateRenderedSpec

func CreateRenderedSpec(app *apptypes.App, sequence int64, origin string, inCluster bool, kotsKinds *kotsutil.KotsKinds, archiveDir string) error

func Execute added in v1.112.0

func Execute(preflightSpec *troubleshootv1beta2.Preflight, ignorePermissionErrors bool, setProgress func(progress map[string]interface{}) error, setResults func(results *types.PreflightResults) error) (*types.PreflightResults, error)

Execute will Execute the preflights using spec in preflightSpec. This spec should be rendered, no template functions remaining

func GetPreflightCheckState added in v1.103.2

func GetPreflightCheckState(p *troubleshootpreflight.UploadPreflightResult) string

GetPreflightCheckState returns the state of a single preflight check result

func GetPreflightCommand

func GetPreflightCommand(appSlug string) []string

func GetPreflightState

func GetPreflightState(preflightResults *types.PreflightResults, ignoreNonStrict bool) string

GetPreflightState returns a single state based on checking all preflight checks results. If there are any errors, the state is fail. If there are no errors and any warnings, the state is warn. Otherwise, the state is pass.

func GetSpecSecretName

func GetSpecSecretName(appSlug string) string

func GetSpecURI

func GetSpecURI(appSlug string) string

func InjectDefaultPreflights added in v1.112.0

func InjectDefaultPreflights(preflight *troubleshootv1beta2.Preflight, kotskinds *kotsutil.KotsKinds, registrySettings registrytypes.RegistrySettings)

func Run

func Run(appID string, appSlug string, sequence int64, isAirgap bool, ignoreNonStrict bool, archiveDir string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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