fix: config rw directory

This commit is contained in:
ange 2024-05-16 00:01:50 +02:00
parent cbf11ca6e4
commit 095497ea0b
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
6 changed files with 39 additions and 14 deletions

View File

@ -1,3 +1,2 @@
---
# For configuration options and examples, please see:
# https://gethomepage.dev/latest/configs/bookmarks

View File

@ -1,2 +1,4 @@
---
# https://gethomepage.dev/latest/configs/kubernetes/
mode: cluster

View File

@ -1,6 +1,15 @@
---
# For configuration options and examples, please see:
# https://gethomepage.dev/latest/configs/settings
headerStyle: clean
instanceName: "$INSTANCE_NAME"
headerStyle: clean
target: _self
layout:
Kubernetes:
header: false
quicklaunch:
searchDescriptions: true
hideInternetSearch: false
showSearchSuggestions: true

View File

@ -6,4 +6,4 @@
provider: custom
url: https://searx.gmoker.com/search?q=
suggestionUrl: https://searx.gmoker.com/autocompleter?q=
target: _blank
target: _self

View File

@ -30,13 +30,13 @@ function kgcmkey() {
kubectl get configmap "$cm" -o jsonpath="{.data.$key}"
}
(cd config
cmd=(kcreatecm homepage-config)
for f in *; do
cmd+=("--from-file=$f=<(envsubst \"\$(env | xargs printf '$%s ')\" < $f)")
done
eval "${cmd[*]}"
)
kcreatecm homepage \
--from-file=bookmarks.yaml =<(envsubst "$(env | xargs printf '$%s ')" < bookmarks.yaml) \
--from-file=custom.css =<(envsubst "$(env | xargs printf '$%s ')" < custom.css) \
--from-file=custom.js =<(envsubst "$(env | xargs printf '$%s ')" < custom.js) \
--from-file=kubernetes.yaml=<(envsubst "$(env | xargs printf '$%s ')" < kubernetes.yaml) \
--from-file=settings.yaml =<(envsubst "$(env | xargs printf '$%s ')" < settings.yaml) \
--from-file=widgets.yaml =<(envsubst "$(env | xargs printf '$%s ')" < widgets.yaml)
kapply common/clusterrole.yaml common/app.yaml

View File

@ -67,9 +67,24 @@ spec:
value: stdout
volumeMounts:
- name: config
mountPath: /app/config/
readOnly: true
mountPath: /app/config/bookmarks.yaml
subPath: bookmarks.yaml
- name: config
mountPath: /app/config/custom.css
subPath: custom.css
- name: config
mountPath: /app/config/custom.js
subPath: custom.js
- name: config
mountPath: /app/config/kubernetes.yaml
subPath: kubernetes.yaml
- name: config
mountPath: /app/config/settings.yaml
subPath: settings.yaml
- name: config
mountPath: /app/config/widgets.yaml
subPath: widgets.yaml
volumes:
- name: config
configMap:
name: homepage-config
name: homepage