cmd

command
v0.0.0-...-cbad5e9 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package main is the entry point for the OpenShift Lightspeed Operator.

This package initializes and starts the Kubernetes controller manager that manages the lifecycle of the OpenShift Lightspeed application.

The main function performs the following initialization:

  • Parses command-line flags for configuration (image URLs, namespaces, intervals)
  • Sets up the Kubernetes scheme with required API types (Console, Monitoring, etc.)
  • Configures the controller manager with metrics, health probes, and leader election
  • Detects OpenShift version and selects appropriate console plugin image
  • Configures TLS security for metrics server (if enabled)
  • Initializes and starts the OLSConfigReconciler

Command-line Flags:

  • metrics-bind-address: Address for metrics endpoint (default: :8080)
  • health-probe-bind-address: Address for health probe endpoint (default: :8081)
  • leader-elect: Enable leader election for HA deployments
  • secure-metrics-server: Enable mTLS for metrics server
  • service-image: Override default lightspeed-service image
  • console-image: Override default console plugin image (PatternFly 6)
  • console-image-pf5: Override default console plugin image (PatternFly 5)
  • postgres-image: Override default PostgreSQL image
  • openshift-mcp-server-image: Override default MCP server image
  • namespace: Operator namespace (defaults to WATCH_NAMESPACE env var or "openshift-lightspeed")

Environment Variables:

  • WATCH_NAMESPACE: Namespace to watch for OLSConfig resources

The operator runs as a singleton in the cluster (with optional leader election) and continuously reconciles the OLSConfig custom resource to maintain the desired state of all OpenShift Lightspeed components.

Jump to

Keyboard shortcuts

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