Unverified Commit f6dacf9a authored by wayne's avatar wayne Committed by GitHub

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}} ```
parent d07bc44a
apiVersion: v2
type: application
version: 0.1.1
version: 0.1.2
appVersion: "20240326-922145"
name: influxdb3-clustered
description: InfluxDB 3.0 Clustered
......
......@@ -79,7 +79,7 @@ spec:
spec:
containers:
- env:
{{- if not .Values.kubitSingleNamespace}}
{{- if .Values.kubitSingleNamespace}}
- name: KUBIT_WATCHED_NAMESPACE
valueFrom:
fieldRef:
......@@ -118,4 +118,4 @@ spec:
type: RuntimeDefault
serviceAccountName: kubit
terminationGracePeriodSeconds: 10
{{end}}
\ No newline at end of file
{{end}}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment