appserver

package
v0.0.0-...-0281a43 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package appserver provides reconciliation logic for the OpenShift Lightspeed application server component.

This package handles the complete lifecycle of the OLS application server, including:

  • Deployment and pod management
  • Service account and RBAC configuration
  • ConfigMap generation for application configuration
  • Service and networking setup
  • TLS certificate management
  • Service monitors and Prometheus rules for observability
  • Network policies for security
  • LLM provider secret handling

The main entry point is ReconcileAppServer, which orchestrates all sub-tasks required to ensure the application server is running with the correct configuration.

Index

Constants

View Source
const (
	SSEField int = iota
	StreamableHTTPField
)

Variables

This section is empty.

Functions

func GenerateMetricsReaderSecret

func GenerateMetricsReaderSecret(r reconciler.Reconciler, cr *olsv1alpha1.OLSConfig) (*corev1.Secret, error)

func GenerateRAGInitContainers

func GenerateRAGInitContainers(cr *olsv1alpha1.OLSConfig) []corev1.Container

func ReconcileAppServer

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

func RestartAppServer

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

RestartAppServer triggers a rolling restart of the app server 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