console

package
v0.0.0-...-46eddab Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package console provides reconciliation logic for the OpenShift Console UI plugin that integrates OpenShift Lightspeed into the OpenShift web console.

This package manages:

  • ConsolePlugin custom resource for UI integration
  • Console UI deployment and pod lifecycle
  • Service configuration for plugin serving
  • ConfigMap for Nginx configuration
  • TLS certificate management for secure connections
  • Network policies for console security
  • Integration with OpenShift Console operator

The console plugin provides users with a chat interface directly in the OpenShift web console to interact with the Lightspeed AI assistant. The main entry points are ReconcileConsoleUI for setup and RemoveConsoleUI for cleanup.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateConsoleUIConfigMap

func GenerateConsoleUIConfigMap(r reconciler.Reconciler, cr *olsv1alpha1.OLSConfig) (*corev1.ConfigMap, error)

func GenerateConsoleUIDeployment

func GenerateConsoleUIDeployment(r reconciler.Reconciler, cr *olsv1alpha1.OLSConfig) (*appsv1.Deployment, error)

GenerateConsoleUIDeployment generates the Console UI deployment object.

func GenerateConsoleUILabels

func GenerateConsoleUILabels() map[string]string

func GenerateConsoleUIService

func GenerateConsoleUIService(r reconciler.Reconciler, cr *olsv1alpha1.OLSConfig) (*corev1.Service, error)

func ReconcileConsoleUI

func ReconcileConsoleUI(r reconciler.Reconciler, ctx context.Context, olsconfig *olsv1alpha1.OLSConfig) error

ReconcileConsoleUI reconciles all Console UI resources in the original order. This function is maintained for backward compatibility with existing tests. New code should call ReconcileConsoleUIResources and ReconcileConsoleUIDeploymentAndPlugin separately.

func ReconcileConsoleUIDeployment

func ReconcileConsoleUIDeployment(r reconciler.Reconciler, ctx context.Context, cr *olsv1alpha1.OLSConfig) error

func ReconcileConsoleUIDeploymentAndPlugin

func ReconcileConsoleUIDeploymentAndPlugin(r reconciler.Reconciler, ctx context.Context, olsconfig *olsv1alpha1.OLSConfig) error

ReconcileConsoleUIDeploymentAndPlugin reconciles the deployment and related resources (Phase 2)

func ReconcileConsoleUIResources

func ReconcileConsoleUIResources(r reconciler.Reconciler, ctx context.Context, olsconfig *olsv1alpha1.OLSConfig) error

ReconcileConsoleUIResources reconciles all resources except the deployment (Phase 1) Uses continue-on-error pattern since these resources are independent

func RemoveConsoleUI

func RemoveConsoleUI(r reconciler.Reconciler, ctx context.Context) error

func RestartConsoleUI

func RestartConsoleUI(r reconciler.Reconciler, ctx context.Context, deployment ...*appsv1.Deployment) error

RestartConsoleUI triggers a rolling restart of the Console UI deployment by updating its pod template annotation. This is useful when configuration changes require a pod restart (e.g., ConfigMap or Secret updates).

Types

This section is empty.

Jump to

Keyboard shortcuts

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