openshift

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RelatedImageConsolePluginLatestEnvVar = "RELATED_IMAGE_CONSOLE_PLUGIN_LATEST"
	RelatedImageConsolePluginPF5EnvVar    = "RELATED_IMAGE_CONSOLE_PLUGIN_PF5"
)

Variables

View Source
var (
	ConsolePluginGVK = schema.GroupVersionKind{
		Group:   consolev1.GroupName,
		Version: consolev1.GroupVersion.Version,
		Kind:    "ConsolePlugin",
	}
	ConsolePluginsResource = consolev1.SchemeGroupVersion.WithResource("consoleplugins")

	ClusterVersionGroupKind = schema.GroupVersionKind{
		Group:   configv1.GroupName,
		Version: configv1.GroupVersion.Version,
		Kind:    "ClusterVersion",
	}
	ClusterVersionResource = configv1.SchemeGroupVersion.WithResource("clusterversions")
)

Functions

func GetConsolePluginImageForVersion added in v1.4.0

func GetConsolePluginImageForVersion(clusterVersion *configv1.ClusterVersion) (string, error)

GetConsolePluginImageForVersion returns the appropriate console plugin image based on OpenShift version. For OpenShift versions >= 4.20, it returns the latest (PatternFly 6) compatible image from RELATED_IMAGE_CONSOLE_PLUGIN_LATEST. For earlier versions, it returns the PF5 image from RELATED_IMAGE_CONSOLE_PLUGIN_PF5. This ensures proper mirroring in disconnected environments by using RELATED_IMAGE environment variables.

func IsClusterVersionInstalled added in v1.3.0

func IsClusterVersionInstalled(restMapper meta.RESTMapper) (bool, error)

func IsConsolePluginInstalled

func IsConsolePluginInstalled(restMapper meta.RESTMapper) (bool, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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