Skip to content

Commit deefe16

Browse files
committed
add helpmenu, remove users
1 parent 68f5758 commit deefe16

File tree

5 files changed

+21
-59
lines changed

5 files changed

+21
-59
lines changed

Chart.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ description: >
1313
# This is the chart version. This version number should be incremented each time you make changes
1414
# to the chart and its templates, including the app version.
1515
# Versions are expected to follow Semantic Versioning (https://semver.org/)
16-
version: 0.14.3
16+
version: 0.14.4
1717

1818
# This is the version number of the application being deployed. This version number should be
1919
# incremented each time you make changes to the application. Versions are not expected to
@@ -55,4 +55,7 @@ annotations:
5555
- name: Helm Chart
5656
url: https://github.com/clowder-framework/clowder-helm
5757
artifacthub.io/changes: |
58-
- Update clowder to version 1.19.2
58+
- allow for mounting of extra volumes in clowder
59+
- use tempfolder for clowder (/home/clowder/data/tmp)
60+
- use helpmenu to add additional entries to the botttom of the help menu.
61+
- remove users option, use initialadmins instead

templates/NOTES.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
11
{{- $fullname := include "clowder.fullname" . }}
22
** Please be patient while the chart is being deployed **
33

4-
{{- if .Values.users }}
5-
Credentials:
6-
{{- range $index, $element := .Values.users }}
7-
{{- if .username }}
8-
Username : {{ .username }}
9-
{{- else }}
10-
Username : {{ .email }}
11-
{{- end }}
12-
echo "Password : $(kubectl get secret --namespace {{ $.Release.Namespace }} {{ $fullname }} -o jsonpath="{.data.password-{{ $index }}}" | base64 --decode)"
13-
{{- end }}
14-
{{- end }}
15-
164
Clowder Admin Key:
175
echo "Clowder Key : $(kubectl get secret --namespace {{ .Release.Namespace }} {{ $fullname }} -o jsonpath="{.data.clowder-key}" | base64 --decode)"
186

templates/configmap.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ data:
7171
elasticsearchSettings.serverAddress={{ include "clowder.fullname" . }}-elasticsearch-discovery
7272
elasticsearchSettings.serverPort=9300
7373
{{- end }}
74+
helpMenu = [
75+
{{- range .Values.helpmenu }}
76+
{{- . | toJson | nindent 6 }}
77+
{{- end }}
78+
]
79+
clowder.proxy {
80+
}
7481
{{- range .Values.extraConfig }}
7582
{{ . }}
7683
{{- end }}

templates/deployment.yaml

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ spec:
4242
args:
4343
- -c
4444
- >-
45-
mkdir {{ .Values.tempfolder }} &&
45+
mkdir -p {{ .Values.tempfolder }} &&
4646
chown "{{ .Values.userid }}:{{ .Values.groupid }}" /home/clowder/data {{ .Values.tempfolder }}
4747
securityContext:
4848
runAsUser: 0
@@ -53,36 +53,6 @@ spec:
5353
{{- with .Values.extraVolumeMounts }}
5454
{{- . | toYaml | nindent 10 }}
5555
{{- end }}
56-
{{- end }}
57-
{{- if .Values.users }}
58-
{{- range $index, $element := .Values.users }}
59-
- name: mongo-add-user-{{ $index }}
60-
image: "{{ $.Values.image.repository }}/mongo-init:{{ $.Values.image.tag | default $.Chart.AppVersion }}"
61-
imagePullPolicy: {{ $.Values.image.pullPolicy }}
62-
env:
63-
- name: MONGO_URI
64-
valueFrom:
65-
secretKeyRef:
66-
name: {{ $.Release.Name }}
67-
key: mongodb-uri
68-
{{- if .username }}
69-
- name: USERNAME
70-
value: {{ .username | quote }}
71-
{{- end }}
72-
- name: PASSWORD
73-
valueFrom:
74-
secretKeyRef:
75-
name: {{ $.Release.Name }}
76-
key: "password-{{ $index }}"
77-
- name: EMAIL_ADDRESS
78-
value: {{ .email | quote }}
79-
- name: FIRST_NAME
80-
value: {{ .firstname | quote }}
81-
- name: LAST_NAME
82-
value: {{ .lastname | quote }}
83-
- name: ADMIN
84-
value: {{ .admin | quote }}
85-
{{- end }}
8656
{{- end }}
8757
containers:
8858
- name: {{ .Chart.Name }}

values.yaml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ memory: 2048
2121

2222
## List of admins for Clowder. These people will at every restart of clowder be given admin
2323
## priveleges. Can also be used to recover system by giving existing user admin rights.
24+
## Make sure to provide at least one initialAdmin user, otherwise you will not be able
25+
## to login.
2426
initialAdmins:
2527
2628

@@ -36,20 +38,6 @@ registerThroughAdmins: true
3638
## a replicated setup. Best is for kubernetes to generate a random key.
3739
#secretKey:
3840

39-
## List of initial users. These users will be added after clowder is installed. The
40-
## users will still need to accept the data policy.
41-
## email : Email address, also used to login
42-
## password : Initial password, if not set a random password is generated
43-
## firstname : First name of the user
44-
## lastname : Last name of the user
45-
## admin : should user be given admin privileges
46-
users: []
47-
# - email: [email protected]
48-
# #password: secret
49-
# firstname: Admin
50-
# lastname: User
51-
# admin: true
52-
5341
## idleTimeoutInMinutes the time in minutes that your session is valid for until clowder
5442
## logs you out.
5543
idleTimeoutInMinutes: 30
@@ -84,6 +72,12 @@ groupid: 0
8472
## is for this to be on the same volume as the final storage, or on a fast storage.
8573
tempfolder: /home/clowder/data/tmp/
8674

75+
## helpmenu is a list of entries that are added to the help menu in clowder, each entry has
76+
## two fields, label (shown in menu) and the url.
77+
helpmenu: []
78+
# - label: "FAQs"
79+
# url: "https://example.com/faqs"
80+
8781
# ----------------------------------------------------------------------
8882
# Configure the ingress object to hook into existing infastructure
8983
# ref : http://kubernetes.io/docs/user-guide/ingress/

0 commit comments

Comments
 (0)