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 apiVersion: v2
type: application type: application
version: 0.1.1 version: 0.1.2
appVersion: "20240326-922145" appVersion: "20240326-922145"
name: influxdb3-clustered name: influxdb3-clustered
description: InfluxDB 3.0 Clustered description: InfluxDB 3.0 Clustered
......
...@@ -79,7 +79,7 @@ spec: ...@@ -79,7 +79,7 @@ spec:
spec: spec:
containers: containers:
- env: - env:
{{- if not .Values.kubitSingleNamespace}} {{- if .Values.kubitSingleNamespace}}
- name: KUBIT_WATCHED_NAMESPACE - name: KUBIT_WATCHED_NAMESPACE
valueFrom: valueFrom:
fieldRef: fieldRef:
...@@ -118,4 +118,4 @@ spec: ...@@ -118,4 +118,4 @@ spec:
type: RuntimeDefault type: RuntimeDefault
serviceAccountName: kubit serviceAccountName: kubit
terminationGracePeriodSeconds: 10 terminationGracePeriodSeconds: 10
{{end}} {{end}}
\ No newline at end of file
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