Skip to content

Commit 8973e09

Browse files
authored
chore: deploy AppInstance in ConfigMap for single-namespace (#687)
1 parent 7750ddd commit 8973e09

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

charts/influxdb3-clustered/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v2
22
type: application
33

4-
version: 0.1.7
5-
appVersion: " 20240925-1257864"
4+
version: 0.1.8
5+
appVersion: "20240925-1257864"
66
name: influxdb3-clustered
77
description: InfluxDB 3.0 Clustered
88
maintainers:

charts/influxdb3-clustered/templates/app-instance.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- define "app-instance.influxdb" -}}
12
apiVersion: kubecfg.dev/v1alpha1
23
kind: AppInstance
34
metadata:
@@ -65,4 +66,19 @@ spec:
6566
{{- end}}
6667
{{- if .Values.featureFlags}}
6768
featureFlags: {{.Values.featureFlags | toYaml | nindent 6}}
68-
{{- end}}
69+
{{- end}}
70+
---
71+
{{- end }}
72+
73+
{{- if .Values.kubitSingleNamespace}}
74+
apiVersion: v1
75+
kind: ConfigMap
76+
metadata:
77+
name: app-instance
78+
namespace: {{ .Values.NamspaceOverride | default .Release.Namespace }}
79+
data:
80+
app-instance: |
81+
{{ include "app-instance.influxdb" . | fromYaml | toJson }}
82+
{{- else }}
83+
{{ include "app-instance.influxdb" . }}
84+
{{- end }}

charts/influxdb3-clustered/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ nameOverride: ""
99
namespaceOverride: ""
1010
fullnameOverride: ""
1111
kubitSingleNamespace: false
12-
operatorImageVersion: "v0.0.19"
12+
operatorImageVersion: "v0.0.20"
1313
operatorImageOverride: ""
1414

1515
# set to true if you have previously installed the kubit operator from another source

0 commit comments

Comments
 (0)