diff --git a/library/ix-dev/community/actual-budget/Chart.lock b/library/ix-dev/community/actual-budget/Chart.lock new file mode 100644 index 0000000000..e667a00300 --- /dev/null +++ b/library/ix-dev/community/actual-budget/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: common + repository: file://../../../common + version: 1.2.8 +digest: sha256:6798e8f5a66aa1f06247a6b75c10b03b6d7777b129251995e2e4249c89b0eaef +generated: "2024-01-12T19:16:20.011645912+02:00" diff --git a/library/ix-dev/community/actual-budget/Chart.yaml b/library/ix-dev/community/actual-budget/Chart.yaml new file mode 100644 index 0000000000..d0d9170666 --- /dev/null +++ b/library/ix-dev/community/actual-budget/Chart.yaml @@ -0,0 +1,26 @@ +name: actual-budget +description: Actual Budget is a super fast and privacy-focused app for managing your finances. +annotations: + title: Actual Budget +type: application +version: 1.2.8 +apiVersion: v2 +appVersion: 24.1.0 +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.8 +home: https://actualbudget.org/ +icon: https://media.sys.truenas.net/apps/actual-budget/icons/icon.png +sources: + - https://github.com/actualbudget/actual-server + - https://github.com/truenas/charts/tree/master/community/actual-budget + - https://hub.docker.com/r/actualbudget/actual-server +keywords: + - finance + - budget diff --git a/library/ix-dev/community/actual-budget/README.md b/library/ix-dev/community/actual-budget/README.md new file mode 100644 index 0000000000..e81e3c680f --- /dev/null +++ b/library/ix-dev/community/actual-budget/README.md @@ -0,0 +1,3 @@ +# Actual Budget + +[Actual Budget](https://actualbudget.org/) is a super fast and privacy-focused app for managing your finances. diff --git a/library/ix-dev/community/actual-budget/app-readme.md b/library/ix-dev/community/actual-budget/app-readme.md new file mode 100644 index 0000000000..e81e3c680f --- /dev/null +++ b/library/ix-dev/community/actual-budget/app-readme.md @@ -0,0 +1,3 @@ +# Actual Budget + +[Actual Budget](https://actualbudget.org/) is a super fast and privacy-focused app for managing your finances. diff --git a/library/ix-dev/community/actual-budget/charts/common-1.2.8.tgz b/library/ix-dev/community/actual-budget/charts/common-1.2.8.tgz new file mode 100644 index 0000000000..006b2382a3 Binary files /dev/null and b/library/ix-dev/community/actual-budget/charts/common-1.2.8.tgz differ diff --git a/library/ix-dev/community/actual-budget/ci/basic-values.yaml b/library/ix-dev/community/actual-budget/ci/basic-values.yaml new file mode 100644 index 0000000000..ed36698063 --- /dev/null +++ b/library/ix-dev/community/actual-budget/ci/basic-values.yaml @@ -0,0 +1,7 @@ +actualRunAs: + user: 1000 + group: 1000 + +actualStorage: + data: + type: pvc diff --git a/library/ix-dev/community/actual-budget/ci/hostNet-values.yaml b/library/ix-dev/community/actual-budget/ci/hostNet-values.yaml new file mode 100644 index 0000000000..b268028e83 --- /dev/null +++ b/library/ix-dev/community/actual-budget/ci/hostNet-values.yaml @@ -0,0 +1,6 @@ +actualNetwork: + hostNetwork: true + +actualStorage: + data: + type: pvc diff --git a/library/ix-dev/community/actual-budget/ci/https-values.yaml b/library/ix-dev/community/actual-budget/ci/https-values.yaml new file mode 100644 index 0000000000..eef5da0a5f --- /dev/null +++ b/library/ix-dev/community/actual-budget/ci/https-values.yaml @@ -0,0 +1,98 @@ +actualNetwork: + webPort: 31000 + certificateID: 1 + +actualStorage: + data: + type: pvc + additionalStorages: + - type: pvc + mountPath: /data1 + - type: pvc + mountPath: /data2 + +ixCertificates: + "1": + certificate: | + -----BEGIN CERTIFICATE----- + MIIEdjCCA16gAwIBAgIDYFMYMA0GCSqGSIb3DQEBCwUAMGwxDDAKBgNVBAMMA2Fz + ZDELMAkGA1UEBhMCVVMxDTALBgNVBAgMBGFzZGYxCzAJBgNVBAcMAmFmMQ0wCwYD + VQQKDARhc2RmMQwwCgYDVQQLDANhc2QxFjAUBgkqhkiG9w0BCQEWB2FAYS5jb20w + HhcNMjEwODMwMjMyMzU0WhcNMjMxMjAzMjMyMzU0WjBuMQswCQYDVQQDDAJhZDEL + MAkGA1UEBhMCVVMxDTALBgNVBAgMBGFzZGYxDTAL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E + 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 + 4vQCdYgW2g0KOvvNcZJCVq1OrhKiNiY1bWCp66DGg0ic6OEkZFHTm745zUNQaf2d + NgsxKU0HPGjVLJI//yrRFAOSBUqgD4c50kr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I9Wc + nvi6e17Tbdq4OCsEJx1OiVwFD9YdO3cOTc6lw/3+hjypvZBRYo+/4jUthbu96E+S + dtOzehGZMmDvN0uSzupSi3ZOgkAAUFpyuIKickMCgYAId0PCRjonO2thn/R0rZ7P + //L852uyzYhXKw5/fjFGhQ6LbaLgIRFaCZ0L2809u0HFnNvJjHv4AKP6j+vFQYYY + qQ+66XnfsA9G/bu4MDS9AX83iahD9IdLXQAy8I19prAbpVumKegPbMnNYNB/TYEc + 3G15AKCXo7jjOUtHY01DCQ== + -----END PRIVATE KEY----- diff --git a/library/ix-dev/community/actual-budget/item.yaml b/library/ix-dev/community/actual-budget/item.yaml new file mode 100644 index 0000000000..c79363ba77 --- /dev/null +++ b/library/ix-dev/community/actual-budget/item.yaml @@ -0,0 +1,10 @@ +icon_url: https://media.sys.truenas.net/apps/actual-budget/icons/icon.png +categories: + - productivity +screenshots: + - https://media.sys.truenas.net/apps/actual-budget/screenshots/screenshot1.png + - https://media.sys.truenas.net/apps/actual-budget/screenshots/screenshot2.png + - https://media.sys.truenas.net/apps/actual-budget/screenshots/screenshot3.png +tags: + - finance + - budget diff --git a/library/ix-dev/community/actual-budget/metadata.yaml b/library/ix-dev/community/actual-budget/metadata.yaml new file mode 100644 index 0000000000..41d5497279 --- /dev/null +++ b/library/ix-dev/community/actual-budget/metadata.yaml @@ -0,0 +1,8 @@ +runAsContext: + - userName: actual + groupName: actual + gid: 568 + uid: 568 + description: Actual Budget can run as any non-root user. +capabilities: [] +hostMounts: [] diff --git a/library/ix-dev/community/actual-budget/questions.yaml b/library/ix-dev/community/actual-budget/questions.yaml new file mode 100644 index 0000000000..c5549e0e21 --- /dev/null +++ b/library/ix-dev/community/actual-budget/questions.yaml @@ -0,0 +1,374 @@ +groups: + - name: Actual Budget Configuration + description: Configure Actual Budget + - name: User and Group Configuration + description: Configure User and Group for Actual Budget + - name: Network Configuration + description: Configure Network for Actual Budget + - name: Storage Configuration + description: Configure Storage for Actual Budget + - name: Resources Configuration + description: Configure Resources for Actual Budget + +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: actualConfig + label: "" + group: Actual Budget Configuration + schema: + type: dict + attrs: + - variable: additionalEnvs + label: Additional Environment Variables + description: Configure additional environment variables for Actual Budget. + 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: actualRunAs + label: "" + group: User and Group Configuration + schema: + type: dict + attrs: + - variable: user + label: User ID + description: The user id that Actual Budget will run as. + schema: + type: int + min: 2 + default: 568 + required: true + - variable: group + label: Group ID + description: The group id that Actual Budget will run as. + schema: + type: int + min: 2 + default: 568 + required: true + + - variable: actualNetwork + label: "" + group: Network Configuration + schema: + type: dict + attrs: + - variable: webPort + label: Web Port + description: The port for the Actual Budget Web UI. + schema: + type: int + default: 31012 + min: 9000 + max: 65535 + required: true + - variable: hostNetwork + label: Host Network + description: | + Bind to the host network. It's recommended to keep this disabled.
+ schema: + type: boolean + default: false + - variable: certificateID + label: Certificate + description: The certificate to use for Actual Budget + schema: + type: int + "null": true + $ref: + - "definitions/certificate" + + - variable: actualStorage + label: "" + group: Storage Configuration + schema: + type: dict + attrs: + - variable: data + label: Actual Budget Data Storage + description: The path to store Actual Budget 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: Host Path Configuration + 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 Actual Budget. + 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: Host Path Configuration + 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 Actual Budget. + 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 Actual Budget. + 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/library/ix-dev/community/actual-budget/templates/NOTES.txt b/library/ix-dev/community/actual-budget/templates/NOTES.txt new file mode 100644 index 0000000000..ba4e01146c --- /dev/null +++ b/library/ix-dev/community/actual-budget/templates/NOTES.txt @@ -0,0 +1 @@ +{{ include "ix.v1.common.lib.chart.notes" $ }} diff --git a/library/ix-dev/community/actual-budget/templates/_actual.tpl b/library/ix-dev/community/actual-budget/templates/_actual.tpl new file mode 100644 index 0000000000..139903efaa --- /dev/null +++ b/library/ix-dev/community/actual-budget/templates/_actual.tpl @@ -0,0 +1,60 @@ +{{- define "actual.workload" -}} +workload: + actual: + enabled: true + primary: true + type: Deployment + podSpec: + hostNetwork: {{ .Values.actualNetwork.hostNetwork }} + containers: + actual: + enabled: true + primary: true + imageSelector: image + securityContext: + runAsUser: {{ .Values.actualRunAs.user }} + runAsGroup: {{ .Values.actualRunAs.group }} + env: + ACTUAL_PORT: {{ .Values.actualNetwork.webPort }} + ACTUAL_HOSTNAME: 0.0.0.0 + ACTUAL_SERVER_FILES: /data/server-files + ACTUAL_USER_FILES: /data/user-files + NODE_ENV: production + {{- if .Values.actualNetwork.certificateID }} + ACTUAL_HTTPS_KEY: /certs/tls.key + ACTUAL_HTTPS_CERT: /certs/tls.crt + {{- end }} + {{ with .Values.actualConfig.additionalEnvs }} + envList: + {{ range $env := . }} + - name: {{ $env.name }} + value: {{ $env.value }} + {{ end }} + {{ end }} + {{- $proto := "http" -}} + {{- if .Values.actualNetwork.certificateID -}} + {{- $proto = "https" -}} + {{- end }} + probes: + liveness: + enabled: true + type: {{ $proto }} + port: {{ .Values.actualNetwork.webPort }} + path: /health + readiness: + enabled: true + type: {{ $proto }} + port: {{ .Values.actualNetwork.webPort }} + path: /health + startup: + enabled: true + type: {{ $proto }} + port: {{ .Values.actualNetwork.webPort }} + path: /health + initContainers: + {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions" + "UID" .Values.actualRunAs.user + "GID" .Values.actualRunAs.group + "mode" "check" + "type" "install") | nindent 8 }} +{{- end -}} diff --git a/library/ix-dev/community/actual-budget/templates/_persistence.tpl b/library/ix-dev/community/actual-budget/templates/_persistence.tpl new file mode 100644 index 0000000000..baeae2402d --- /dev/null +++ b/library/ix-dev/community/actual-budget/templates/_persistence.tpl @@ -0,0 +1,58 @@ +{{- define "actual.persistence" -}} +persistence: + data: + enabled: true + {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.actualStorage.data) | nindent 4 }} + targetSelector: + actual: + actual: + mountPath: /data + {{- if and (eq .Values.actualStorage.data.type "ixVolume") + (not (.Values.actualStorage.data.ixVolumeConfig | default dict).aclEnable) }} + 01-permissions: + mountPath: /mnt/directories + {{- end }} + tmp: + enabled: true + type: emptyDir + targetSelector: + actual: + actual: + mountPath: /tmp + {{- range $idx, $storage := .Values.actualStorage.additionalStorages }} + {{ printf "actual-%v:" (int $idx) }} + enabled: true + {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }} + targetSelector: + actual: + actual: + mountPath: {{ $storage.mountPath }} + {{- if and (eq $storage.type "ixVolume") (not ($storage.ixVolumeConfig | default dict).aclEnable) }} + 01-permissions: + mountPath: /mnt/directories{{ $storage.mountPath }} + {{- end }} + {{- end }} + + {{- if .Values.actualNetwork.certificateID }} + cert: + enabled: true + type: secret + objectName: actual-cert + defaultMode: "0600" + items: + - key: tls.key + path: tls.key + - key: tls.crt + path: tls.crt + targetSelector: + actual: + actual: + mountPath: /certs + readOnly: true + +scaleCertificate: + actual-cert: + enabled: true + id: {{ .Values.actualNetwork.certificateID }} + {{- end -}} +{{- end -}} diff --git a/library/ix-dev/community/actual-budget/templates/_portal.tpl b/library/ix-dev/community/actual-budget/templates/_portal.tpl new file mode 100644 index 0000000000..d21ab12739 --- /dev/null +++ b/library/ix-dev/community/actual-budget/templates/_portal.tpl @@ -0,0 +1,16 @@ +{{- define "actual.portal" -}} +{{- $proto := "http" -}} +{{- if .Values.actualNetwork.certificateID -}} + {{- $proto = "https" -}} +{{- end }} +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: portal +data: + path: "/" + port: {{ .Values.actualNetwork.webPort | quote }} + protocol: {{ $proto }} + host: $node_ip +{{- end -}} diff --git a/library/ix-dev/community/actual-budget/templates/_service.tpl b/library/ix-dev/community/actual-budget/templates/_service.tpl new file mode 100644 index 0000000000..64d487df54 --- /dev/null +++ b/library/ix-dev/community/actual-budget/templates/_service.tpl @@ -0,0 +1,15 @@ +{{- define "actual.service" -}} +service: + actual: + enabled: true + primary: true + type: NodePort + targetSelector: actual + ports: + webui: + enabled: true + primary: true + port: {{ .Values.actualNetwork.webPort }} + nodePort: {{ .Values.actualNetwork.webPort }} + targetSelector: actual +{{- end -}} diff --git a/library/ix-dev/community/actual-budget/templates/common.yaml b/library/ix-dev/community/actual-budget/templates/common.yaml new file mode 100644 index 0000000000..77c2d8c9c7 --- /dev/null +++ b/library/ix-dev/community/actual-budget/templates/common.yaml @@ -0,0 +1,11 @@ +{{- include "ix.v1.common.loader.init" . -}} + +{{/* Merge the templates with Values */}} +{{- $_ := mustMergeOverwrite .Values (include "actual.service" $ | fromYaml) -}} +{{- $_ := mustMergeOverwrite .Values (include "actual.persistence" $ | fromYaml) -}} +{{- $_ := mustMergeOverwrite .Values (include "actual.workload" $ | fromYaml) -}} + +{{/* Create the configmap for portal manually*/}} +{{- include "actual.portal" $ -}} + +{{- include "ix.v1.common.loader.apply" . -}} diff --git a/library/ix-dev/community/actual-budget/upgrade_info.json b/library/ix-dev/community/actual-budget/upgrade_info.json new file mode 100644 index 0000000000..767388094a --- /dev/null +++ b/library/ix-dev/community/actual-budget/upgrade_info.json @@ -0,0 +1 @@ +{"filename": "values.yaml", "keys": ["image"]} diff --git a/library/ix-dev/community/actual-budget/upgrade_strategy b/library/ix-dev/community/actual-budget/upgrade_strategy new file mode 100755 index 0000000000..41e9448b21 --- /dev/null +++ b/library/ix-dev/community/actual-budget/upgrade_strategy @@ -0,0 +1,31 @@ +#!/usr/bin/python3 +import json +import re +import sys + +from catalog_update.upgrade_strategy import semantic_versioning + + +RE_STABLE_VERSION = re.compile(r'[0-9]+\.[0-9]+\.[0-9]+') + + +def newer_mapping(image_tags): + key = list(image_tags.keys())[0] + tags = {t: t for t in image_tags[key] if RE_STABLE_VERSION.fullmatch(t)} + version = semantic_versioning(list(tags)) + if not version: + return {} + + return { + 'tags': {key: tags[version]}, + 'app_version': version, + } + + +if __name__ == '__main__': + try: + versions_json = json.loads(sys.stdin.read()) + except ValueError: + raise ValueError('Invalid json specified') + + print(json.dumps(newer_mapping(versions_json))) diff --git a/library/ix-dev/community/actual-budget/values.yaml b/library/ix-dev/community/actual-budget/values.yaml new file mode 100644 index 0000000000..23d0f756aa --- /dev/null +++ b/library/ix-dev/community/actual-budget/values.yaml @@ -0,0 +1,28 @@ +image: + repository: actualbudget/actual-server + pullPolicy: IfNotPresent + tag: 24.1.0 + +resources: + limits: + cpu: 4000m + memory: 8Gi + +actualConfig: + additionalEnvs: [] + +actualNetwork: + webPort: 31012 + certificateID: + hostNetwork: false + +actualRunAs: + user: 568 + group: 568 + +actualStorage: + data: + type: ixVolume + ixVolumeConfig: + datasetName: data + additionalStorages: []