uiplugin

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 37 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
	// Minimal ACM version supporting this plugin (inclusive).
	MinAcmVersion string
	// Maximal ACM version supporting this plugin (exclusive).
	MaxAcmVersion 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
	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
}

func PluginInfoBuilder

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