upgrade

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DeleteConfigMapLabel is the label for configMap used to trigger operator uninstall
	// TODO: Label should be updated if addon name changes.
	DeleteConfigMapLabel = "api.openshift.com/addon-managed-odh-delete"
)

Variables

This section is empty.

Functions

func CleanupExistingResource added in v2.8.0

func CleanupExistingResource(cli client.Client, platform deploy.Platform) error

func CreateDefaultDSC

func CreateDefaultDSC(cli client.Client, _ deploy.Platform) error

createDefaultDSC creates a default instance of DSC. Note: When the platform is not Managed, and a DSC instance already exists, the function doesn't re-create/update the resource.

func CreateDefaultDSCI added in v2.7.0

func CreateDefaultDSCI(cli client.Client, _ deploy.Platform, appNamespace, monNamespace string) error

createDefaultDSCI creates a default instance of DSCI If there exists an instance already, it patches the DSCISpec with default values Note: DSCI CR modifcations are not supported, as it is the initial prereq setting for the components.

func GetOperatorNamespace

func GetOperatorNamespace() (string, error)

func HasDeleteConfigMap

func HasDeleteConfigMap(c client.Client) bool

HasDeleteConfigMap returns true if delete configMap is added to the operator namespace by managed-tenants repo. It returns false in all other cases.

func OperatorUninstall

func OperatorUninstall(cli client.Client, cfg *rest.Config) error

OperatorUninstall deletes all the externally generated resources. This includes monitoring resources and applications installed by KfDef.

func RemoveKfDefInstances

func RemoveKfDefInstances(cli client.Client, _ deploy.Platform) error

func UpdateFromLegacyVersion

func UpdateFromLegacyVersion(cli client.Client, platform deploy.Platform, appNS string, montNamespace string) error

Types

type Resource added in v2.8.0

type Resource interface {
	metav1.Object
	runtime.Object
}

Jump to

Keyboard shortcuts

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