diff --git a/community/dashy/1.0.0/Chart.lock b/community/dashy/1.0.0/Chart.lock new file mode 100644 index 0000000000..70cb9d4c9c --- /dev/null +++ b/community/dashy/1.0.0/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: common + repository: file://../../../common + version: 1.2.3 +digest: sha256:e6ff49b06bf5d4d159e505ae6d153f36cd46170bb519caf90462cd5caebfd0fb +generated: "2023-11-13T17:15:19.01883842+02:00" diff --git a/community/dashy/1.0.0/Chart.yaml b/community/dashy/1.0.0/Chart.yaml new file mode 100644 index 0000000000..c2827c8adc --- /dev/null +++ b/community/dashy/1.0.0/Chart.yaml @@ -0,0 +1,25 @@ +name: dashy +description: Dashy is a self-hostable personal dashboard built for you. +annotations: + title: Dashy +type: application +version: 1.0.0 +apiVersion: v2 +appVersion: 2.1.1 +kubeVersion: '>=1.16.0-0' +maintainers: + - name: truenas + url: https://www.truenas.com/ + email: dev@ixsystems.com +dependencies: + - name: common + repository: file://../../../common + version: 1.2.3 +home: https://dashy.to/ +icon: https://media.sys.truenas.net/apps/dashy/icons/icon.png +sources: + - https://dashy.to/ + - https://github.com/truenas/charts/tree/master/library/ix-dev/community/dashy + - https://github.com/lissy93/dashy +keywords: + - dashboard diff --git a/community/dashy/1.0.0/README.md b/community/dashy/1.0.0/README.md new file mode 100644 index 0000000000..1e8bb21a1e --- /dev/null +++ b/community/dashy/1.0.0/README.md @@ -0,0 +1,3 @@ +# Dashy + +[Dashy](https://dashy.to/) is a self-hostable personal dashboard built for you. diff --git a/community/dashy/1.0.0/app-readme.md b/community/dashy/1.0.0/app-readme.md new file mode 100644 index 0000000000..1e8bb21a1e --- /dev/null +++ b/community/dashy/1.0.0/app-readme.md @@ -0,0 +1,3 @@ +# Dashy + +[Dashy](https://dashy.to/) is a self-hostable personal dashboard built for you. diff --git a/community/dashy/1.0.0/charts/common-1.2.3.tgz b/community/dashy/1.0.0/charts/common-1.2.3.tgz new file mode 100644 index 0000000000..397a4ae384 Binary files /dev/null and b/community/dashy/1.0.0/charts/common-1.2.3.tgz differ diff --git a/community/dashy/1.0.0/ci/basic-values.yaml b/community/dashy/1.0.0/ci/basic-values.yaml new file mode 100644 index 0000000000..cdae232b3f --- /dev/null +++ b/community/dashy/1.0.0/ci/basic-values.yaml @@ -0,0 +1,6 @@ +dashyNetwork: + webPort: 31000 + +dashyStorage: + data: + type: pvc diff --git a/community/dashy/1.0.0/ci/extra-values.yaml b/community/dashy/1.0.0/ci/extra-values.yaml new file mode 100644 index 0000000000..3dd06507c1 --- /dev/null +++ b/community/dashy/1.0.0/ci/extra-values.yaml @@ -0,0 +1,11 @@ +dashyNetwork: + webPort: 31000 + +dashyStorage: + data: + type: pvc + additionalStorages: + - type: pvc + mountPath: /data1 + - type: pvc + mountPath: /data2 diff --git a/community/dashy/1.0.0/ci/hostNet-values.yaml b/community/dashy/1.0.0/ci/hostNet-values.yaml new file mode 100644 index 0000000000..de8dc1c577 --- /dev/null +++ b/community/dashy/1.0.0/ci/hostNet-values.yaml @@ -0,0 +1,7 @@ +dashyNetwork: + webPort: 31000 + hostNetwork: true + +dashyStorage: + data: + type: pvc diff --git a/community/dashy/1.0.0/ci/https-values.yaml b/community/dashy/1.0.0/ci/https-values.yaml new file mode 100644 index 0000000000..0dba31c54d --- /dev/null +++ b/community/dashy/1.0.0/ci/https-values.yaml @@ -0,0 +1,93 @@ +dashyNetwork: + certificateID: 1 + webPort: 31000 + +dashyStorage: + data: + type: pvc + +ixCertificates: + "1": + certificate: | + -----BEGIN CERTIFICATE----- + MIIEdjCCA16gAwIBAgIDYFMYMA0GCSqGSIb3DQEBCwUAMGwxDDAKBgNVBAMMA2Fz + ZDELMAkGA1UEBhMCVVMxDTALBgNVBAgMBGFzZGYxCzAJBgNVBAcMAmFmMQ0wCwYD + VQQKDARhc2RmMQwwCgYDVQQLDANhc2QxFjAUBgkqhkiG9w0BCQEWB2FAYS5jb20w + HhcNMjEwODMwMjMyMzU0WhcNMjMxMjAzMjMyMzU0WjBuMQswCQYDVQQDD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wLQYDVR0RBCYwJIcEwKgABYcEwKgAA4cEwKgAkocEwKgAtYcE + wKgAgYcEwKgAtjAdBgNVHQ4EFgQUuVh/0v32fEkNykIz8tPdXmFD9rcwDwYDVR0T + AQH/BAUwAwEB/zCBmAYDVR0jBIGQMIGNgBS5WH/S/fZ8SQ3KQjPy091eYUP2t6Fw + pG4wbDEMMAoGA1UEAwwDYXNkMQswCQYDVQQGEwJVUzENMAsGA1UECAwEYXNkZjEL + MAkGA1UEBwwCYWYxDTALBgNVBAoMBGFzZGYxDDAKBgNVBAsMA2FzZDEWMBQGCSqG + SIb3DQEJARYHYUBhLmNvbYIDYFMXMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEF + BQcDAjAOBgNVHQ8BAf8EBAMCAQYwDQYJKoZIhvcNAQELBQADggEBAKEocOmVuWlr + zegtKYMe8NhHIkFY9oVn5ym6RHNOJpPH4QF8XYC3Z5+iC5yGh4P/jVe/4I4SF6Ql + PtofU0jNq5vzapt/y+m008eXqPQFmoUOvu+JavoRVcRx2LIP5AgBA1mF56CSREsX + TkuJAA9IUQ8EjnmAoAeKINuPaKxGDuU8BGCMqr/qd564MKNf9XYL+Fb2rlkA0O2d + 2No34DQLgqSmST/LAvPM7Cbp6knYgnKmGr1nETCXasg1cueHLnWWTvps2HiPp2D/ + +Fq0uqcZLu4Mdo0CPs4e5sHRyldEnRSKh0DVLprq9zr/GMipmPLJUsT5Jed3sj0w + M7Y3vwxshpo= + -----END CERTIFICATE----- + privatekey: | + -----BEGIN PRIVATE KEY----- + MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC7+1xOHRQyOnQT + HFcrdasXZl0gzutVlA890a1wiQpdD5dOtCLo7+eqVYjqVKo9W8RUIArXWmBu/Abk + H7oVFWC1P973W1+ArF5sA70f7BZgqRKJTIisuIFIlRETgfnP2pfQmHRZtGaIJRZI + 4vQCdYgW2g0KOvvNcZJCVq1OrhKiNiY1bWCp66DGg0ic6OEkZ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UfcwJbM4b4VKeeHqzfu7pI6cU/3ydiHVitKcVe2bdw3qMPqI9Wc + nvi6e17Tbdq4OCsEJx1OiVwFD9YdO3cOTc6lw/3+hjypvZBRYo+/4jUthbu96E+S + dtOzehGZMmDvN0uSzupSi3ZOgkAAUFpyuIKickMCgYAId0PCRjonO2thn/R0rZ7P + //L852uyzYhXKw5/fjFGhQ6LbaLgIRFaCZ0L2809u0HFnNvJjHv4AKP6j+vFQYYY + qQ+66XnfsA9G/bu4MDS9AX83iahD9IdLXQAy8I19prAbpVumKegPbMnNYNB/TYEc + 3G15AKCXo7jjOUtHY01DCQ== + -----END PRIVATE KEY----- diff --git a/community/dashy/1.0.0/ix_values.yaml b/community/dashy/1.0.0/ix_values.yaml new file mode 100644 index 0000000000..01a9d4cf4d --- /dev/null +++ b/community/dashy/1.0.0/ix_values.yaml @@ -0,0 +1,24 @@ +image: + repository: lissy93/dashy + pullPolicy: IfNotPresent + tag: 2.1.1 + +resources: + limits: + cpu: 4000m + memory: 8Gi + +dashyConfig: + additionalEnvs: [] + +dashyNetwork: + webPort: 31003 + certificateID: + hostNetwork: false + +dashyStorage: + data: + type: ixVolume + ixVolumeConfig: + datasetName: data + additionalStorages: [] diff --git a/community/dashy/1.0.0/metadata.yaml b/community/dashy/1.0.0/metadata.yaml new file mode 100644 index 0000000000..23542a150e --- /dev/null +++ b/community/dashy/1.0.0/metadata.yaml @@ -0,0 +1,8 @@ +runAsContext: + - userName: root + groupName: root + gid: 0 + uid: 0 + description: Dashy runs as a root user. +capabilities: [] +hostMounts: [] diff --git a/community/dashy/1.0.0/questions.yaml b/community/dashy/1.0.0/questions.yaml new file mode 100644 index 0000000000..9fbe1015c5 --- /dev/null +++ b/community/dashy/1.0.0/questions.yaml @@ -0,0 +1,352 @@ +groups: + - name: Dashy Configuration + description: Configure Dashy + - name: User and Group Configuration + description: Configure User and Group for Dashy + - name: Network Configuration + description: Configure Network for Dashy + - name: Storage Configuration + description: Configure Storage for Dashy + - name: Resources Configuration + description: Configure Resources for Dashy + +portals: + web_portal: + protocols: + - "$kubernetes-resource_configmap_portal_protocol" + host: + - "$kubernetes-resource_configmap_portal_host" + ports: + - "$kubernetes-resource_configmap_portal_port" + path: "$kubernetes-resource_configmap_portal_path" + +questions: + - variable: dashyConfig + label: "" + group: Dashy Configuration + schema: + type: dict + attrs: + - variable: additionalEnvs + label: Additional Environment Variables + description: Configure additional environment variables for Dashy. + schema: + type: list + default: [] + items: + - variable: env + label: Environment Variable + schema: + type: dict + attrs: + - variable: name + label: Name + schema: + type: string + required: true + - variable: value + label: Value + schema: + type: string + required: true + + - variable: dashyNetwork + label: "" + group: Network Configuration + schema: + type: dict + attrs: + - variable: webPort + label: Web Port + description: The port for the Dashy Web UI. + schema: + type: int + default: 31003 + min: 9000 + max: 65535 + required: true + - variable: certificateID + label: Certificate + description: The certificate to use for Dashy + schema: + type: int + "null": true + $ref: + - "definitions/certificate" + - variable: hostNetwork + label: Host Network + description: | + Bind to the host network. It's recommended to keep this disabled.
+ schema: + type: boolean + default: false + + - variable: dashyStorage + label: "" + group: Storage Configuration + schema: + type: dict + attrs: + - variable: data + label: Dashy Data Storage + description: The path to store Dashy Data. + schema: + type: dict + attrs: + - variable: type + label: Type + description: | + ixVolume: Is dataset created automatically by the system.
+ Host Path: Is a path that already exists on the system. + schema: + type: string + required: true + immutable: true + default: "ixVolume" + enum: + - value: "hostPath" + description: Host Path (Path that already exists on the system) + - value: "ixVolume" + description: ixVolume (Dataset created automatically by the system) + - variable: ixVolumeConfig + label: ixVolume Configuration + description: The configuration for the ixVolume dataset. + schema: + type: dict + show_if: [["type", "=", "ixVolume"]] + $ref: + - "normalize/ixVolume" + attrs: + - variable: aclEnable + label: Enable ACL + description: Enable ACL for the dataset. + schema: + type: boolean + default: false + - variable: datasetName + label: Dataset Name + description: The name of the dataset to use for storage. + schema: + type: string + required: true + immutable: true + hidden: true + default: "data" + - variable: aclEntries + label: ACL Configuration + schema: + type: dict + show_if: [["aclEnable", "=", true]] + attrs: [] + - variable: hostPathConfig + label: hostPathConfig + schema: + type: dict + show_if: [["type", "=", "hostPath"]] + attrs: + - variable: aclEnable + label: Enable ACL + description: Enable ACL for the dataset. + schema: + type: boolean + default: false + - variable: acl + label: ACL Configuration + schema: + type: dict + show_if: [["aclEnable", "=", true]] + attrs: [] + $ref: + - "normalize/acl" + - variable: hostPath + label: Host Path + description: The host path to use for storage. + schema: + type: hostpath + show_if: [["aclEnable", "=", false]] + required: true + + - variable: additionalStorages + label: Additional Storage + description: Additional storage for Dashy. + schema: + type: list + default: [] + items: + - variable: storageEntry + label: Storage Entry + schema: + type: dict + attrs: + - variable: type + label: Type + description: | + ixVolume: Is dataset created automatically by the system.
+ Host Path: Is a path that already exists on the system.
+ SMB Share: Is a SMB share that is mounted to a persistent volume claim. + schema: + type: string + required: true + default: "ixVolume" + immutable: true + enum: + - value: "hostPath" + description: Host Path (Path that already exists on the system) + - value: "ixVolume" + description: ixVolume (Dataset created automatically by the system) + - value: "smb-pv-pvc" + description: SMB Share (Mounts a persistent volume claim to a SMB share) + - variable: readOnly + label: Read Only + description: Mount the volume as read only. + schema: + type: boolean + default: false + - variable: mountPath + label: Mount Path + description: The path inside the container to mount the storage. + schema: + type: path + required: true + - variable: hostPathConfig + label: hostPathConfig + schema: + type: dict + show_if: [["type", "=", "hostPath"]] + attrs: + - variable: aclEnable + label: Enable ACL + description: Enable ACL for the dataset. + schema: + type: boolean + default: false + - variable: acl + label: ACL Configuration + schema: + type: dict + show_if: [["aclEnable", "=", true]] + attrs: [] + $ref: + - "normalize/acl" + - variable: hostPath + label: Host Path + description: The host path to use for storage. + schema: + type: hostpath + show_if: [["aclEnable", "=", false]] + required: true + - variable: ixVolumeConfig + label: ixVolume Configuration + description: The configuration for the ixVolume dataset. + schema: + type: dict + show_if: [["type", "=", "ixVolume"]] + $ref: + - "normalize/ixVolume" + attrs: + - variable: aclEnable + label: Enable ACL + description: Enable ACL for the dataset. + schema: + type: boolean + default: false + - variable: datasetName + label: Dataset Name + description: The name of the dataset to use for storage. + schema: + type: string + required: true + immutable: true + default: "storage_entry" + - variable: aclEntries + label: ACL Configuration + schema: + type: dict + show_if: [["aclEnable", "=", true]] + attrs: [] + - variable: smbConfig + label: SMB Share Configuration + description: The configuration for the SMB Share. + schema: + type: dict + show_if: [["type", "=", "smb-pv-pvc"]] + attrs: + - variable: server + label: Server + description: The server for the SMB share. + schema: + type: string + required: true + - variable: share + label: Share + description: The share name for the SMB share. + schema: + type: string + required: true + - variable: domain + label: Domain (Optional) + description: The domain for the SMB share. + schema: + type: string + - variable: username + label: Username + description: The username for the SMB share. + schema: + type: string + required: true + - variable: password + label: Password + description: The password for the SMB share. + schema: + type: string + required: true + private: true + - variable: size + label: Size (in Gi) + description: The size of the volume quota. + schema: + type: int + required: true + min: 1 + default: 1 + + - variable: resources + group: Resources Configuration + label: "" + schema: + type: dict + attrs: + - variable: limits + label: Limits + schema: + type: dict + attrs: + - variable: cpu + label: CPU + description: CPU limit for Dashy. + schema: + type: string + max_length: 6 + valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$' + valid_chars_error: | + Valid CPU limit formats are
+ - Plain Integer - eg. 1
+ - Float - eg. 0.5
+ - Milicpu - eg. 500m + default: "4000m" + required: true + - variable: memory + label: Memory + description: Memory limit for Dashy. + schema: + type: string + max_length: 12 + valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$' + valid_chars_error: | + Valid Memory limit formats are
+ - Suffixed with E/P/T/G/M/K - eg. 1G
+ - Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi
+ - Plain Integer in bytes - eg. 1024
+ - Exponent - eg. 134e6 + default: "8Gi" + required: true diff --git a/community/dashy/1.0.0/templates/NOTES.txt b/community/dashy/1.0.0/templates/NOTES.txt new file mode 100644 index 0000000000..ba4e01146c --- /dev/null +++ b/community/dashy/1.0.0/templates/NOTES.txt @@ -0,0 +1 @@ +{{ include "ix.v1.common.lib.chart.notes" $ }} diff --git a/community/dashy/1.0.0/templates/_dashy.tpl b/community/dashy/1.0.0/templates/_dashy.tpl new file mode 100644 index 0000000000..27abb4cdac --- /dev/null +++ b/community/dashy/1.0.0/templates/_dashy.tpl @@ -0,0 +1,75 @@ +{{- define "dashy.workload" -}} +workload: + dashy: + enabled: true + primary: true + type: Deployment + podSpec: + hostNetwork: {{ .Values.dashyNetwork.hostNetwork }} + containers: + dashy: + enabled: true + primary: true + imageSelector: image + securityContext: + runAsUser: 0 + runAsGroup: 0 + runAsNonRoot: false + env: + {{- $protocol := "http" -}} + {{- if .Values.dashyNetwork.certificateID }} + {{- $protocol = "https" }} + SSL_PRIV_KEY_PATH: /cert/tls.key + SSL_PUB_KEY_PATH: /cert/tls.crt + SSL_PORT: {{ .Values.dashyNetwork.webPort }} + {{- else }} + PORT: {{ .Values.dashyNetwork.webPort }} + {{- end }} + NODE_ENV: production + IS_DOCKER: "true" + {{ with .Values.dashyConfig.additionalEnvs }} + envList: + {{ range $env := . }} + - name: {{ $env.name }} + value: {{ $env.value }} + {{ end }} + {{ end }} + probes: + liveness: + enabled: true + type: {{ $protocol }} + port: {{ .Values.dashyNetwork.webPort }} + path: / + readiness: + enabled: true + type: {{ $protocol }} + port: {{ .Values.dashyNetwork.webPort }} + path: / + startup: + enabled: true + type: {{ $protocol }} + port: {{ .Values.dashyNetwork.webPort }} + path: / + initContainers: + init-config: + enabled: true + type: init + imageSelector: image + securityContext: + runAsUser: 0 + runAsGroup: 0 + runAsNonRoot: false + command: + - /bin/sh + args: + - -c + - | + if [ -z "$(ls -A /data)" ]; then + echo "App directory is empty, copying default files" + cp -r /app/public/* /data/ + exit 0 + fi + + echo "App directory is not empty, skipping copy" + exit 0 +{{- end -}} diff --git a/community/dashy/1.0.0/templates/_persistence.tpl b/community/dashy/1.0.0/templates/_persistence.tpl new file mode 100644 index 0000000000..fed45b1e9e --- /dev/null +++ b/community/dashy/1.0.0/templates/_persistence.tpl @@ -0,0 +1,55 @@ +{{- define "dashy.persistence" -}} +persistence: + config: + enabled: true + {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.dashyStorage.data) | nindent 4 }} + targetSelector: + dashy: + dashy: + mountPath: /app/public + # Mount the same dir to different path on init container + # So we can check if `/data` is empty and copy the default + # from /app/public + init-config: + mountPath: /data + tmp: + enabled: true + type: emptyDir + targetSelector: + dashy: + dashy: + mountPath: /tmp + + {{- range $idx, $storage := .Values.dashyStorage.additionalStorages }} + {{ printf "dashy-%v:" (int $idx) }} + enabled: true + {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }} + targetSelector: + dashy: + dashy: + mountPath: {{ $storage.mountPath }} + {{- end -}} + + {{- if .Values.dashyNetwork.certificateID }} + cert: + enabled: true + type: secret + objectName: dashy-cert + defaultMode: "0600" + items: + - key: tls.key + path: tls.key + - key: tls.crt + path: tls.crt + targetSelector: + dashy: + dashy: + mountPath: /cert + readOnly: true + +scaleCertificate: + dashy-cert: + enabled: true + id: {{ .Values.dashyNetwork.certificateID }} + {{- end -}} +{{- end -}} diff --git a/community/dashy/1.0.0/templates/_portal.tpl b/community/dashy/1.0.0/templates/_portal.tpl new file mode 100644 index 0000000000..ac6bafaf49 --- /dev/null +++ b/community/dashy/1.0.0/templates/_portal.tpl @@ -0,0 +1,16 @@ +{{- define "dashy.portal" -}} +{{- $protocol := "http" -}} +{{- if .Values.dashyNetwork.certificateID -}} + {{- $protocol = "https" -}} +{{- end }} +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: portal +data: + path: "/" + port: {{ .Values.dashyNetwork.webPort | quote }} + protocol: {{ $protocol }} + host: $node_ip +{{- end -}} diff --git a/community/dashy/1.0.0/templates/_service.tpl b/community/dashy/1.0.0/templates/_service.tpl new file mode 100644 index 0000000000..c0d3c7f15e --- /dev/null +++ b/community/dashy/1.0.0/templates/_service.tpl @@ -0,0 +1,15 @@ +{{- define "dashy.service" -}} +service: + dashy: + enabled: true + primary: true + type: NodePort + targetSelector: dashy + ports: + webui: + enabled: true + primary: true + port: {{ .Values.dashyNetwork.webPort }} + nodePort: {{ .Values.dashyNetwork.webPort }} + targetSelector: dashy +{{- end -}} diff --git a/community/dashy/1.0.0/templates/common.yaml b/community/dashy/1.0.0/templates/common.yaml new file mode 100644 index 0000000000..5d246767c2 --- /dev/null +++ b/community/dashy/1.0.0/templates/common.yaml @@ -0,0 +1,11 @@ +{{- include "ix.v1.common.loader.init" . -}} + +{{/* Merge the templates with Values */}} +{{- $_ := mustMergeOverwrite .Values (include "dashy.workload" $ | fromYaml) -}} +{{- $_ := mustMergeOverwrite .Values (include "dashy.service" $ | fromYaml) -}} +{{- $_ := mustMergeOverwrite .Values (include "dashy.persistence" $ | fromYaml) -}} + +{{/* Create the configmap for portal manually*/}} +{{- include "dashy.portal" $ -}} + +{{- include "ix.v1.common.loader.apply" . -}} diff --git a/community/dashy/item.yaml b/community/dashy/item.yaml new file mode 100644 index 0000000000..925fa47cca --- /dev/null +++ b/community/dashy/item.yaml @@ -0,0 +1,8 @@ +icon_url: https://media.sys.truenas.net/apps/dashy/icons/icon.png +categories: + - productivity +screenshots: + - https://media.sys.truenas.net/apps/dashy/screenshots/screenshot1.gif + - https://media.sys.truenas.net/apps/dashy/screenshots/screenshot2.gif +tags: + - dashboard