Skip to content

Commit 3e72e18

Browse files
Merge pull request #18 from umago/transcripts-false
Rework transcripts and feedback config options
2 parents 6161942 + 03b05cb commit 3e72e18

9 files changed

Lines changed: 30 additions & 22 deletions

api/v1beta1/openstacklightspeed_types.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,13 @@ type OpenStackLightspeedCore struct {
181181
LLMAPIVersion string `json:"llmAPIVersion,omitempty"`
182182

183183
// +kubebuilder:validation:Optional
184-
// Disable feedback collection
185-
FeedbackDisabled bool `json:"feedbackDisabled,omitempty"`
184+
// +kubebuilder:default=true
185+
// Enable feedback collection
186+
FeedbackEnabled *bool `json:"feedbackEnabled,omitempty"`
186187

187188
// +kubebuilder:validation:Optional
188-
// Disable conversation transcripts collection
189-
TranscriptsDisabled bool `json:"transcriptsDisabled,omitempty"`
189+
// Enable conversation transcripts collection
190+
TranscriptsEnabled bool `json:"transcriptsEnabled,omitempty"`
190191

191192
// +kubebuilder:validation:Optional
192193
// +kubebuilder:default={}

api/v1beta1/zz_generated.deepcopy.go

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundle/manifests/lightspeed.openstack.org_openstacklightspeeds.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ spec:
7575
This section is not part of the stable API and may change at any time without backward compatibility.
7676
type: object
7777
x-kubernetes-preserve-unknown-fields: true
78-
feedbackDisabled:
79-
description: Disable feedback collection
78+
feedbackEnabled:
79+
default: true
80+
description: Enable feedback collection
8081
type: boolean
8182
llmAPIVersion:
8283
description: LLM API Version for LLM providers that require it (e.g.,
@@ -171,8 +172,8 @@ spec:
171172
tlsCACertBundle:
172173
description: Configmap name containing a CA Certificates bundle
173174
type: string
174-
transcriptsDisabled:
175-
description: Disable conversation transcripts collection
175+
transcriptsEnabled:
176+
description: Enable conversation transcripts collection
176177
type: boolean
177178
required:
178179
- llmCredentials

bundle/manifests/openstack-lightspeed-operator.clusterserviceversion.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ metadata:
2525
]
2626
capabilities: Basic Install
2727
categories: AI/Machine Learning
28-
createdAt: "2026-07-09T10:17:14Z"
28+
createdAt: "2026-07-13T09:32:13Z"
2929
description: AI-powered virtual assistant for Red Hat OpenStack Services on OpenShift
3030
features.operators.openshift.io/cnf: "false"
3131
features.operators.openshift.io/cni: "false"

config/crd/bases/lightspeed.openstack.org_openstacklightspeeds.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ spec:
7575
This section is not part of the stable API and may change at any time without backward compatibility.
7676
type: object
7777
x-kubernetes-preserve-unknown-fields: true
78-
feedbackDisabled:
79-
description: Disable feedback collection
78+
feedbackEnabled:
79+
default: true
80+
description: Enable feedback collection
8081
type: boolean
8182
llmAPIVersion:
8283
description: LLM API Version for LLM providers that require it (e.g.,
@@ -171,8 +172,8 @@ spec:
171172
tlsCACertBundle:
172173
description: Configmap name containing a CA Certificates bundle
173174
type: string
174-
transcriptsDisabled:
175-
description: Disable conversation transcripts collection
175+
transcriptsEnabled:
176+
description: Enable conversation transcripts collection
176177
type: boolean
177178
required:
178179
- llmCredentials

internal/controller/lcore_config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ func buildLCoreLlamaStackConfig() map[string]interface{} {
100100
}
101101

102102
func buildLCoreUserDataCollectionConfig(_ *common_helper.Helper, instance *apiv1beta1.OpenStackLightspeed) map[string]interface{} {
103-
feedbackEnabled := !instance.Spec.FeedbackDisabled
104-
transcriptsEnabled := !instance.Spec.TranscriptsDisabled
103+
feedbackEnabled := instance.Spec.FeedbackEnabled == nil || *instance.Spec.FeedbackEnabled
104+
transcriptsEnabled := instance.Spec.TranscriptsEnabled
105105

106106
return map[string]interface{}{
107107
"feedback_enabled": feedbackEnabled,
@@ -176,7 +176,7 @@ func buildLCoreConversationCacheConfig(h *common_helper.Helper, _ *apiv1beta1.Op
176176

177177
// isDataCollectionEnabled returns true if at least one of feedback or transcripts is enabled.
178178
func isDataCollectionEnabled(instance *apiv1beta1.OpenStackLightspeed) bool {
179-
return !instance.Spec.FeedbackDisabled || !instance.Spec.TranscriptsDisabled
179+
return (instance.Spec.FeedbackEnabled == nil || *instance.Spec.FeedbackEnabled) || instance.Spec.TranscriptsEnabled
180180
}
181181

182182
// buildExporterConfigMap creates the ConfigMap for the dataverse exporter sidecar.

test/kuttl/common/expected-configs/lightspeed-stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,5 @@ service:
9292
user_data_collection:
9393
feedback_enabled: true
9494
feedback_storage: /tmp/data/feedback
95-
transcripts_enabled: true
95+
transcripts_enabled: false
9696
transcripts_storage: /tmp/data/transcripts

test/kuttl/tests/update-openstacklightspeed/07-update-openstack-lightspeed-instance.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ spec:
2828
llmProjectID: test-project-id-UPDATE
2929
llmDeploymentName: test-deployment-name-UPDATE
3030
llmAPIVersion: v1.1
31-
feedbackDisabled: true
32-
transcriptsDisabled: true
31+
feedbackEnabled: false
32+
transcriptsEnabled: false
3333
logging:
3434
ogxLogLevel: "core=debug,providers=info"
3535
lightspeedStackLogLevel: ERROR

test/kuttl/tests/update-openstacklightspeed/08-assert-openstacklightspeed-update.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ spec:
287287
llmProjectID: test-project-id-UPDATE
288288
llmDeploymentName: test-deployment-name-UPDATE
289289
llmAPIVersion: v1.1
290-
feedbackDisabled: true
291-
transcriptsDisabled: true
290+
feedbackEnabled: false
291+
transcriptsEnabled: false
292292
logging:
293293
ogxLogLevel: "core=debug,providers=info"
294294
lightspeedStackLogLevel: ERROR

0 commit comments

Comments
 (0)