fix(speedtest-tracker): Port speedtest-tracker (#8122)

**Description**
<!--
Please include a summary of the change and which issue is fixed. Please
also include relevant motivation and context. List any dependencies that
are required for this change.
-->

Port speedtest to new common.

⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ 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
-->
Tested using CI on my fork which completed successfully.

**📃 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
- [ ] ⬆️ 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:
MaverickD650
2023-04-30 13:59:28 +00:00
committed by GitHub
co-authored by Stavros Kois
parent 15890c1bc3
commit 93ca2988b3
5 changed files with 65 additions and 65 deletions
@@ -3,11 +3,7 @@ appVersion: "latest"
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.1
- condition: postgresql.enabled
name: postgresql
repository: https://deps.truecharts.org/
version: 11.0.31
description: A self-hosted internet performance tracking application that runs speedtest checks against Ookla's Speedtest service. description: A self-hosted internet performance tracking application that runs speedtest checks against Ookla's Speedtest service.
home: https://truecharts.org/charts/incubator/speedtest-tracker home: https://truecharts.org/charts/incubator/speedtest-tracker
icon: https://truecharts.org/img/hotlink-ok/chart-icons/speedtest-tracker.png icon: https://truecharts.org/img/hotlink-ok/chart-icons/speedtest-tracker.png
@@ -22,7 +18,7 @@ name: speedtest-tracker
sources: sources:
- https://github.com/truecharts/charts/tree/master/charts/incubator/speedtest-tracker - https://github.com/truecharts/charts/tree/master/charts/incubator/speedtest-tracker
- https://github.com/alexjustesen/speedtest-tracker - https://github.com/alexjustesen/speedtest-tracker
version: 3.0.31 version: 4.0.0
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- speedtest - speedtest
@@ -6,18 +6,17 @@ questions:
# Include{global} # Include{global}
# Include{workload} # Include{workload}
# Include{workloadDeployment} # Include{workloadDeployment}
# Include{replicas1} # Include{replicas1}
# Include{podSpec} # Include{podSpec}
# Include{containerMain} # Include{containerMain}
# Include{containerBasic} # Include{containerBasic}
# Include{containerAdvanced} # Include{containerAdvanced}
# Include{containerConfig} # Include{containerConfig}
# Include{podOptions}
# Include{serviceRoot} # Include{serviceRoot}
- variable: main - variable: main
label: Main Service label: "Main Service"
description: The Primary service on which the healthcheck runs, often the webUI description: "The Primary service on which the healthcheck runs, often the webUI"
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
@@ -25,14 +24,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: 8765 default: 8765
@@ -43,8 +42,8 @@ questions:
# Include{serviceList} # Include{serviceList}
# Include{persistenceRoot} # Include{persistenceRoot}
- variable: config - variable: config
label: App Config Storage label: "App Config Storage"
description: Stores the Application Configuration. description: "Stores the Application Configuration."
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
@@ -53,7 +52,7 @@ questions:
# 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
@@ -62,17 +61,16 @@ 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"
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
@@ -80,12 +78,11 @@ 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
# Include{resources} # Include{resources}
# Include{advanced} # Include{advanced}
# Include{addons} # Include{addons}
@@ -0,0 +1 @@
{{- include "tc.v1.common.lib.chart.notes" $ -}}
@@ -1 +1 @@
{{ include "tc.common.loader.all" . }} {{ include "tc.v1.common.loader.all" . }}
+27 -21
View File
@@ -4,45 +4,51 @@ 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
env:
DB_CONNECTION: pgsql
DB_PORT: 5432
DB_DATABASE: "{{ .Values.postgresql.postgresqlDatabase }}"
DB_USERNAME: "{{ .Values.postgresql.postgresqlUsername }}"
DB_HOST:
secretKeyRef:
name: dbcreds
key: plainhost
DB_PASSWORD:
secretKeyRef:
name: dbcreds
key: postgresql-password
service: service:
main: main:
ports: ports:
main: main:
port: 8765 port: 8765
protocol: HTTPS protocol: https
targetPort: 443 targetPort: 443
workload:
main:
enabled: true
primary: true
podSpec:
containers:
env:
DB_CONNECTION: pgsql
DB_PORT: 5432
DB_DATABASE: "{{ .Values.cnpg.main.database }}"
DB_USERNAME: "{{ .Values.cnpg.main.user }}"
DB_HOST:
secretKeyRef:
name: cnpg-main-urls
key: std
DB_PASSWORD:
secretKeyRef:
name: cnpg-main-user
key: password
persistence: persistence:
config: config:
enabled: true enabled: true
mountPath: /config mountPath: /config
postgresql: cnpg:
main:
enabled: true enabled: true
existingSecret: dbcreds user: speedtest_tracker
postgresqlDatabase: speedtest_tracker database: speedtest_tracker
postgresqlUsername: speedtest_tracker
portal: portal:
open:
enabled: true enabled: true