utils

package
v0.19.0-dev Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package utils provides some utility functionalities for TKR.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAvailableUpgrades

func GetAvailableUpgrades(clusterName, namespace string, tkr *runv1alpha1.TanzuKubernetesRelease) ([]string, error)

GetAvailableUpgrades returns the available upgrades of a TKR

func IsTkrActive

func IsTkrActive(tkr *runv1alpha1.TanzuKubernetesRelease) bool

IsTkrActive checks if the TKR is active

func IsTkrCompatible

func IsTkrCompatible(tkr *runv1alpha1.TanzuKubernetesRelease) bool

IsTkrCompatible checks if TKR is compatible

Types

type UpgradesNotAvailableError

type UpgradesNotAvailableError struct {
	// contains filtered or unexported fields
}

UpgradesNotAvailableError is an error type to return when upgrades are not available

func NewUpgradesNotAvailableError

func NewUpgradesNotAvailableError(message string) UpgradesNotAvailableError

NewUpgradesNotAvailableError returns a struct of type UpgradesNotAvailableError

func (UpgradesNotAvailableError) Error

Jump to

Keyboard shortcuts

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