fix: config rw directory
This commit is contained in:
parent
cbf11ca6e4
commit
095497ea0b
@ -1,3 +1,2 @@
|
||||
---
|
||||
# For configuration options and examples, please see:
|
||||
# https://gethomepage.dev/latest/configs/bookmarks
|
||||
|
@ -1,2 +1,4 @@
|
||||
---
|
||||
# https://gethomepage.dev/latest/configs/kubernetes/
|
||||
|
||||
mode: cluster
|
||||
|
@ -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
|
||||
|
@ -6,4 +6,4 @@
|
||||
provider: custom
|
||||
url: https://searx.gmoker.com/search?q=
|
||||
suggestionUrl: https://searx.gmoker.com/autocompleter?q=
|
||||
target: _blank
|
||||
target: _self
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user