Commit 2ee220c6 authored by ted's avatar ted Committed by David McKay

allow admin user creation to be skipped

Setting 'create' to 'true' as it's generally wanted, but now the flag exists so it can be skipped. I tested this locally with both options to make sure it worked, and I copied the naming from influx1's chart, but feel free to make changes as necessary. While the PR has been open, the verion number got bumped forward, and I needed to bump it again to clear lint. So I rebased and force-pushed my branch to make it clear. - [ ] CHANGELOG.md updated - [ ] Rebased/mergable - [ ] Tests pass - [ ] Sign [CLA](https://influxdata.com/community/cla/) (if not already signed)
parent d659011c
......@@ -5,7 +5,7 @@ name: influxdb2
description: A Helm chart for InfluxDB v2
home: https://www.influxdata.com/products/influxdb-overview/influxdb-2-0/
type: application
version: 1.0.12
version: 1.0.13
maintainers:
- name: rawkode
email: rawkode@influxdata.com
......
{{- if .Values.adminUser.create -}}
apiVersion: batch/v1
kind: Job
metadata:
......@@ -41,3 +42,4 @@ spec:
-p ${INFLUXDB_PASSWORD} \
-t ${INFLUXDB_TOKEN}
restartPolicy: OnFailure
{{- end -}}
......@@ -29,6 +29,7 @@ securityContext: {}
## Defaults indicated below
##
adminUser:
create: true
organization: "influxdata"
bucket: "default"
user: "admin"
......
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