plan

package
v0.3.0-m1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	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 RegisterCRD

func RegisterCRD(ctx context.Context, factory *crd.Factory) error

RegisterCRD registers the Plan custom resource definition

func RegisterHandlers

func RegisterHandlers(ctx context.Context, controllerNamespace, controllerName string, apply apply.Apply, upgradeFactory *upgradectl.Factory, coreFactory *corectl.Factory, batchFactory *batchctl.Factory) error

RegisterHandlers registers Plan handlers

Types

This section is empty.

Jump to

Keyboard shortcuts

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