upgrade

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PlanNameAnnotation      = "lifecycle.suse.com/upgrade-plan-name"
	PlanNamespaceAnnotation = "lifecycle.suse.com/upgrade-plan-namespace"
	ReleaseAnnotation       = "lifecycle.suse.com/release"

	ControlPlaneLabel = "node-role.kubernetes.io/control-plane"

	HelmChartNamespace = "kube-system"
	SUCNamespace       = "cattle-system"
)

Variables

This section is empty.

Functions

func ChartNamespacedName

func ChartNamespacedName(chart string) types.NamespacedName

func GenerateSuffix added in v0.1.0

func GenerateSuffix() (string, error)

func KubernetesControlPlanePlan

func KubernetesControlPlanePlan(nameSuffix, version string, drain bool, annotations map[string]string) *upgradecattlev1.Plan

func KubernetesWorkerPlan

func KubernetesWorkerPlan(nameSuffix, version string, drain bool, annotations map[string]string) *upgradecattlev1.Plan

func OSControlPlanePlan

func OSControlPlanePlan(nameSuffix, releaseVersion, secretName string, releaseOS *lifecyclev1alpha1.OperatingSystem, drain bool, annotations map[string]string) *upgradecattlev1.Plan

func OSUpgradeSecret

func OSUpgradeSecret(nameSuffix string, releaseOS *lifecyclev1alpha1.OperatingSystem, annotations map[string]string) (*corev1.Secret, error)

func OSWorkerPlan

func OSWorkerPlan(nameSuffix, releaseVersion, secretName string, releaseOS *lifecyclev1alpha1.OperatingSystem, drain bool, annotations map[string]string) *upgradecattlev1.Plan

func PlanIdentifierAnnotations added in v0.1.0

func PlanIdentifierAnnotations(name, namespace string) map[string]string

func ReleaseManifestInstallJob added in v0.1.0

func ReleaseManifestInstallJob(releaseManifest, kubectl ContainerImage, serviceAccount, namespace string, annotations map[string]string) (*batchv1.Job, error)

Types

type ContainerImage added in v0.1.0

type ContainerImage struct {
	Name    string
	Version string
}

func (ContainerImage) String added in v0.1.0

func (image ContainerImage) String() string

type HelmChartState

type HelmChartState int
const (
	ChartStateUnknown HelmChartState = iota
	ChartStateNotInstalled
	ChartStateVersionAlreadyInstalled
	ChartStateInProgress
	ChartStateFailed
	ChartStateSucceeded
)

func (HelmChartState) FormattedMessage

func (s HelmChartState) FormattedMessage(chart string) string

Jump to

Keyboard shortcuts

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