openshift

package
v1.24.4 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package openshift provides functions to work with OLM CRDs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSubscription

func CreateSubscription(
	ctx context.Context,
	crudClient client.Client,
	channel string,
) error

CreateSubscription creates a subscription object inside openshift with a fixed name

func DeleteCSV

func DeleteCSV(
	ctx context.Context,
	crudClient client.Client,
) error

DeleteCSV will delete all operator's CSVs

func DeleteOperatorCRDs

func DeleteOperatorCRDs(
	ctx context.Context,
	crudClient client.Client,
) error

DeleteOperatorCRDs deletes the CRDs associated with the operator

func DeleteSubscription

func DeleteSubscription(
	ctx context.Context,
	crudClient client.Client,
) error

DeleteSubscription deletes the operator's subscription object

func GetOpenshiftVersion

func GetOpenshiftVersion(ctx context.Context, restConfig *rest.Config) (semver.Version, error)

GetOpenshiftVersion returns the current openshift version

func GetSubscriptionVersion

func GetSubscriptionVersion(
	ctx context.Context,
	crudClient client.Client,
) (string, error)

GetSubscriptionVersion retrieves the current ClusterServiceVersion version of the operator

func PatchStatusCondition

func PatchStatusCondition(
	ctx context.Context,
	crudClient client.Client,
	namespace, clusterName string,
) error

PatchStatusCondition removes status conditions on a given Cluster

func UpgradeSubscription

func UpgradeSubscription(
	ctx context.Context,
	crudClient client.Client,
	channel string,
) error

UpgradeSubscription patch an unstructured subscription object with target channel

Types

This section is empty.

Jump to

Keyboard shortcuts

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