lcore

package
v0.0.0-...-30bcceb Latest Latest
Warning

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

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

Documentation

Overview

Package lcore provides reconciliation logic for the LightSpeed Core (LCore) component.

This package handles the complete lifecycle of the LCore stack, which includes:

  • Llama Stack for AI model serving
  • Lightspeed Stack for OLS integration
  • Deployment and pod management for both containers
  • Service account and RBAC configuration
  • ConfigMap generation for both Llama Stack and OLS configuration
  • Service and networking setup
  • Service monitors and Prometheus rules for observability
  • Network policies for security

The main entry point is ReconcileLCore, which orchestrates all sub-tasks required to ensure the LCore stack is running with the correct configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateLCoreDeployment

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

GenerateLCoreDeployment generates the Deployment for LCore (llama-stack + lightspeed-stack)

func GenerateLcoreConfigMap

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

Generates LCoreConfigMap using YAML string building (like Llama Stack)

func GenerateLlamaStackConfigMap

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

Generates Llama stack config map

func GenerateMetricsReaderSecret

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

func GenerateSARClusterRole

func GenerateSARClusterRole(r reconciler.Reconciler, cr *olsv1alpha1.OLSConfig) (*rbacv1.ClusterRole, error)

SAR = SubjectAccessReview SARClusterRole provides permissions for the OLS Application Server to perform authentication and authorization checks for users accessing the OLS API.

func GenerateServiceAccount

func GenerateServiceAccount(r reconciler.Reconciler, cr *olsv1alpha1.OLSConfig) (*corev1.ServiceAccount, error)

Service account for running LCore server

func ReconcileLCore

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

ReconcileLCore orchestrates the reconciliation of all LCore resources

func RestartLCore

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

RestartLCore triggers a rolling restart of the LCore 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