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
8 changes: 8 additions & 0 deletions api/v1beta1/openstacklightspeed_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ type OpenStackLightspeedCore struct {
// +kubebuilder:validation:Optional
// LLM API Version for LLM providers that require it (e.g., Microsoft Azure OpenAI)
LLMAPIVersion string `json:"llmAPIVersion,omitempty"`

// +kubebuilder:validation:Optional
// Disable feedback collection
FeedbackDisabled bool `json:"feedbackDisabled,omitempty"`

// +kubebuilder:validation:Optional
// Disable conversation transcripts collection
TranscriptsDisabled bool `json:"transcriptsDisabled,omitempty"`
}

// OpenStackLightspeedStatus defines the observed state of OpenStackLightspeed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ spec:
description: Namespace where the CatalogSource containing the OLS
operator is located
type: string
feedbackDisabled:
description: Disable feedback collection
type: boolean
llmAPIVersion:
description: LLM API Version for LLM providers that require it (e.g.,
Microsoft Azure OpenAI)
Expand Down Expand Up @@ -103,6 +106,9 @@ spec:
tlsCACertBundle:
description: Configmap name containing a CA Certificates bundle
type: string
transcriptsDisabled:
description: Disable conversation transcripts collection
type: boolean
required:
- llmCredentials
- llmEndpoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ metadata:
}
]
capabilities: Basic Install
createdAt: "2026-01-08T13:07:00Z"
createdAt: "2026-01-16T13:55:22Z"
operatorframework.io/suggested-namespace: openshift-lightspeed
operators.operatorframework.io/builder: operator-sdk-v1.38.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ spec:
description: Namespace where the CatalogSource containing the OLS
operator is located
type: string
feedbackDisabled:
description: Disable feedback collection
type: boolean
llmAPIVersion:
description: LLM API Version for LLM providers that require it (e.g.,
Microsoft Azure OpenAI)
Expand Down Expand Up @@ -103,6 +106,9 @@ spec:
tlsCACertBundle:
description: Configmap name containing a CA Certificates bundle
type: string
transcriptsDisabled:
description: Disable conversation transcripts collection
type: boolean
required:
- llmCredentials
- llmEndpoint
Expand Down
12 changes: 12 additions & 0 deletions internal/controller/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,18 @@ func PatchOLSConfig(
return err
}

// Disable or enable feedback collection
err = uns.SetNestedField(olsConfig.Object, instance.Spec.FeedbackDisabled, "spec", "ols", "userDataCollection", "feedbackDisabled")
if err != nil {
return err
}

// Disable or enable transcripts collection
err = uns.SetNestedField(olsConfig.Object, instance.Spec.TranscriptsDisabled, "spec", "ols", "userDataCollection", "transcriptsDisabled")
if err != nil {
return err
}

// Add info which OpenStackLightspeed instance owns the OLSConfig
labels := olsConfig.GetLabels()
updatedLabels := map[string]interface{}{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ spec:
- image: quay.io/openstack-lightspeed/rag-content:os-docs-2025.2
indexID: ""
indexPath: /rag/vector_db/os_product_docs
userDataCollection:
feedbackDisabled: false
transcriptsDisabled: false
status:
conditions:
- type: ConsolePluginReady
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ spec:
llmProjectID: test-project-id-UPDATE
llmDeploymentName: test-deployment-name-UPDATE
llmAPIVersion: v1.1
feedbackDisabled: true
transcriptsDisabled: true
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ spec:
- image: quay.io/openstack-lightspeed/rag-content:os-docs-2025.2
indexID: ""
indexPath: /rag/vector_db/os_product_docs
userDataCollection:
feedbackDisabled: true
transcriptsDisabled: true
Loading