fix(dashy): Move to new common (#8975)
**Description** This one will need a bit more work and help from @stavros-k but I'm interested in testing it since it works expect for missing persistence so might as well do what I can ⚒️ Fixes # <!--(issue)--> **⚙️ Type of change** - [X] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [X] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** <!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration --> **📃 Notes:** <!-- Please enter any other relevant information here --> **✔️ Checklist:** - [X] ⚖️ My code follows the style guidelines of this project - [ ] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [X] ⬆️ I increased versions for any altered app according to semantic versioning **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🪞 I have opened a PR on [truecharts/containers](https://github.com/truecharts/containers) adding the container to TrueCharts mirror repo. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --------- Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
parent
c0952f322b
commit
98bd80d432
|
@ -3,7 +3,7 @@ appVersion: "2.1.1"
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: common
|
- name: common
|
||||||
repository: https://library-charts.truecharts.org
|
repository: https://library-charts.truecharts.org
|
||||||
version: 11.1.2
|
version: 12.6.8
|
||||||
description: Dashy helps you organize your self-hosted services by making them accessible from a single place
|
description: Dashy helps you organize your self-hosted services by making them accessible from a single place
|
||||||
home: https://truecharts.org/charts/incubator/dashy
|
home: https://truecharts.org/charts/incubator/dashy
|
||||||
icon: https://truecharts.org/img/hotlink-ok/chart-icons/dashy.png
|
icon: https://truecharts.org/img/hotlink-ok/chart-icons/dashy.png
|
||||||
|
@ -18,7 +18,7 @@ name: dashy
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/truecharts/charts/tree/master/charts/incubator/dashy
|
- https://github.com/truecharts/charts/tree/master/charts/incubator/dashy
|
||||||
- https://github.com/airsonic/airsonic
|
- https://github.com/airsonic/airsonic
|
||||||
version: 2.0.20
|
version: 3.0.0
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- dashboard
|
- dashboard
|
||||||
|
|
|
@ -41,6 +41,7 @@ questions:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
# Include{containerConfig}
|
# Include{containerConfig}
|
||||||
|
# Include{podOptions}
|
||||||
# Include{serviceRoot}
|
# Include{serviceRoot}
|
||||||
- variable: main
|
- variable: main
|
||||||
label: Main Service
|
label: Main Service
|
||||||
|
@ -89,8 +90,7 @@ questions:
|
||||||
# Include{ingressTLS}
|
# Include{ingressTLS}
|
||||||
# Include{ingressTraefik}
|
# Include{ingressTraefik}
|
||||||
# Include{ingressList}
|
# Include{ingressList}
|
||||||
|
# Include{securityContextRoot}
|
||||||
# Include{podSecurityContextRoot}
|
|
||||||
- variable: runAsUser
|
- variable: runAsUser
|
||||||
label: runAsUser
|
label: runAsUser
|
||||||
description: The UserID of the user running the application
|
description: The UserID of the user running the application
|
||||||
|
@ -99,10 +99,11 @@ questions:
|
||||||
default: 0
|
default: 0
|
||||||
- variable: runAsGroup
|
- variable: runAsGroup
|
||||||
label: runAsGroup
|
label: runAsGroup
|
||||||
description: The groupID this App of the user running the application
|
description: The groupID of the user running the application
|
||||||
schema:
|
schema:
|
||||||
type: int
|
type: int
|
||||||
default: 0
|
default: 0
|
||||||
|
|
||||||
# Include{securityContextContainer}
|
# Include{securityContextContainer}
|
||||||
# Include{securityContextAdvanced}
|
# Include{securityContextAdvanced}
|
||||||
# Include{securityContextPod}
|
# Include{securityContextPod}
|
||||||
|
|
|
@ -1,16 +1,9 @@
|
||||||
{{/* Define the secrets */}}
|
{{/* Define the secrets */}}
|
||||||
{{- define "dashy.config" -}}
|
{{- define "dashy.config" -}}
|
||||||
{{- $configName := printf "%s-dashy-config" (include "tc.common.names.fullname" .) }}
|
configmap:
|
||||||
|
dashy-config:
|
||||||
---
|
enabled: true
|
||||||
|
data:
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: {{ $configName }}
|
|
||||||
labels:
|
|
||||||
{{- include "tc.common.labels" . | nindent 4 }}
|
|
||||||
data:
|
|
||||||
conf.yml: |
|
conf.yml: |
|
||||||
{{- .Values.dashyConfig | toYaml | nindent 4 }}
|
{{- .Values.dashyConfig | toYaml | nindent 8 }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
|
@ -1,16 +1,15 @@
|
||||||
{{/* Make sure all variables are set properly */}}
|
{{/* Make sure all variables are set properly */}}
|
||||||
{{- include "tc.common.loader.init" . }}
|
{{- include "tc.v1.common.loader.init" . }}
|
||||||
|
|
||||||
{{- define "dashy.configvolume" -}}
|
{{- define "dashy.configvolume" -}}
|
||||||
enabled: true
|
enabled: true
|
||||||
mountPath: /app/public
|
type: configmap
|
||||||
type: custom
|
objectName: dashy-config
|
||||||
readOnly: true
|
readOnly: true
|
||||||
volumeSpec:
|
defaultMode: "0755"
|
||||||
configMap:
|
mountPath: /app/public
|
||||||
name: {{ include "tc.common.names.fullname" . }}-dashy-config
|
items:
|
||||||
items:
|
- key: conf.yml
|
||||||
- key: conf.yml
|
|
||||||
path: conf.yml
|
path: conf.yml
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
@ -24,12 +23,15 @@ mountPath: /app/public/conf.yml
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- if .Values.dashyConfig -}}
|
{{- if .Values.dashyConfig -}}
|
||||||
{{/* Render config for dashy */}}
|
{{/* Render config for dashy */}}
|
||||||
{{- include "dashy.config" . -}}
|
{{- $config := include "dashy.config" . | fromYaml -}}
|
||||||
{{- $_ := set .Values.persistence "dashy-config" (include "dashy.configvolume" . | fromYaml) -}}
|
{{- if $config -}}
|
||||||
|
{{- $_ := mustMergeOverwrite .Values $config -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- $_ := set .Values.persistence "dashy-config" (include "dashy.configvolume" . | fromYaml) -}}
|
||||||
{{- else if .Values.dashy.enabled -}}
|
{{- else if .Values.dashy.enabled -}}
|
||||||
{{- $_ := set .Values.persistence "dashy-config" (include "dashy.confighostpath" . | fromYaml) -}}
|
{{- $_ := set .Values.persistence "dashy-config" (include "dashy.confighostpath" . | fromYaml) -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/* Render the templates */}}
|
{{/* Render the templates */}}
|
||||||
{{ include "tc.common.loader.apply" . }}
|
{{ include "tc.v1.common.loader.apply" . }}
|
||||||
|
|
|
@ -4,10 +4,9 @@ image:
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
securityContext:
|
securityContext:
|
||||||
|
container:
|
||||||
readOnlyRootFilesystem: false
|
readOnlyRootFilesystem: false
|
||||||
runAsNonRoot: false
|
runAsNonRoot: false
|
||||||
|
|
||||||
podSecurityContext:
|
|
||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
runAsGroup: 0
|
runAsGroup: 0
|
||||||
|
|
||||||
|
@ -23,10 +22,14 @@ dashyConfig:
|
||||||
# pageInfo:
|
# pageInfo:
|
||||||
# title: Home Lab
|
# title: Home Lab
|
||||||
|
|
||||||
env:
|
workload:
|
||||||
|
main:
|
||||||
|
podSpec:
|
||||||
|
containers:
|
||||||
|
main:
|
||||||
|
env:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
|
probes:
|
||||||
probes:
|
|
||||||
liveness:
|
liveness:
|
||||||
enabled: true
|
enabled: true
|
||||||
custom: true
|
custom: true
|
||||||
|
@ -51,13 +54,12 @@ probes:
|
||||||
command:
|
command:
|
||||||
- node
|
- node
|
||||||
- /app/services/healthcheck
|
- /app/services/healthcheck
|
||||||
|
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
ports:
|
ports:
|
||||||
main:
|
main:
|
||||||
port: 10310
|
port: 10310
|
||||||
protocol: HTTP
|
protocol: http
|
||||||
targetPort: 80
|
targetPort: 80
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
|
@ -66,4 +68,5 @@ persistence:
|
||||||
mountPath: /app/public/item-icons
|
mountPath: /app/public/item-icons
|
||||||
|
|
||||||
portal:
|
portal:
|
||||||
|
open:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
Loading…
Reference in New Issue