plan

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDrainDeleteConflict           = fmt.Errorf("spec.drain cannot specify both deleteEmptydirData and deleteLocalData")
	ErrDrainPodSelectorNotSelectable = fmt.Errorf("spec.drain.podSelector is not selectable")

	PollingInterval = func(defaultValue time.Duration) time.Duration {
		if str, ok := os.LookupEnv("SYSTEM_UPGRADE_PLAN_POLLING_INTERVAL"); ok {
			if d, err := time.ParseDuration(str); err != nil {
				logrus.Errorf("failed to parse $%s: %v", "SYSTEM_UPGRADE_PLAN_POLLING_INTERVAL", err)
			} else if d > time.Minute {
				return d
			}
		}
		return defaultValue
	}(defaultPollingInterval)
)

Functions

func CRD added in v0.3.0

func CRD() (*crd.CRD, error)

func DigestStatus added in v0.3.0

func DigestStatus(plan *upgradeapiv1.Plan, secretCache corectlv1.SecretCache) (upgradeapiv1.PlanStatus, error)

func MungeVersion added in v0.3.0

func MungeVersion(version string) string

func NodeSelector added in v0.7.5

func NodeSelector(plan *upgradeapiv1.Plan) (labels.Selector, error)

func ResolveChannel added in v0.3.0

func ResolveChannel(ctx context.Context, url, latestVersion, clusterID string) (string, error)

func SelectConcurrentNodes added in v0.7.4

func SelectConcurrentNodes(plan *upgradeapiv1.Plan, nodeCache corectlv1.NodeCache) ([]*corev1.Node, error)

func Validate added in v0.11.0

func Validate(plan *upgradeapiv1.Plan) error

Validate performs validation of the plan spec, raising errors for any conflicting or invalid settings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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