Skip to content

Commit 9a138f7

Browse files
authored
- add possibility to configure core icons (#921)
1 parent e8bf162 commit 9a138f7

5 files changed

Lines changed: 43 additions & 0 deletions

File tree

charts/ocis/docs/values-desc-table.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ a| [subs=-attributes]
7878
a| [subs=-attributes]
7979
`nil`
8080
| Reference to an existing storage-users config.
81+
| configRefs.webCoreIconsConfigRef
82+
a| [subs=-attributes]
83+
+string+
84+
a| [subs=-attributes]
85+
`nil`
86+
| Optional reference to an existing web core icon assets config. Will be mounted to /var/lib/ocis/web/assets/core/icons for Web. Does not get autogenerated. Hint: if you set this, you'll no longer be able to change the instance logo via the Web UI.
8187
| configRefs.webThemeAssetsConfigRef
8288
a| [subs=-attributes]
8389
+string+

charts/ocis/docs/values.adoc.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,6 +1643,15 @@ configRefs:
16431643
# type: [string, null]
16441644
# required: false
16451645
# @schema
1646+
# -- Optional reference to an existing web core icon assets config.
1647+
# Will be mounted to /var/lib/ocis/web/assets/core/icons for Web.
1648+
# Does not get autogenerated.
1649+
# Hint: if you set this, you'll no longer be able to change the instance logo via the Web UI.
1650+
webCoreIconsConfigRef:
1651+
# @schema
1652+
# type: [string, null]
1653+
# required: false
1654+
# @schema
16461655
# -- Reference to an existing authservice config.
16471656
authServiceConfigRef:
16481657

charts/ocis/templates/web/deployment.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@ spec:
214214
- name: theme-assets
215215
mountPath: "/var/lib/ocis/web/assets/themes/{{ .Values.services.web.config.theme.themeNameConfigRefs }}/assets"
216216
{{- end }}
217+
{{- if .Values.configRefs.webCoreIconsConfigRef }}
218+
- name: core-icon-assets
219+
mountPath: "/var/lib/ocis/web/assets/core/icons"
220+
{{- end }}
217221
- name: apps
218222
mountPath: /var/lib/ocis/web/assets/apps
219223
- name: {{ include "ocis.persistence.dataVolumeName" . }}
@@ -235,6 +239,11 @@ spec:
235239
configMap:
236240
name: {{ . | quote }}
237241
{{- end }}
242+
{{- with .Values.configRefs.webCoreIconsConfigRef }}
243+
- name: core-icon-assets
244+
configMap:
245+
name: {{ . | quote }}
246+
{{- end }}
238247
- name: apps
239248
emptyDir: {}
240249
{{- include "ocis.caVolume" $ | nindent 8}}

charts/ocis/values.schema.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,16 @@
138138
"null"
139139
]
140140
},
141+
"webCoreIconsConfigRef": {
142+
"default": "",
143+
"description": "Optional reference to an existing web core icon assets config.\nWill be mounted to /var/lib/ocis/web/assets/core/icons for Web.\nDoes not get autogenerated.\nHint: if you set this, you'll no longer be able to change the instance logo via the Web UI.",
144+
"required": [],
145+
"title": "webCoreIconsConfigRef",
146+
"type": [
147+
"string",
148+
"null"
149+
]
150+
},
141151
"webThemeAssetsConfigRef": {
142152
"default": "",
143153
"description": "Optional reference to an existing web theme assets config.\nWill be mounted to /var/lib/ocis/web/assets/themes/owncloud/assets for Web.\nDoes not get autogenerated.\nHint: if you set this, you'll no longer be able to change the instance logo via the Web UI.",

charts/ocis/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1642,6 +1642,15 @@ configRefs:
16421642
# type: [string, null]
16431643
# required: false
16441644
# @schema
1645+
# -- Optional reference to an existing web core icon assets config.
1646+
# Will be mounted to /var/lib/ocis/web/assets/core/icons for Web.
1647+
# Does not get autogenerated.
1648+
# Hint: if you set this, you'll no longer be able to change the instance logo via the Web UI.
1649+
webCoreIconsConfigRef:
1650+
# @schema
1651+
# type: [string, null]
1652+
# required: false
1653+
# @schema
16451654
# -- Reference to an existing authservice config.
16461655
authServiceConfigRef:
16471656

0 commit comments

Comments
 (0)