uiplugin

package
v1.2.0 Latest Latest
Warning

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

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

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 = "UIPluginFailedToReconciled"
	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
}

func PluginInfoBuilder

func PluginInfoBuilder(ctx context.Context, k client.Client, dk dynamic.Interface, plugin *uiv1alpha1.UIPlugin, pluginConf UIPluginsConfiguration, compatibilityInfo CompatibilityEntry, clusterVersion string) (*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