upgrade

package
v0.1.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanUpgradeVersion

func CanUpgradeVersion(currentVersion *gversion.Version, newVersion *mgmtv1.Version) (bool, error)

func DeploymentIsReady

func DeploymentIsReady(deployment *appsv1.Deployment) bool

func Register

func Register(ctx context.Context, mgmt *config.Management, opts config.Options) error

Types

type CheckUpgradeRequest

type CheckUpgradeRequest struct {
	ServerVersion string            `json:"appVersion"`
	ExtraInfo     map[string]string `json:"extraInfo"`
}

type CheckUpgradeResponse

type CheckUpgradeResponse struct {
	Versions []Version `json:"versions"`
}

type Version

type Version struct {
	Name                 string   `json:"name"` // must be in semantic versioning
	ReleaseDate          string   `json:"releaseDate"`
	KubernetesVersion    string   `json:"kubernetesVersion,omitempty"`
	MinUpgradableVersion string   `json:"minUpgradableVersion,omitempty"`
	Tags                 []string `json:"tags,omitempty"`
}

Jump to

Keyboard shortcuts

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