diff --git a/charts/nebulous-gui-controller/Chart.yaml b/charts/nebulous-gui-controller/Chart.yaml index 5510512..eb59bd6 100644 --- a/charts/nebulous-gui-controller/Chart.yaml +++ b/charts/nebulous-gui-controller/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.0 +version: 0.2.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/nebulous-gui-controller/templates/add-user-to-csm.yaml b/charts/nebulous-gui-controller/templates/add-user-to-csm.yaml deleted file mode 100644 index bd66b74..0000000 --- a/charts/nebulous-gui-controller/templates/add-user-to-csm.yaml +++ /dev/null @@ -1,29 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: add-admin-user - annotations: - "helm.sh/hook": post-install - "helm.sh/hook-weight": "5" - "helm.sh/hook-delete-policy": hook-succeeded - labels: - app: - {{- include "nebulous-gui-controller.labels" . | nindent 4 }} -spec: - template: - spec: - initContainers: - - name: wait-for-mongodb - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" - command: ['sh', '-c', 'until nc -z nebulous-gui-controller-mongodb 27017; do echo waiting for mongodb; sleep 2; done;'] - containers: - - name: add-admin-user - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" - command: - - sh - - -c - - "echo '{{ .Values.apostropheCMS.user.password }}' | node app.js @apostrophecms/user:add {{ .Values.apostropheCMS.user.name }} admin" - env: - {{- toYaml .Values.env | nindent 10 }} - restartPolicy: Never - backoffLimit: 4 diff --git a/charts/nebulous-gui-controller/values.yaml b/charts/nebulous-gui-controller/values.yaml index eb825d2..958dc45 100644 --- a/charts/nebulous-gui-controller/values.yaml +++ b/charts/nebulous-gui-controller/values.yaml @@ -96,8 +96,3 @@ env: value: "nebulous" - name: APOS_MONGODB_URI value: "mongodb://username:password@nebulous-gui-controller-mongodb:27017/admin" - -apostropheCMS: - user: - name: admin - password: admin