Skip to content

Commit 5626757

Browse files
authored
Merge branch 'main' into feat/298/namespace-filtering
2 parents f08c2ae + d7e2531 commit 5626757

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

helm/kagent/templates/deployment.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ spec:
4747
- name: WATCH_NAMESPACES
4848
value: {{ include "kagent.watchNamespaces" . }}
4949
{{- end }}
50+
{{- with .Values.controller.env }}
51+
{{- toYaml . | nindent 12 }}
52+
{{- end }}
5053
- name: app
5154
securityContext:
5255
{{- toYaml .Values.securityContext | nindent 12 }}
@@ -66,6 +69,13 @@ spec:
6669
value: {{ .Values.otel.tracing.exporter.otlp.timeout | quote }}
6770
- name: OTEL_EXPORTER_OTLP_TRACES_INSECURE
6871
value: {{ .Values.otel.tracing.exporter.otlp.insecure | quote }}
72+
- name: KAGENT_NAMESPACE
73+
valueFrom:
74+
fieldRef:
75+
fieldPath: metadata.namespace
76+
{{- with .Values.app.env }}
77+
{{- toYaml . | nindent 12 }}
78+
{{- end }}
6979
ports:
7080
- name: http
7181
containerPort: {{ .Values.service.ports.app.targetPort }}
@@ -86,6 +96,9 @@ spec:
8696
env:
8797
- name: NEXT_PUBLIC_BACKEND_URL
8898
value: "http://{{ include "kagent.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local/api"
99+
{{- with .Values.ui.env }}
100+
{{- toYaml . | nindent 12 }}
101+
{{- end }}
89102
ports:
90103
- name: http
91104
containerPort: {{ .Values.service.ports.ui.targetPort }}

helm/kagent/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ controller:
3838
limits:
3939
cpu: 500m
4040
memory: 512Mi
41+
env: {} # Additional environment variables for the controller can be added here
4142

4243
app:
4344
image:
@@ -52,6 +53,7 @@ app:
5253
limits:
5354
cpu: 1000m
5455
memory: 1Gi
56+
env: {} # Additional environment variables for the app can be added here
5557

5658
ui:
5759
image:
@@ -66,6 +68,7 @@ ui:
6668
limits:
6769
cpu: 1000m
6870
memory: 1Gi
71+
env: {} # Additional environment variables for the ui can be added here
6972

7073
service:
7174
type: ClusterIP

0 commit comments

Comments
 (0)