feat(servas) move servas to stable (#11981)

**Description**
Move app to stable
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [X] 🔃 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
- [X] 👀 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:
Xstar97TheNoob
2023-08-29 17:08:45 +00:00
committed by GitHub
co-authored by Stavros Kois
parent a7f859bd4f
commit 98d442673d
10 changed files with 40 additions and 59 deletions
@@ -3,14 +3,14 @@ appVersion: "0.0.5"
dependencies: dependencies:
- name: common - name: common
repository: https://library-charts.truecharts.org repository: https://library-charts.truecharts.org
version: 13.2.2 version: 14.0.3
- condition: mariadb.enabled - condition: mariadb.enabled
name: mariadb name: mariadb
repository: https://deps.truecharts.org/ repository: https://deps.truecharts.org/
version: 7.0.70 version: 7.0.70
deprecated: false deprecated: false
description: A self-hosted bookmark management tool. description: A self-hosted bookmark management tool.
home: https://truecharts.org/charts/incubator/servas home: https://truecharts.org/charts/stable/servas
icon: https://truecharts.org/img/hotlink-ok/chart-icons/servas.png icon: https://truecharts.org/img/hotlink-ok/chart-icons/servas.png
keywords: keywords:
- servas - servas
@@ -22,10 +22,10 @@ maintainers:
url: https://truecharts.org url: https://truecharts.org
name: servas name: servas
sources: sources:
- https://github.com/truecharts/charts/tree/master/charts/incubator/servas - https://github.com/truecharts/charts/tree/master/charts/stable/servas
- https://github.com/beromir/Servas - https://github.com/beromir/Servas
type: application type: application
version: 0.0.12 version: 0.0.13
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- bookmarks - bookmarks

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

@@ -23,36 +23,26 @@ questions:
schema: schema:
type: string type: string
default: "Servas" default: "Servas"
- variable: APP_DEBUG
label: App Debug
schema:
type: string
default: "true"
enum:
- value: "true"
description: "True"
- value: "false"
description: "False"
- variable: APP_URL - variable: APP_URL
label: App Url label: App Url
description: "set as http://ip:port or https://mydomain.tld" description: "Configure it either as http://ip:port or as https://mydomain.tld."
schema: schema:
type: string type: string
default: "" default: ""
- variable: APP_DEBUG
label: App Debug
description: App Debug
schema:
type: boolean
default: true
- variable: SERVAS_ENABLE_REGISTRATION - variable: SERVAS_ENABLE_REGISTRATION
label: Servas Enable Registration label: Servas Enable Registration
schema: schema:
type: string type: boolean
default: "true" default: true
enum:
- value: "true"
description: "True"
- value: "false"
description: "False"
# Include{containerBasic} # Include{containerBasic}
# Include{containerAdvanced} # Include{containerAdvanced}
# Include{containerConfig} # Include{containerConfig}
# Include{podOptions} # Include{podOptions}
# Include{serviceRoot} # Include{serviceRoot}
@@ -60,14 +50,14 @@ questions:
# Include{serviceSelectorLoadBalancer} # Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras} # Include{serviceSelectorExtras}
- variable: main - variable: main
label: "Main Service Port Configuration" label: Main Service Port Configuration
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
- variable: port - variable: port
label: "Port" label: Port
description: "This port exposes the container port on the service" description: This port exposes the container port on the service
schema: schema:
type: int type: int
default: 11080 default: 11080
@@ -75,19 +65,10 @@ questions:
# Include{serviceExpertRoot} # Include{serviceExpertRoot}
# Include{serviceExpert} # Include{serviceExpert}
# Include{serviceList} # Include{serviceList}
# Include{persistenceRoot}
- variable: nginx
label: "App Nginx Storage"
description: "Stores the Application Nginx."
schema:
additional_attrs: true
type: dict
attrs:
# Include{persistenceBasic}
# Include{persistenceList} # Include{persistenceList}
# Include{ingressRoot} # Include{ingressRoot}
- variable: main - variable: main
label: "Main Ingress" label: Main Ingress
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
@@ -100,14 +81,14 @@ questions:
# Include{securityContextRoot} # Include{securityContextRoot}
- 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
schema: schema:
type: int type: int
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 this App of the user running the application
schema: schema:
type: int type: int
default: 0 default: 0
@@ -115,8 +96,8 @@ questions:
# Include{securityContextAdvanced} # Include{securityContextAdvanced}
# Include{securityContextPod} # Include{securityContextPod}
- variable: fsGroup - variable: fsGroup
label: "fsGroup" label: fsGroup
description: "The group that should own ALL storage." description: The group that should own ALL storage.
schema: schema:
type: int type: int
default: 568 default: 568
@@ -4,7 +4,7 @@
{{/* Render secrets for servas */}} {{/* Render secrets for servas */}}
{{- $secrets := include "servas.secrets" . | fromYaml -}} {{- $secrets := include "servas.secrets" . | fromYaml -}}
{{- if $secrets -}} {{- if $secrets -}}
{{- $_ := set .Values.secret "secrets" $secrets -}} {{- $_ := set .Values.secret "servas-secrets" $secrets -}}
{{- end -}} {{- end -}}
{{/* Render the templates */}} {{/* Render the templates */}}
@@ -9,7 +9,14 @@ securityContext:
readOnlyRootFilesystem: false readOnlyRootFilesystem: false
runAsUser: 0 runAsUser: 0
runAsGroup: 0 runAsGroup: 0
fsGroup: 568
service:
main:
ports:
main:
protocol: http
targetPort: 80
port: 11080
workload: workload:
main: main:
@@ -30,10 +37,10 @@ workload:
APP_NAME: Servas APP_NAME: Servas
APP_KEY: APP_KEY:
secretKeyRef: secretKeyRef:
name: secrets name: servas-secrets
key: APP_KEY key: APP_KEY
APP_ENV: production APP_ENV: production
APP_DEBUG: true APP_DEBUG: false
# APP_URL: "http://localhost:{{ .Values.service.main.ports.main.port }}" # APP_URL: "http://localhost:{{ .Values.service.main.ports.main.port }}"
SERVAS_ENABLE_REGISTRATION: true SERVAS_ENABLE_REGISTRATION: true
DB_CONNECTION: mysql DB_CONNECTION: mysql
@@ -51,24 +58,17 @@ workload:
name: '{{ printf "%s-%s" .Release.Name "mariadbcreds" }}' name: '{{ printf "%s-%s" .Release.Name "mariadbcreds" }}'
key: mariadb-password key: mariadb-password
service:
main:
ports:
main:
protocol: http
targetPort: 80
port: 11080
persistence: persistence:
nginx: nginx:
enabled: true enabled: true
mountPath: /var/run/nginx mountPath: "/var/run/nginx"
type: emptyDir
portal:
open:
enabled: true
mariadb: mariadb:
enabled: true enabled: true
mariadbUsername: servas mariadbUsername: servas
mariadbDatabase: servas mariadbDatabase: servas
portal:
open:
enabled: true