feat(stable): BREAKING CHANGE migrate to new common part 1 (#7900)

**Description**
Part 1 of the migration to new common on the stable train.
This basically breaks most/all charts requiring a reinstall on SCALE as
well.

Helm users shouldn't need a reinstall but could migrate their
values.yaml modification manually besides backing-up and porting the
databases.

There be Dragons basically, as we obviously cannot 100% go over
each-and-every single app in the stable train like we did in the
enterprise train.

**⚙️ Type of change**

- [x] ⚙️ Feature/App addition
- [x] 🪛 Bugfix
- [x] ⚠️ 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?**
Via CI and manually validation in a lot of cases where the CI did not
correctly check things.
Additional catalog item creation tooling for local testing has been
added as well.

**📃 Notes:**
There will be issues in the future but we should get as much working
well as we can.

**✔️ Checklist:**

- [x] ⚖️ My code follows the style guidelines of this project
- [x] 👀 I have performed a self-review of my own code
- [x] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [x] 📄 I have made corresponding changes to the documentation
- [x] ⚠️ My changes generate no new warnings
- [x] 🧪 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._
This commit is contained in:
Kjeld Schouten-Lebbing
2023-04-11 12:07:17 +02:00
committed by GitHub
parent 14bc83d3c7
commit 0b726419d4
1146 changed files with 15731 additions and 17107 deletions
+2 -3
View File
@@ -3,7 +3,7 @@ appVersion: "4.2.3"
dependencies:
- name: common
repository: https://library-charts.truecharts.org
version: 11.1.2
version: 12.2.32
deprecated: false
description: AppDaemon is a loosely coupled, multi-threaded, sandboxed python execution environment for writing automation apps.
home: https://truecharts.org/charts/stable/appdaemon
@@ -24,9 +24,8 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/appdaemon
- https://github.com/AppDaemon/appdaemon
type: application
version: 11.0.11
version: 12.0.0
annotations:
truecharts.org/catagories: |
- utilities
truecharts.org/SCALE-support: "true"
truecharts.org/grade: U
+72 -86
View File
@@ -10,78 +10,64 @@ questions:
# Include{replicas1}
# Include{podSpec}
# Include{containerMain}
- variable: env
group: "App Configuration"
label: "Image Environment"
schema:
additional_attrs: true
type: dict
attrs:
- variable: TOKEN
label: HA Token
description: Your Long Live Home-Assistant Token
schema:
type: string
private: true
required: true
default: ""
- variable: HA_URL
label: HA URL
description: Your Home-Assistant URL
schema:
type: string
default: ""
required: true
- variable: DASH_URL
label: Dashboard URL
description: URL of your AppDaemon dashboard
schema:
type: string
default: http://$HOSTNAME:5050
required: true
- variable: LATITUDE
label: Latitude
description: Latitude of your home assistant instance
schema:
type: string
default: ""
valid_chars: '^(\+|-)?(?:90(?:(?:\.0{1,15})?)|(?:[0-9]|[1-8][0-9])(?:(?:\.[0-9]{1,15})?))$'
required: true
- variable: LONGITUDE
label: Longitude
description: Longitude of your home assistant instance
schema:
type: string
default: ""
valid_chars: '^(\+|-)?(?:180(?:(?:\.0{1,15})?)|(?:[0-9]|[1-9][0-9]|1[0-7][0-9])(?:(?:\.[0-9]{1,15})?))$'
required: true
- variable: ELEVATION
label: Elevation
description: Longitude of your home assistant instance
schema:
type: int
default: 0
required: true
# Include{containerBasic}
# Include{containerAdvanced}
- variable: secretEnv
group: App Configuration
label: Image Secrets
schema:
additional_attrs: true
type: dict
attrs:
- variable: TOKEN
label: HA Token
description: Your Long Live Home-Assistant Token
schema:
type: string
private: true
required: true
default: ""
# Docker specific env
- variable: env
group: App Configuration
label: Image Environment
schema:
additional_attrs: true
type: dict
attrs:
- variable: HA_URL
label: HA URL
description: Your Home-Assistant URL
schema:
type: string
default: ""
required: true
- variable: DASH_URL
label: Dashboard URL
description: URL of your AppDaemon dashboard
schema:
type: string
default: http://$HOSTNAME:5050
required: true
- variable: LATITUDE
label: Latitude
description: Latitude of your home assistant instance
schema:
type: string
default: ""
valid_chars: '^(\+|-)?(?:90(?:(?:\.0{1,15})?)|(?:[0-9]|[1-8][0-9])(?:(?:\.[0-9]{1,15})?))$'
required: true
- variable: LONGITUDE
label: Longitude
description: Longitude of your home assistant instance
schema:
type: string
default: ""
valid_chars: '^(\+|-)?(?:180(?:(?:\.0{1,15})?)|(?:[0-9]|[1-9][0-9]|1[0-7][0-9])(?:(?:\.[0-9]{1,15})?))$'
required: true
- variable: ELEVATION
label: Elevation
description: Longitude of your home assistant instance
schema:
type: int
default: 0
required: true
# Include{containerConfig}
# Include{serviceRoot}
- variable: main
label: Main Service
description: The Primary service on which the healthcheck runs, often the webUI
schema:
additional_attrs: true
type: dict
attrs:
# Include{serviceMain}
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
- variable: main
@@ -123,28 +109,28 @@ questions:
# Include{ingressTraefik}
# Include{ingressList}
# Include{podSecurityContextRoot}
- variable: runAsUser
label: runAsUser
description: The UserID of the user running the application
schema:
type: int
default: 0
- variable: runAsGroup
label: runAsGroup
description: The groupID this App of the user running the application
schema:
type: int
default: 0
# Include{securityContextRoot}
- variable: runAsUser
label: "runAsUser"
description: "The UserID of the user running the application"
schema:
type: int
default: 0
- variable: runAsGroup
label: "runAsGroup"
description: "The groupID this App of the user running the application"
schema:
type: int
default: 0
# Include{securityContextContainer}
# Include{securityContextAdvanced}
# Include{securityContextPod}
- variable: fsGroup
label: fsGroup
description: The group that should own ALL storage.
schema:
type: int
default: 568
- variable: fsGroup
label: "fsGroup"
description: "The group that should own ALL storage."
schema:
type: int
default: 568
# Include{resources}
# Include{advanced}
@@ -0,0 +1 @@
{{- include "tc.v1.common.lib.chart.notes" $ -}}
@@ -1 +1 @@
{{ include "tc.common.loader.all" . }}
{{ include "tc.v1.common.loader.all" . }}
+33 -21
View File
@@ -4,37 +4,49 @@ image:
tag: 4.2.3@sha256:3fa8d88560d0dd12259812ad7a0869ede726da24d82090230e07bf66cd0b4c0e
securityContext:
runAsNonRoot: false
readOnlyRootFilesystem: false
podSecurityContext:
runAsUser: 0
runAsGroup: 0
secretEnv:
TOKEN: "REPLACETHIS"
env:
DASH_URL: "http://$HOSTNAME:5050"
HA_URL: ""
LATITUDE: 46
LONGITUDE: -94
ELEVATION: 1217
TIMEZONE: "{{ .Values.TZ }}"
container:
runAsNonRoot: false
readOnlyRootFilesystem: false
runAsUser: 0
runAsGroup: 0
service:
main:
ports:
main:
port: 5050
protocol: http
targetPort: 5050
workload:
main:
podSpec:
containers:
main:
probes:
liveness:
type: http
path: /
readiness:
type: http
path: /
startup:
type: http
path: /
env:
DASH_URL: "http://$HOSTNAME:5050"
HA_URL: ""
LATITUDE: 46
LONGITUDE: -94
ELEVATION: 1217
TIMEZONE: "{{ .Values.TZ }}"
TOKEN: "REPLACETHIS"
persistence:
conf:
enabled: true
mountPath: "/conf"
varrun:
enabled: true
mountPath: /conf
portal:
enabled: true
open:
enabled: true