osd

package
v0.0.0-...-9eefff9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	*ocmclient.Client
	// contains filtered or unexported fields
}

Provider is a openshift dedicated "osd" provider

func New

func New(ctx context.Context, token string, ocmEnvironment ocmclient.Environment, logger logr.Logger) (*Provider, error)

New handles constructing the osd provider which creates a connection to openshift cluster manager "ocm". It is the callers responsibility to close the ocm connection when they are finished (defer provider.Connection.Close())

func (*Provider) OCMUpgrade

func (o *Provider) OCMUpgrade(ctx context.Context, client *openshift.Client, clusterID string, currentVersion, upgradeVersion semver.Version) error

OCMUpgrade handles the end to end process to upgrade an openshift dedicated cluster

Jump to

Keyboard shortcuts

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