Skip to content

Commit

Permalink
chore: deploy AppInstance in ConfigMap for single-namespace (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
bnpfeife authored Oct 31, 2024
1 parent 7750ddd commit 8973e09
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/influxdb3-clustered/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
type: application

version: 0.1.7
appVersion: " 20240925-1257864"
version: 0.1.8
appVersion: "20240925-1257864"
name: influxdb3-clustered
description: InfluxDB 3.0 Clustered
maintainers:
Expand Down
18 changes: 17 additions & 1 deletion charts/influxdb3-clustered/templates/app-instance.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- define "app-instance.influxdb" -}}
apiVersion: kubecfg.dev/v1alpha1
kind: AppInstance
metadata:
Expand Down Expand Up @@ -65,4 +66,19 @@ spec:
{{- end}}
{{- if .Values.featureFlags}}
featureFlags: {{.Values.featureFlags | toYaml | nindent 6}}
{{- end}}
{{- end}}
---
{{- end }}

{{- if .Values.kubitSingleNamespace}}
apiVersion: v1
kind: ConfigMap
metadata:
name: app-instance
namespace: {{ .Values.NamspaceOverride | default .Release.Namespace }}
data:
app-instance: |
{{ include "app-instance.influxdb" . | fromYaml | toJson }}
{{- else }}
{{ include "app-instance.influxdb" . }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/influxdb3-clustered/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ nameOverride: ""
namespaceOverride: ""
fullnameOverride: ""
kubitSingleNamespace: false
operatorImageVersion: "v0.0.19"
operatorImageVersion: "v0.0.20"
operatorImageOverride: ""

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

0 comments on commit 8973e09

Please sign in to comment.