Skip to content

Commit d863e3a

Browse files
committed
chore: adapt chart and docs
1 parent 751f5f0 commit d863e3a

File tree

5 files changed

+16
-74
lines changed

5 files changed

+16
-74
lines changed

charts/feedback-fusion/templates/configmap-preset.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

charts/feedback-fusion/templates/deployment.yaml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,11 @@ spec:
3838
- name: grpc
3939
containerPort: 8000
4040
protocol: TCP
41-
envFrom:
42-
- secretRef:
43-
name: {{ .Values.feedbackFusion.config.secret }}
4441
env:
45-
{{- if .Values.feedbackFusion.preset.enabled }}
46-
- name: CONFIG_PATH
42+
- name: RUST_LOG
43+
value: INFO
44+
- name: FEEDBACK_FUSION_CONFIG
4745
value: /etc/config/config.yaml
48-
{{- end }}
4946
livenessProbe:
5047
{{- toYaml .Values.livenessProbe | nindent 12 }}
5148
startupProbe:
@@ -57,20 +54,16 @@ spec:
5754
{{- toYaml . | nindent 12 }}
5855
{{- end }}
5956

60-
{{- if .Values.feedbackFusion.preset.enabled }}
61-
- name: {{ .Values.feedbackFusion.preset.name }}
57+
- name: {{ .Values.feedbackFusion.config.secret }}
6258
mountPath: /etc/config
63-
{{- end }}
6459
volumes:
6560
{{- with .Values.volumes }}
6661
{{- toYaml . | nindent 8 }}
6762
{{- end }}
6863

69-
{{- if .Values.feedbackFusion.preset.enabled }}
70-
- name: {{ .Values.feedbackFusion.preset.name }}
71-
configMap:
72-
name: {{ .Values.feedbackFusion.preset.name }}
73-
{{- end }}
64+
- name: {{ .Values.feedbackFusion.config.secret }}
65+
secret:
66+
secretName: {{ .Values.feedbackFusion.config.secret }}
7467
{{- with .Values.nodeSelector }}
7568
nodeSelector:
7669
{{- toYaml . | nindent 8 }}

charts/feedback-fusion/values.yaml

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -93,52 +93,9 @@ tolerations: []
9393
affinity: {}
9494

9595
feedbackFusion:
96-
preset:
97-
enabled: false
98-
name: feedback-fusion-preset
99-
create: false
100-
data:
101-
# targets:
102-
# - id: target
103-
# name: TestTarget
104-
# description: A nice Target
105-
# prompts:
106-
# - id: prompt
107-
# title: Testprompt
108-
# description: A nice Prompt
109-
# active: true
110-
# fields:
111-
# - id: field1
112-
# title: TextField
113-
# field_type: text
114-
# options:
115-
# type: text
116-
# lines: 1
117-
# placeholder: test
118-
119-
12096
config:
97+
# with config.yaml as key
12198
secret: feedback-fusion-config
122-
# RUST_LOG: INFO
123-
# OIDC_AUDIENCE: ""
124-
# OIDC_PROVIDER: ""
125-
#
126-
# POSTGRES_ENDPOINT: ""
127-
# POSTGRES_USERNAME: ""
128-
# POSTGRES_PASWORD: ""
129-
# POSTGRES_DATABASE: ""
130-
#
131-
# MYSQL_ENDPOINT: ""
132-
# MYSQL_USERNAME: ""
133-
# MYSQL_PASWORD: ""
134-
# MYSQL_DATABASE: ""
135-
#
136-
# MSSQL_ENDPOINT: ""
137-
# MSSQL_USERNAME: ""
138-
# MSSQL_PASWORD: ""
139-
# MSSQL_DATABASE: ""
140-
# MSSQL_ENCRYPT: true
141-
# MSSQL_TRUST_SERVER_CERTIFICATE: true
14299

143100
testSecret: feedback-fusion-integration-test
144101

docs/docs/deployment/docker.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ services:
1919
- "8000:8000"
2020
environment:
2121
RUST_LOG: INFO
22-
# add here your configuration
22+
FEEDBACK_FUSION_CONFIG: /path/to/container/config
2323
restart: unless-stopped
24+
volumes:
25+
- /path/to/config:/path/to/container/config
2426
```
2527
26-
Add in as `environment` your actual configuration values. Refer to the [configuration documentation](/docs/configuration) for the fields that need to be set.
28+
Refer to the [configuration documentation](/docs/configuration) for the config file details.
2729
2830
Afterwards start the application:
2931

docs/docs/observability/tracing.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ For more information regarding the documentation checkout the [Configuration](/d
88

99
## Example with Jaeger
1010

11-
To configure FeedbackFusion to use Jaeger for distributed tracing, you need to set the `OTLP_ENDPOINT` to Jaeger's default OTLP port:
11+
To configure FeedbackFusion to use Jaeger for distributed tracing, you need to set the endpoint to Jaeger's default OTLP port:
1212

13-
```sh
14-
OTLP_ENDPOINT=http://jaeger:4317
13+
```yaml
14+
otlp:
15+
endpoint: http://jaeger:4317
1516
```

0 commit comments

Comments
 (0)