Skip to content

Commit

Permalink
fix(templates/kubit): logic inversion on kubitSingleNamespace
Browse files Browse the repository at this point in the history
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 committed May 23, 2024
1 parent d07bc44 commit fa21efe
Showing 1 changed file with 2 additions and 2 deletions.
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 fa21efe

Please sign in to comment.