File tree 6 files changed +43
-1
lines changed
6 files changed +43
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,9 @@ See values.yaml for full documentation
61
61
| ` configs` | Optional Privatebin configuration file | ` {}` |
62
62
| ` podAnnotations` | Additional annotations to add to the pods | ` {}` |
63
63
| ` additionalLabels` | Additional labels to add to resources | ` {}` |
64
+ | ` extraVolumes` | Additional volumes to add to the pods | ` []` |
65
+ | ` extraVolumeMounts` | Additional volume mounts to add to the pods | ` []` |
66
+
64
67
65
68
# # Upgrades
66
69
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ name: privatebin
6
6
home : https://privatebin.info/
7
7
icon : https://raw.githubusercontent.com/PrivateBin/assets/master/images/preview/icon.png
8
8
type : application
9
- version : 0.16 .0
9
+ version : 0.17 .0
10
10
maintainers :
11
11
- name : bdashrad
12
12
Original file line number Diff line number Diff line change @@ -52,3 +52,16 @@ Return the appropriate apiVersion for podsecuritypolicy.
52
52
{ {- print " policy/v1beta1" -} }
53
53
{ {- end -} }
54
54
{ {- end -} }
55
+
56
+ { {/*
57
+ Renders a value that contains template.
58
+ Usage:
59
+ {{ include " privatebin.tplvalues.render" ( dict " value" .Values.path.to.the.Value " context" $) } }
60
+ */}}
61
+ { {- define " privatebin.tplvalues.render" -} }
62
+ { {- if typeIs " string" .value } }
63
+ { {- tpl .value .context } }
64
+ { {- else } }
65
+ { {- tpl (.value | toYaml) .context } }
66
+ { {- end } }
67
+ { {- end -} }
Original file line number Diff line number Diff line change 79
79
mountPath : /tmp
80
80
- name : nginx-cache
81
81
mountPath : /var/lib/nginx/tmp
82
+ {{- if .Values.extraVolumeMounts }}
83
+ {{- include "privatebin.tplvalues.render" (dict "value" .Values.extraVolumeMounts "context" $) | nindent 12 }}
84
+ {{- end }}
82
85
{{- with .Values.nodeSelector }}
83
86
nodeSelector :
84
87
{{- toYaml . | nindent 8 }}
@@ -107,4 +110,7 @@ spec:
107
110
medium : " Memory"
108
111
- name : nginx-cache
109
112
emptyDir : {}
113
+ {{- if .Values.extraVolumes }}
114
+ {{- include "privatebin.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 8 }}
115
+ {{- end }}
110
116
{{- end }}
Original file line number Diff line number Diff line change 78
78
mountPath : /tmp
79
79
- name : nginx-cache
80
80
mountPath : /var/lib/nginx/tmp
81
+ {{- if .Values.extraVolumeMounts }}
82
+ {{- include "privatebin.tplvalues.render" (dict "value" .Values.extraVolumeMounts "context" $) | nindent 12 }}
83
+ {{- end }}
81
84
{{- with .Values.nodeSelector }}
82
85
nodeSelector :
83
86
{{- toYaml . | nindent 8 }}
@@ -102,6 +105,9 @@ spec:
102
105
medium : " Memory"
103
106
- name : nginx-cache
104
107
emptyDir : {}
108
+ {{- if .Values.extraVolumes }}
109
+ {{- include "privatebin.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 8 }}
110
+ {{- end }}
105
111
volumeClaimTemplates :
106
112
- metadata :
107
113
name : storage
Original file line number Diff line number Diff line change @@ -59,6 +59,20 @@ securityContext:
59
59
fsGroup : 82
60
60
readOnlyRootFilesystem : true
61
61
62
+ extraVolumes : []
63
+ # Optionally specify extra list of additional volumes for PrivateBin pod.
64
+ # Example
65
+ # - name: nginx-params
66
+ # configMap:
67
+ # name: nginx-params
68
+
69
+ extraVolumeMounts : []
70
+ # Optionally specify extra list of additional volumeMounts for PrivateBin pod.
71
+ # Example
72
+ # - mountPath: /etc/nginx/server.d
73
+ # name: nginx-params
74
+
75
+
62
76
ingress :
63
77
enabled : false
64
78
annotations : {}
You can’t perform that action at this time.
0 commit comments