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.
Click to show internal directories.
Click to hide internal directories.