Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ActiveDeadlineSeconds = func(defaultValue int64) int64 { if str, ok := os.LookupEnv("SYSTEM_UPGRADE_JOB_ACTIVE_DEADLINE_SECONDS"); ok { if i, err := strconv.ParseInt(str, 10, 64); err != nil { logrus.Errorf("failed to parse $%s: %v", "SYSTEM_UPGRADE_JOB_ACTIVE_DEADLINE_SECONDS", err) } else { return i } } return defaultValue }(defaultActiveDeadlineSeconds) BackoffLimit = func(defaultValue int32) int32 { if str, ok := os.LookupEnv("SYSTEM_UPGRADE_JOB_BACKOFF_LIMIT"); ok { if i, err := strconv.ParseInt(str, 10, 32); err != nil { logrus.Errorf("failed to parse $%s: %v", "SYSTEM_UPGRADE_JOB_BACKOFF_LIMIT", err) } else { return int32(i) } } return defaultValue }(defaultBackoffLimit) KubectlImage = func(defaultValue string) string { if str := os.Getenv("SYSTEM_UPGRADE_JOB_KUBECTL_IMAGE"); str != "" { return str } return defaultValue }(defaultKubectlImage) Privileged = func(defaultValue bool) bool { if str, ok := os.LookupEnv("SYSTEM_UPGRADE_JOB_PRIVILEGED"); ok { if b, err := strconv.ParseBool(str); err != nil { logrus.Errorf("failed to parse $%s: %v", "SYSTEM_UPGRADE_JOB_PRIVILEGED", err) } else { return b } } return defaultValue }(defaultPrivileged) ImagePullPolicy = func(defaultValue corev1.PullPolicy) corev1.PullPolicy { if str := os.Getenv("SYSTEM_UPGRADE_JOB_IMAGE_PULL_POLICY"); str != "" { return corev1.PullPolicy(str) } return defaultValue }(defaultImagePullPolicy) TTLSecondsAfterFinished = func(defaultValue int32) int32 { if str, ok := os.LookupEnv("SYSTEM_UPGRADE_JOB_TTL_SECONDS_AFTER_FINISH"); ok { if i, err := strconv.ParseInt(str, 10, 32); err != nil { logrus.Errorf("failed to parse $%s: %v", "SYSTEM_UPGRADE_JOB_TTL_SECONDS_AFTER_FINISH", err) } else { return int32(i) } } return defaultValue }(defaultTTLSecondsAfterFinished) )
View Source
var ( ConditionComplete = condition.Cond(batchv1.JobComplete) ConditionFailed = condition.Cond(batchv1.JobFailed) )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.