Documentation ¶
Index ¶
- Variables
- func CRD() (*crd.CRD, error)
- func DigestStatus(plan *upgradeapiv1.Plan, secretCache corectlv1.SecretCache) (upgradeapiv1.PlanStatus, error)
- func MungeVersion(version string) string
- func NodeSelector(plan *upgradeapiv1.Plan) (labels.Selector, error)
- func ResolveChannel(ctx context.Context, url, latestVersion, clusterID string) (string, error)
- func SelectConcurrentNodes(plan *upgradeapiv1.Plan, nodeCache corectlv1.NodeCache) ([]*corev1.Node, error)
- func Validate(plan *upgradeapiv1.Plan) error
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 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 NodeSelector ¶ added in v0.7.5
func NodeSelector(plan *upgradeapiv1.Plan) (labels.Selector, error)
func ResolveChannel ¶ added in v0.3.0
func SelectConcurrentNodes ¶ added in v0.7.4
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.
Click to show internal directories.
Click to hide internal directories.