validate

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionItem

type ActionItem struct {
	ResourceNamespace string
	ResourceKind      string
	ResourceName      string
	Title             string `yaml:"title"`
	Description       string `yaml:"description"`
	Remediation       string `yaml:"remediation"`
	EventType         string `yaml:"eventType"`
	Severity          string `yaml:"severity"`
	Category          string `yaml:"category"`
	Report            string `yaml:"report"`
}

type AddonOutput

type AddonOutput struct {
	Name              string        `yaml:"name"`
	Versions          OutputVersion `yaml:"versions"`
	UpgradeConfidence int           `yaml:"upgradeConfidence"`
	ActionItems       []*ActionItem `yaml:"actionItems"`
	Notes             string        `yaml:"notes"`
	Warnings          []string      `yaml:"warnings"`
}

type Config

type Config struct {
	// Helm is an instance of the local helm package client
	Helm *helm.Helm
	// Bundle is the path to the bundle config file
	Bundle []string
}

Config contains the necessary pieces to run the validation

func (*Config) Validate

func (c *Config) Validate() (string, error)

Validate finds matching releases in-cluster, runs pre-defined checks against those releases, and returns an error if any checks fail also returns an output string that can be printed to the user

type Output

type Output struct {
	Addons []*AddonOutput `yaml:"addons"`
}

type OutputVersion

type OutputVersion struct {
	Current string `yaml:"current"`
	Upgrade string `yaml:"upgrade"`
}

Jump to

Keyboard shortcuts

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