Skip to content

Commit

Permalink
fix(templates/kubit): logic inversion on kubitSingleNamespace (#648)
Browse files Browse the repository at this point in the history
* 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}}
```
  • Loading branch information
waynr authored May 23, 2024
1 parent d07bc44 commit f6dacf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/influxdb3-clustered/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
type: application

version: 0.1.1
version: 0.1.2
appVersion: "20240326-922145"
name: influxdb3-clustered
description: InfluxDB 3.0 Clustered
Expand Down
4 changes: 2 additions & 2 deletions charts/influxdb3-clustered/templates/kubit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ spec:
spec:
containers:
- env:
{{- if not .Values.kubitSingleNamespace}}
{{- if .Values.kubitSingleNamespace}}
- name: KUBIT_WATCHED_NAMESPACE
valueFrom:
fieldRef:
Expand Down Expand Up @@ -118,4 +118,4 @@ spec:
type: RuntimeDefault
serviceAccountName: kubit
terminationGracePeriodSeconds: 10
{{end}}
{{end}}

0 comments on commit f6dacf9

Please sign in to comment.