File tree Expand file tree Collapse file tree 13 files changed +245
-0
lines changed Expand file tree Collapse file tree 13 files changed +245
-0
lines changed Original file line number Diff line number Diff line change 28
28
{{- if .Values.component.admin.podServiceAccount }}
29
29
serviceAccount : " {{ .Values.component.admin.podServiceAccount }}"
30
30
serviceAccountName : " {{ .Values.component.admin.podServiceAccount }}"
31
+ {{- end }}
32
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
33
+ initContainers :
34
+ - name : create-mount-subdir
35
+ command :
36
+ - " /bin/bash"
37
+ - " -c"
38
+ args : ['
39
+ mkdir -p /logs/admin
40
+ ' ]
41
+ image: "bitnami/kubectl:1.19"
42
+ volumeMounts:
43
+ - name: applogs
44
+ mountPath: /logs
31
45
{{- end }}
32
46
containers:
33
47
- name: {{ template "bitwarden.admin" . }}
58
72
mountPath: /etc/bitwarden/core/aspnet-dataprotection
59
73
- name: licenses
60
74
mountPath: /etc/bitwarden/core/licenses
75
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
76
+ - name: applogs
77
+ mountPath: /etc/bitwarden/logs
78
+ subPath: admin
79
+ {{- end }}
61
80
{{- if .Values.secrets.secretProviderClass}}
62
81
- name: secrets-store-inline
63
82
mountPath: "/mnt/secrets-store"
72
91
- name: licenses
73
92
persistentVolumeClaim:
74
93
claimName: {{ template "bitwarden.licenses" . }}
94
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
95
+ - name: applogs
96
+ persistentVolumeClaim:
97
+ claimName: {{ template "bitwarden.applogs" . }}
98
+ {{- end }}
75
99
{{- if .Values.secrets.secretProviderClass}}
76
100
- name: secrets-store-inline
77
101
csi:
Original file line number Diff line number Diff line change 28
28
{{- if .Values.component.api.podServiceAccount }}
29
29
serviceAccount : " {{ .Values.component.api.podServiceAccount }}"
30
30
serviceAccountName : " {{ .Values.component.api.podServiceAccount }}"
31
+ {{- end }}
32
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
33
+ initContainers :
34
+ - name : create-mount-subdir
35
+ command :
36
+ - " /bin/bash"
37
+ - " -c"
38
+ args : ['
39
+ mkdir -p /logs/api
40
+ ' ]
41
+ image: "bitnami/kubectl:1.19"
42
+ volumeMounts:
43
+ - name: applogs
44
+ mountPath: /logs
31
45
{{- end }}
32
46
containers:
33
47
- name: {{ template "bitwarden.api" . }}
60
74
mountPath: /etc/bitwarden/core/aspnet-dataprotection
61
75
- name: licenses
62
76
mountPath: /etc/bitwarden/core/licenses
77
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
78
+ - name: applogs
79
+ mountPath: /etc/bitwarden/logs
80
+ subPath: api
81
+ {{- end }}
63
82
{{- if .Values.secrets.secretProviderClass}}
64
83
- name: secrets-store-inline
65
84
mountPath: "/mnt/secrets-store"
77
96
- name: licenses
78
97
persistentVolumeClaim:
79
98
claimName: {{ template "bitwarden.licenses" . }}
99
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
100
+ - name: applogs
101
+ persistentVolumeClaim:
102
+ claimName: {{ template "bitwarden.applogs" . }}
103
+ {{- end }}
80
104
{{- if .Values.secrets.secretProviderClass}}
81
105
- name: secrets-store-inline
82
106
csi:
Original file line number Diff line number Diff line change 28
28
{{- if .Values.component.events.podServiceAccount }}
29
29
serviceAccount : " {{ .Values.component.events.podServiceAccount }}"
30
30
serviceAccountName : " {{ .Values.component.events.podServiceAccount }}"
31
+ {{- end }}
32
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
33
+ initContainers :
34
+ - name : create-mount-subdir
35
+ command :
36
+ - " /bin/bash"
37
+ - " -c"
38
+ args : ['
39
+ mkdir -p /logs/events
40
+ ' ]
41
+ image: "bitnami/kubectl:1.19"
42
+ volumeMounts:
43
+ - name: applogs
44
+ mountPath: /logs
31
45
{{- end }}
32
46
containers:
33
47
- name: {{ template "bitwarden.events" . }}
59
73
mountPath: "/mnt/secrets-store"
60
74
readOnly: true
61
75
{{- end }}
76
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
77
+ - name: applogs
78
+ mountPath: /etc/bitwarden/logs
79
+ subPath: events
80
+ {{- end }}
62
81
securityContext:
63
82
{{ toYaml .Values.component.events.securityContext | indent 10 }}
64
83
volumes:
70
89
volumeAttributes:
71
90
secretProviderClass: {{ .Values.secrets.secretProviderClass }}
72
91
{{- end }}
92
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
93
+ - name: applogs
94
+ persistentVolumeClaim:
95
+ claimName: {{ template "bitwarden.applogs" . }}
96
+ {{- end }}
73
97
74
98
---
75
99
apiVersion: v1
Original file line number Diff line number Diff line change @@ -182,6 +182,13 @@ Name of Licenses volume
182
182
{ { template " bitwarden.fullname" . } }-licenses
183
183
{ {- end -} }
184
184
185
+ { {/*
186
+ Name of Logs volume
187
+ */} }
188
+ { {- define " bitwarden.applogs" -} }
189
+ { { template " bitwarden.fullname" . } }-applogs
190
+ { {- end -} }
191
+
185
192
186
193
{ {/*
187
194
Name of MSSQL Backups volume
Original file line number Diff line number Diff line change 28
28
{{- if .Values.component.icons.podServiceAccount }}
29
29
serviceAccount : " {{ .Values.component.icons.podServiceAccount }}"
30
30
serviceAccountName : " {{ .Values.component.icons.podServiceAccount }}"
31
+ {{- end }}
32
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
33
+ initContainers :
34
+ - name : create-mount-subdir
35
+ command :
36
+ - " /bin/bash"
37
+ - " -c"
38
+ args : ['
39
+ mkdir -p /logs/icons
40
+ ' ]
41
+ image: "bitnami/kubectl:1.19"
42
+ volumeMounts:
43
+ - name: applogs
44
+ mountPath: /logs
31
45
{{- end }}
32
46
containers:
33
47
- name: {{ template "bitwarden.icons" . }}
57
71
mountPath: "/mnt/secrets-store"
58
72
readOnly: true
59
73
{{- end }}
74
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
75
+ - name: applogs
76
+ mountPath: /etc/bitwarden/logs
77
+ subPath: icons
78
+ {{- end }}
60
79
resources:
61
80
{{ toYaml .Values.component.icons.resources | indent 10 }}
62
81
securityContext:
70
89
volumeAttributes:
71
90
secretProviderClass: {{ .Values.secrets.secretProviderClass }}
72
91
{{- end }}
92
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
93
+ - name: applogs
94
+ persistentVolumeClaim:
95
+ claimName: {{ template "bitwarden.applogs" . }}
96
+ {{- end }}
73
97
74
98
---
75
99
apiVersion: v1
Original file line number Diff line number Diff line change 28
28
{{- if .Values.component.identity.podServiceAccount }}
29
29
serviceAccount : " {{ .Values.component.identity.podServiceAccount }}"
30
30
serviceAccountName : " {{ .Values.component.identity.podServiceAccount }}"
31
+ {{- end }}
32
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
33
+ initContainers :
34
+ - name : create-mount-subdir
35
+ command :
36
+ - " /bin/bash"
37
+ - " -c"
38
+ args : ['
39
+ mkdir -p /logs/identity
40
+ ' ]
41
+ image: "bitnami/kubectl:1.19"
42
+ volumeMounts:
43
+ - name: applogs
44
+ mountPath: /logs
31
45
{{- end }}
32
46
containers:
33
47
- name: {{ template "bitwarden.identity" . }}
62
76
mountPath: /etc/bitwarden/core/aspnet-dataprotection
63
77
- name: licenses
64
78
mountPath: /etc/bitwarden/core/licenses
79
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
80
+ - name: applogs
81
+ mountPath: /etc/bitwarden/logs
82
+ subPath: identity
83
+ {{- end }}
65
84
{{- if .Values.secrets.secretProviderClass}}
66
85
- name: secrets-store-inline
67
86
mountPath: "/mnt/secrets-store"
79
98
- name: licenses
80
99
persistentVolumeClaim:
81
100
claimName: {{ template "bitwarden.licenses" . }}
101
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
102
+ - name: applogs
103
+ persistentVolumeClaim:
104
+ claimName: {{ template "bitwarden.applogs" . }}
105
+ {{- end }}
82
106
{{- if .Values.secrets.secretProviderClass}}
83
107
- name: secrets-store-inline
84
108
csi:
Original file line number Diff line number Diff line change 28
28
{{- if .Values.component.notifications.podServiceAccount }}
29
29
serviceAccount : " {{ .Values.component.notifications.podServiceAccount }}"
30
30
serviceAccountName : " {{ .Values.component.notifications.podServiceAccount }}"
31
+ {{- end }}
32
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
33
+ initContainers :
34
+ - name : create-mount-subdir
35
+ command :
36
+ - " /bin/bash"
37
+ - " -c"
38
+ args : ['
39
+ mkdir -p /logs/notifications
40
+ ' ]
41
+ image: "bitnami/kubectl:1.19"
42
+ volumeMounts:
43
+ - name: applogs
44
+ mountPath: /logs
31
45
{{- end }}
32
46
containers:
33
47
- name: {{ template "bitwarden.notifications" . }}
59
73
mountPath: "/mnt/secrets-store"
60
74
readOnly: true
61
75
{{- end }}
76
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
77
+ - name: applogs
78
+ mountPath: /etc/bitwarden/logs
79
+ subPath: notifications
80
+ {{- end }}
62
81
securityContext:
63
82
{{ toYaml .Values.component.notifications.securityContext | indent 10 }}
64
83
volumes:
70
89
volumeAttributes:
71
90
secretProviderClass: {{ .Values.secrets.secretProviderClass }}
72
91
{{- end }}
92
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
93
+ - name: applogs
94
+ persistentVolumeClaim:
95
+ claimName: {{ template "bitwarden.applogs" . }}
96
+ {{- end }}
73
97
74
98
---
75
99
apiVersion: v1
Original file line number Diff line number Diff line change 44
44
globalSettings__oidcIdentityClientKey : {{ (randAlphaNum 64) | quote }}
45
45
globalSettings__duo__aKey : {{ (randAlphaNum 64) | quote }}
46
46
{{- end }}
47
+ {{- if not (and .Values.volume.logs .Values.volume.logs.enabled) }}
47
48
globalSettings__logDirectory : " /dev/null"
49
+ {{- end }}
48
50
globalSettings__logRollBySizeLimit : " "
49
51
globalSettings__syslog__destination : " "
50
52
globalSettings__dataProtection__directory : " /etc/bitwarden/core/aspnet-dataprotection"
Original file line number Diff line number Diff line change 28
28
{{- if .Values.component.scim.podServiceAccount }}
29
29
serviceAccount : " {{ .Values.component.scim.podServiceAccount }}"
30
30
serviceAccountName : " {{ .Values.component.scim.podServiceAccount }}"
31
+ {{- end }}
32
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
33
+ initContainers :
34
+ - name : create-mount-subdir
35
+ command :
36
+ - " /bin/bash"
37
+ - " -c"
38
+ args : ['
39
+ mkdir -p /logs/scim
40
+ ' ]
41
+ image: "bitnami/kubectl:1.19"
42
+ volumeMounts:
43
+ - name: applogs
44
+ mountPath: /logs
31
45
{{- end }}
32
46
containers:
33
47
- name: {{ template "bitwarden.scim" . }}
61
75
mountPath: /etc/bitwarden/core/aspnet-dataprotection
62
76
- name: licenses
63
77
mountPath: /etc/bitwarden/core/licenses
78
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
79
+ - name: applogs
80
+ mountPath: /etc/bitwarden/logs
81
+ subPath: scim
82
+ {{- end }}
64
83
{{- if .Values.secrets.secretProviderClass}}
65
84
- name: secrets-store-inline
66
85
mountPath: "/mnt/secrets-store"
78
97
- name: licenses
79
98
persistentVolumeClaim:
80
99
claimName: {{ template "bitwarden.licenses" . }}
100
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
101
+ - name: applogs
102
+ persistentVolumeClaim:
103
+ claimName: {{ template "bitwarden.applogs" . }}
104
+ {{- end }}
81
105
{{- if .Values.secrets.secretProviderClass}}
82
106
- name: secrets-store-inline
83
107
csi:
Original file line number Diff line number Diff line change 28
28
{{- if .Values.component.sso.podServiceAccount }}
29
29
serviceAccount : " {{ .Values.component.sso.podServiceAccount }}"
30
30
serviceAccountName : " {{ .Values.component.sso.podServiceAccount }}"
31
+ {{- end }}
32
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
33
+ initContainers :
34
+ - name : create-mount-subdir
35
+ command :
36
+ - " /bin/bash"
37
+ - " -c"
38
+ args : ['
39
+ mkdir -p /logs/sso
40
+ ' ]
41
+ image: "bitnami/kubectl:1.19"
42
+ volumeMounts:
43
+ - name: applogs
44
+ mountPath: /logs
31
45
{{- end }}
32
46
containers:
33
47
- name: {{ template "bitwarden.sso" . }}
62
76
mountPath: /etc/bitwarden/core/aspnet-dataprotection
63
77
- name: licenses
64
78
mountPath: /etc/bitwarden/core/licenses
79
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
80
+ - name: applogs
81
+ mountPath: /etc/bitwarden/logs
82
+ subPath: sso
83
+ {{- end }}
65
84
{{- if .Values.secrets.secretProviderClass}}
66
85
- name: secrets-store-inline
67
86
mountPath: "/mnt/secrets-store"
79
98
- name: licenses
80
99
persistentVolumeClaim:
81
100
claimName: {{ template "bitwarden.licenses" . }}
101
+ {{- if and .Values.volume.logs .Values.volume.logs.enabled }}
102
+ - name: applogs
103
+ persistentVolumeClaim:
104
+ claimName: {{ template "bitwarden.applogs" . }}
105
+ {{- end }}
82
106
{{- if .Values.secrets.secretProviderClass}}
83
107
- name: secrets-store-inline
84
108
csi:
You can’t perform that action at this time.
0 commit comments