From 69d0c0f5306b72e37de479e7766d0ca62aa0960c Mon Sep 17 00:00:00 2001 From: Xstar97 Date: Wed, 14 Sep 2022 03:43:30 -0400 Subject: [PATCH] fix(simply-shorten): move to stable. (#3774) * fix(simply-shorten): move to stable. * Rename README..md to README.md * tweaks * lint Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> --- .../simply-shorten/.helmignore | 0 .../simply-shorten/CHANGELOG.md | 0 .../simply-shorten/Chart.yaml | 20 +++++++-------- .../simply-shorten/README.md | 0 .../simply-shorten/docs/installation_notes.md | 14 +++++++++++ .../simply-shorten/icon.png | Bin .../simply-shorten/questions.yaml | 21 ++++++++++++---- .../simply-shorten/templates/common.yaml | 0 .../simply-shorten/values.yaml | 23 +++++++++++++----- 9 files changed, 57 insertions(+), 21 deletions(-) rename charts/{incubator => stable}/simply-shorten/.helmignore (100%) rename charts/{incubator => stable}/simply-shorten/CHANGELOG.md (100%) rename charts/{incubator => stable}/simply-shorten/Chart.yaml (81%) rename charts/{incubator => stable}/simply-shorten/README.md (100%) create mode 100644 charts/stable/simply-shorten/docs/installation_notes.md rename charts/{incubator => stable}/simply-shorten/icon.png (100%) rename charts/{incubator => stable}/simply-shorten/questions.yaml (89%) rename charts/{incubator => stable}/simply-shorten/templates/common.yaml (100%) rename charts/{incubator => stable}/simply-shorten/values.yaml (54%) diff --git a/charts/incubator/simply-shorten/.helmignore b/charts/stable/simply-shorten/.helmignore similarity index 100% rename from charts/incubator/simply-shorten/.helmignore rename to charts/stable/simply-shorten/.helmignore diff --git a/charts/incubator/simply-shorten/CHANGELOG.md b/charts/stable/simply-shorten/CHANGELOG.md similarity index 100% rename from charts/incubator/simply-shorten/CHANGELOG.md rename to charts/stable/simply-shorten/CHANGELOG.md diff --git a/charts/incubator/simply-shorten/Chart.yaml b/charts/stable/simply-shorten/Chart.yaml similarity index 81% rename from charts/incubator/simply-shorten/Chart.yaml rename to charts/stable/simply-shorten/Chart.yaml index c55bb9c2238..c618d884243 100644 --- a/charts/incubator/simply-shorten/Chart.yaml +++ b/charts/stable/simply-shorten/Chart.yaml @@ -1,18 +1,11 @@ -annotations: - truecharts.org/SCALE-support: "true" - truecharts.org/catagories: | - - Cloud - - Productivity - - Network-Web apiVersion: v2 appVersion: "latest" dependencies: - name: common repository: https://library-charts.truecharts.org version: 10.5.9 -deprecated: false -description: "A simple selfhosted URL shortener with no unnecessary features." -home: https://truecharts.org/docs/charts/incubator/simply-shorten +description: A dead simple URL shortener. +home: https://truecharts.org/docs/charts/stable/simply-shorten icon: https://truecharts.org/img/hotlink-ok/chart-icons/simply-shorten.png keywords: - simply-shorten @@ -30,4 +23,11 @@ sources: - https://gitlab.com/draganczukp/simply-shorten - https://hub.docker.com/r/draganczukp/simply-shorten type: application -version: 0.0.23 +version: 1.0.0 +annotations: + truecharts.org/catagories: | + - Cloud + - Productivity + - Network-Web + truecharts.org/SCALE-support: "true" + truecharts.org/grade: U diff --git a/charts/incubator/simply-shorten/README.md b/charts/stable/simply-shorten/README.md similarity index 100% rename from charts/incubator/simply-shorten/README.md rename to charts/stable/simply-shorten/README.md diff --git a/charts/stable/simply-shorten/docs/installation_notes.md b/charts/stable/simply-shorten/docs/installation_notes.md new file mode 100644 index 00000000000..664eddd5835 --- /dev/null +++ b/charts/stable/simply-shorten/docs/installation_notes.md @@ -0,0 +1,14 @@ +# Installation Notes + +- Set `username` to a username that is hard to guess. +- Set `password` to a password that is hard to guess. + +- Enable ingress, without doing so `http://IP:PORT` will be used as the short url generator which obviously will be an issue. + +- Please follow this [guide](https://truecharts.org/docs/manual/SCALE%20Apps/add-ingress) on adding ingress to a chart. + +## Disable authentication + +- Due to **NOT** being a recommended option you will have to manually add this env yourself. + +- Add an additional env variable `INSECURE_DISABLE_PASSWORD` with the value of `I_KNOW_ITS_BAD` in **Configure Extra Environment Variables**. Any other value will **NOT** work. diff --git a/charts/incubator/simply-shorten/icon.png b/charts/stable/simply-shorten/icon.png similarity index 100% rename from charts/incubator/simply-shorten/icon.png rename to charts/stable/simply-shorten/icon.png diff --git a/charts/incubator/simply-shorten/questions.yaml b/charts/stable/simply-shorten/questions.yaml similarity index 89% rename from charts/incubator/simply-shorten/questions.yaml rename to charts/stable/simply-shorten/questions.yaml index c556fbc3084..ccf7300c247 100644 --- a/charts/incubator/simply-shorten/questions.yaml +++ b/charts/stable/simply-shorten/questions.yaml @@ -12,9 +12,9 @@ questions: # Include{recreate} # Include{controllerExpert} # Include{controllerExpertExtraArgs} - - variable: env + - variable: secretEnv group: "Container Configuration" - label: "Image Environment" + label: "Image Secrets" schema: additional_attrs: true type: dict @@ -23,12 +23,13 @@ questions: label: "username" schema: type: string - default: "TrueNAS" + default: "" - variable: password label: "password" schema: type: string - default: "TrueNAS" + private: true + default: "" # Include{containerConfig} # Include{serviceRoot} - variable: main @@ -52,7 +53,7 @@ questions: type: int default: 4567 required: true -# Include{advancedPortTCP} +# Include{advancedPortHTTP} - variable: targetPort label: "Target Port" description: "The internal(!) port on the container the Application runs on" @@ -63,6 +64,16 @@ questions: default: false # Include{serviceExpert} # Include{serviceList} +# Include{persistenceRoot} + - variable: config + label: "App Config Storage" + description: "Stores the Application Configuration." + schema: + additional_attrs: true + type: dict + attrs: +# Include{persistenceBasic} +# Include{persistenceAdvanced} # Include{persistenceList} # Include{ingressRoot} - variable: main diff --git a/charts/incubator/simply-shorten/templates/common.yaml b/charts/stable/simply-shorten/templates/common.yaml similarity index 100% rename from charts/incubator/simply-shorten/templates/common.yaml rename to charts/stable/simply-shorten/templates/common.yaml diff --git a/charts/incubator/simply-shorten/values.yaml b/charts/stable/simply-shorten/values.yaml similarity index 54% rename from charts/incubator/simply-shorten/values.yaml rename to charts/stable/simply-shorten/values.yaml index 1d52e897023..ad999c1a6e8 100644 --- a/charts/incubator/simply-shorten/values.yaml +++ b/charts/stable/simply-shorten/values.yaml @@ -1,24 +1,35 @@ -env: - password: unraid - username: unraid image: pullPolicy: IfNotPresent repository: tccr.io/truecharts/simply-shorten - tag: latest@sha256:a3f74beafc532e55b087f7274b3072561e6d0cab9271bf236612b3ad1c3dc4cd -persistence: {} + tag: v1.1@sha256:40e1ae029e52ef3429ec022e2eeac27639fb102fdaea6802f28cd0d628dc74df + podSecurityContext: runAsGroup: 0 runAsUser: 0 + securityContext: readOnlyRootFilesystem: false runAsNonRoot: false + +secretEnv: + password: user + username: pass + +env: + db_url: "/config/db/urls.sqlite" + service: main: ports: main: port: 4567 - protocol: TCP + protocol: HTTP targetPort: 4567 +persistence: + config: + enabled: true + mountPath: "/config/db" + portal: enabled: true