uiplugin

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: Apache-2.0 Imports: 56 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Korrel8rConfigFileName = "korrel8r.yaml"
	Korrel8rConfigMountDir = "/config/"
	OpenshiftLoggingNs     = "openshift-logging"
	OpenshiftNetobservNs   = "netobserv"
	OpenshiftTracingNs     = "openshift-tracing"
)
View Source
const (
	AvailableReason         = "UIPluginAvailable"
	ReconciledReason        = "UIPluginReconciled"
	FailedToReconcileReason = "UIPluginFailedToReconcile"
	ReconciledMessage       = "Plugin reconciled successfully"
	NoReason                = "None"
)

Variables

This section is empty.

Functions

func RegisterWithManager

func RegisterWithManager(mgr ctrl.Manager, opts Options) error

RegisterWithManager registers the controller with Manager

Types

type CompatibilityEntry

type CompatibilityEntry struct {
	PluginType uiv1alpha1.UIPluginType
	// Minimal OpenShift version supporting this plugin (inclusive).
	MinClusterVersion string
	// Maximal OpenShift version supporting this plugin (exclusive).
	MaxClusterVersion string
	ImageKey          string
	SupportLevel      SupportLevel
	Features          []string
}

type ListFunction

type ListFunction func(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error

type Options

type Options struct {
	PluginsConf UIPluginsConfiguration
}

type SupportLevel

type SupportLevel string
var (
	DevPreview          SupportLevel = "DevPreview"
	TechPreview         SupportLevel = "TechPreview"
	GeneralAvailability SupportLevel = "GeneralAvailability"
	Experimental_SSA    SupportLevel = "Experimental-SSA"
)

type UIPluginInfo

type UIPluginInfo struct {
	Image                      string
	Korrel8rImage              string
	HealthAnalyzerImage        string
	LokiServiceNames           map[string]string
	TempoServiceNames          map[string]string
	Name                       string
	ConsoleName                string
	DisplayName                string
	ExtraArgs                  []string
	LegacyProxies              []osv1alpha1.ConsolePluginProxy
	Proxies                    []osv1.ConsolePluginProxy
	Role                       *rbacv1.Role
	RoleBinding                *rbacv1.RoleBinding
	ClusterRoles               []*rbacv1.ClusterRole
	ClusterRoleBindings        []*rbacv1.ClusterRoleBinding
	ConfigMap                  *corev1.ConfigMap
	ResourceNamespace          string
	PersesImage                string
	AreMonitoringFeatsDisabled bool
}

func PluginInfoBuilder

func PluginInfoBuilder(ctx context.Context, k client.Client, dk dynamic.Interface, plugin *uiv1alpha1.UIPlugin, pluginConf UIPluginsConfiguration, compatibilityInfo CompatibilityEntry, clusterVersion string, logger logr.Logger) (*UIPluginInfo, error)

type UIPluginsConfiguration

type UIPluginsConfiguration struct {
	Images             map[string]string
	ResourcesNamespace string
}

Jump to

Keyboard shortcuts

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