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
|
# https://gethomepage.dev/latest/configs/bookmarks
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
# https://gethomepage.dev/latest/configs/kubernetes/
|
||||||
|
|
||||||
mode: cluster
|
mode: cluster
|
||||||
|
@ -1,6 +1,15 @@
|
|||||||
---
|
---
|
||||||
# For configuration options and examples, please see:
|
|
||||||
# https://gethomepage.dev/latest/configs/settings
|
# https://gethomepage.dev/latest/configs/settings
|
||||||
|
|
||||||
headerStyle: clean
|
|
||||||
instanceName: "$INSTANCE_NAME"
|
instanceName: "$INSTANCE_NAME"
|
||||||
|
headerStyle: clean
|
||||||
|
target: _self
|
||||||
|
|
||||||
|
layout:
|
||||||
|
Kubernetes:
|
||||||
|
header: false
|
||||||
|
|
||||||
|
quicklaunch:
|
||||||
|
searchDescriptions: true
|
||||||
|
hideInternetSearch: false
|
||||||
|
showSearchSuggestions: true
|
||||||
|
@ -6,4 +6,4 @@
|
|||||||
provider: custom
|
provider: custom
|
||||||
url: https://searx.gmoker.com/search?q=
|
url: https://searx.gmoker.com/search?q=
|
||||||
suggestionUrl: https://searx.gmoker.com/autocompleter?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}"
|
kubectl get configmap "$cm" -o jsonpath="{.data.$key}"
|
||||||
}
|
}
|
||||||
|
|
||||||
(cd config
|
kcreatecm homepage \
|
||||||
cmd=(kcreatecm homepage-config)
|
--from-file=bookmarks.yaml =<(envsubst "$(env | xargs printf '$%s ')" < bookmarks.yaml) \
|
||||||
for f in *; do
|
--from-file=custom.css =<(envsubst "$(env | xargs printf '$%s ')" < custom.css) \
|
||||||
cmd+=("--from-file=$f=<(envsubst \"\$(env | xargs printf '$%s ')\" < $f)")
|
--from-file=custom.js =<(envsubst "$(env | xargs printf '$%s ')" < custom.js) \
|
||||||
done
|
--from-file=kubernetes.yaml=<(envsubst "$(env | xargs printf '$%s ')" < kubernetes.yaml) \
|
||||||
eval "${cmd[*]}"
|
--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
|
kapply common/clusterrole.yaml common/app.yaml
|
||||||
|
|
||||||
|
@ -67,9 +67,24 @@ spec:
|
|||||||
value: stdout
|
value: stdout
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /app/config/
|
mountPath: /app/config/bookmarks.yaml
|
||||||
readOnly: true
|
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:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
configMap:
|
configMap:
|
||||||
name: homepage-config
|
name: homepage
|
||||||
|
Loading…
Reference in New Issue
Block a user