appserver

package
v0.0.0-...-e7d8343 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 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

ReconcileAppServer reconciles all app server resources in the original order. This function is maintained for backward compatibility with existing tests. New code should call ReconcileAppServerResources and ReconcileAppServerDeployment separately.

func ReconcileAppServerDeployment

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

ReconcileAppServerDeployment reconciles the deployment and related resources (Phase 2)

func ReconcileAppServerResources

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

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

func RestartAppServer

func RestartAppServer(r reconciler.Reconciler, ctx context.Context, deployment ...*appsv1.Deployment) 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