console

package
v0.0.0-...-c6c896d Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "logging-view-plugin"

Variables

This section is empty.

Functions

func ConsoleCapabilityEnabled

func ConsoleCapabilityEnabled(c client.Client, plugin consolev1alpha1.ConsolePlugin) bool

func FeaturesForOCP

func FeaturesForOCP(version string) []string

FeaturesForOCP will return the list of features to enable for the console plugin given the OCP version

func ReconcilePlugin

func ReconcilePlugin(k8sClient client.Client, cl *logging.ClusterLogging, owner client.Object, clusterVersion string) error

ReconcilePlugin reconciles the console plugin to expose log querying of storage

Types

type Config

type Config struct {
	Owner             client.Object // Owning object - the ClusterLogging instance
	Name              string        // Name for the consoleplugin and related objects
	Image             string        // Image for the logging view service.
	LokiService       string        // Name of the LokiStack gateway service.
	LokiPort          int32         // Port of the LokiStack gateway service.
	Korrel8rName      string        // Name of the Korrel8r service.
	Korrel8rNamespace string        // Namespace of korrel8r service.
	Korrel8rPort      int32         // Port of the Korrel8r service.
	Features          []string      // The features enabled for the plugin
}

Config is the configuration struct for the logging console plugin Reconciler. Construct with NewConfig to set default values.

func NewConfig

func NewConfig(owner client.Object, lokiService, korrel8rName, korrel8rNS string, features []string) Config

NewConfig returns a config with default settings.

func (*Config) CreatedBy

func (cf *Config) CreatedBy() string

func (*Config) Namespace

func (cf *Config) Namespace() string

type Reconciler

type Reconciler struct {
	Config
	// contains filtered or unexported fields
}

Reconciler reconciles the console plugin state with the desired configuration

func NewReconciler

func NewReconciler(c client.Client, cf Config, visSpec *logging.VisualizationSpec) *Reconciler

NewReconciler creates a Reconciler using client for config.

func (*Reconciler) Delete

func (r *Reconciler) Delete(ctx context.Context) error

Delete the consoleplugin and related objects.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context) error

Reconcile creates or updates cluster objects to match config.

Jump to

Keyboard shortcuts

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