Skip to content

Commit f6dacf9

Browse files
authored
fix(templates/kubit): logic inversion on kubitSingleNamespace (#648)
* fix(templates/kubit): logic inversion on kubitSingleNamespace Prior to this PR setting `Values.kubitSingleNamespace` to `false` would cause it to watch only a single namespace, which seems to be the `kubit` namespace itself. The reason it ends up watching the `kubit` namespace can be seen in the deployment's namespace setting: ``` namespace: {{if .Values.kubitSingleNamespace}}{{.Values.namespaceOverride | default .Release.Namespace}}{{else}}kubit{{end}} ```
1 parent d07bc44 commit f6dacf9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

charts/influxdb3-clustered/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
type: application
33

4-
version: 0.1.1
4+
version: 0.1.2
55
appVersion: "20240326-922145"
66
name: influxdb3-clustered
77
description: InfluxDB 3.0 Clustered

charts/influxdb3-clustered/templates/kubit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ spec:
7979
spec:
8080
containers:
8181
- env:
82-
{{- if not .Values.kubitSingleNamespace}}
82+
{{- if .Values.kubitSingleNamespace}}
8383
- name: KUBIT_WATCHED_NAMESPACE
8484
valueFrom:
8585
fieldRef:
@@ -118,4 +118,4 @@ spec:
118118
type: RuntimeDefault
119119
serviceAccountName: kubit
120120
terminationGracePeriodSeconds: 10
121-
{{end}}
121+
{{end}}

0 commit comments

Comments
 (0)