Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions api/v1beta1/openstacklightspeed_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ type OpenStackLightspeedSpec struct {
// LoggingConfig defines logging configuration for OpenStackLightspeed components
type LoggingConfig struct {
// +kubebuilder:validation:Optional
// +kubebuilder:default="all=info"
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="OGX Log Level"
// Log level configuration for the OGX/llama-stack container. Supports standard levels (INFO, DEBUG) or fine-grained control using format "component=level,component=level" (e.g., "core=debug,providers=info"). Defaults to "all=info" if empty.
// Log level configuration for the OGX/llama-stack container. Supports standard levels (INFO, DEBUG) or fine-grained control using format "component=level,component=level" (e.g., "core=debug,providers=info").
OGXLogLevel string `json:"ogxLogLevel,omitempty"`

// +kubebuilder:validation:Optional
Expand Down Expand Up @@ -162,8 +163,9 @@ type OpenStackLightspeedCore struct {
TranscriptsDisabled bool `json:"transcriptsDisabled,omitempty"`

// +kubebuilder:validation:Optional
// +kubebuilder:default={}
// Logging configuration for OpenStackLightspeed components
Logging LoggingConfig `json:"logging,omitempty"`
Logging LoggingConfig `json:"logging"`
}

// OpenStackLightspeedStatus defines the observed state of OpenStackLightspeed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ spec:
description: Project ID for LLM providers that require it (e.g., WatsonX)
type: string
logging:
default: {}
description: Logging configuration for OpenStackLightspeed components
properties:
dataverseExporterLogLevel:
Expand Down Expand Up @@ -135,10 +136,10 @@ spec:
- CRITICAL
type: string
ogxLogLevel:
default: all=info
description: Log level configuration for the OGX/llama-stack container.
Supports standard levels (INFO, DEBUG) or fine-grained control
using format "component=level,component=level" (e.g., "core=debug,providers=info").
Defaults to "all=info" if empty.
type: string
type: object
maxTokensForResponse:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ spec:
path: logging.lightspeedStackLogLevel
- description: Log level configuration for the OGX/llama-stack container. Supports
standard levels (INFO, DEBUG) or fine-grained control using format "component=level,component=level"
(e.g., "core=debug,providers=info"). Defaults to "all=info" if empty.
(e.g., "core=debug,providers=info").
displayName: OGX Log Level
path: logging.ogxLogLevel
- description: Name of the model to use at the API endpoint provided in LLMEndpoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ spec:
description: Project ID for LLM providers that require it (e.g., WatsonX)
type: string
logging:
default: {}
description: Logging configuration for OpenStackLightspeed components
properties:
dataverseExporterLogLevel:
Expand Down Expand Up @@ -135,10 +136,10 @@ spec:
- CRITICAL
type: string
ogxLogLevel:
default: all=info
description: Log level configuration for the OGX/llama-stack container.
Supports standard levels (INFO, DEBUG) or fine-grained control
using format "component=level,component=level" (e.g., "core=debug,providers=info").
Defaults to "all=info" if empty.
type: string
type: object
maxTokensForResponse:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ spec:
path: logging.lightspeedStackLogLevel
- description: Log level configuration for the OGX/llama-stack container. Supports
standard levels (INFO, DEBUG) or fine-grained control using format "component=level,component=level"
(e.g., "core=debug,providers=info"). Defaults to "all=info" if empty.
(e.g., "core=debug,providers=info").
displayName: OGX Log Level
path: logging.ogxLogLevel
- description: Name of the model to use at the API endpoint provided in LLMEndpoint
Expand Down
4 changes: 0 additions & 4 deletions internal/controller/lcore_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -672,9 +672,6 @@ func buildLightspeedStackReadinessProbe() *corev1.Probe {
// Defaults to "all=info" if not specified.
func getOGXLogLevel(instance *apiv1beta1.OpenStackLightspeed) string {
logLevel := instance.Spec.Logging.OGXLogLevel
if logLevel == "" {
return "all=info"
}

// If it's a simple level (INFO, DEBUG, etc.), convert to "all=<level>" format
// Otherwise, pass through for fine-grained control (e.g., "core=debug,providers=info")
Expand All @@ -684,7 +681,6 @@ func getOGXLogLevel(instance *apiv1beta1.OpenStackLightspeed) string {
return fmt.Sprintf("all=%s", strings.ToLower(logLevel))
}

// Pass through as-is for fine-grained control
return logLevel
}

Expand Down
Loading