feat(stable): BREAKING CHANGE migrate to new common part 6 (#8664)

**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.
-->
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ 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
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 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._
This commit is contained in:
Kjeld Schouten-Lebbing
2023-05-01 11:16:44 +02:00
committed by GitHub
parent 8398d3adf8
commit 5b1583fcb4
39 changed files with 708 additions and 563 deletions
+3 -7
View File
@@ -1,6 +1,6 @@
apiVersion: v2
appVersion: "1.8.0"
version: 12.0.22
version: 13.0.0
kubeVersion: ">=1.16.0-0"
name: firefox-syncserver
description: This is an all-in-one package for running a self-hosted Firefox Sync server.
@@ -18,11 +18,8 @@ sources:
dependencies:
- name: common
repository: https://library-charts.truecharts.org
version: 11.1.2
- condition: postgresql.enabled
name: postgresql
repository: https://deps.truecharts.org/
version: 11.0.31
version: 12.6.1
maintainers:
- email: info@truecharts.org
name: TrueCharts
@@ -31,4 +28,3 @@ annotations:
truecharts.org/catagories: |
- media
truecharts.org/SCALE-support: "true"
truecharts.org/grade: U
+58 -63
View File
@@ -10,66 +10,61 @@ questions:
# Include{replicas1}
# Include{podSpec}
# Include{containerMain}
- variable: env
group: "App Configuration"
label: "Image Environment"
schema:
additional_attrs: true
type: dict
attrs:
- variable: FF_SYNCSERVER_SECRET
label: "FF_SYNCSERVER_SECRET"
description: "Sets the FF_SYNCSERVER_SECRET env var"
schema:
type: string
default: "changeme"
- variable: FF_SYNCSERVER_PUBLIC_URL
label: "FF_SYNCSERVER_PUBLIC_URL"
description: "Sets the FF_SYNCSERVER_PUBLIC_URL env var"
schema:
type: string
default: ""
- variable: FF_SYNCSERVER_FORCE_WSGI_ENVIRON
label: "FF_SYNCSERVER_FORCE_WSGI_ENVIRON"
description: "Sets the FF_SYNCSERVER_FORCE_WSGI_ENVIRON env var"
schema:
type: boolean
default: true
- variable: FF_SYNCSERVER_ACCESSLOG
label: "FF_SYNCSERVER_ACCESSLOG"
description: "Sets the FF_SYNCSERVER_ACCESSLOG env var"
schema:
type: boolean
default: false
- variable: FF_SYNCSERVER_LOGLEVEL
label: "FF_SYNCSERVER_LOGLEVEL"
description: "Sets the FF_SYNCSERVER_LOGLEVEL env var"
schema:
type: string
default: "info"
- variable: FF_SYNCSERVER_ALLOW_NEW_USERS
label: "FF_SYNCSERVER_ALLOW_NEW_USERS"
description: "Sets the FF_SYNCSERVER_ALLOW_NEW_USERS env var"
schema:
type: boolean
default: true
- variable: FF_SYNCSERVER_FORWARDED_ALLOW_IPS
label: "FF_SYNCSERVER_FORWARDED_ALLOW_IPS"
description: "Sets the FF_SYNCSERVER_FORWARDED_ALLOW_IPS env var"
schema:
type: string
default: "*"
# Include{containerBasic}
# Include{containerAdvanced}
- variable: secretEnv
group: "App Configuration"
label: "Image Secrets"
schema:
additional_attrs: true
type: dict
attrs:
- variable: FF_SYNCSERVER_SECRET
label: "FF_SYNCSERVER_SECRET"
description: "Sets the FF_SYNCSERVER_SECRET env var"
schema:
type: string
default: "changeme"
- variable: env
group: "App Configuration"
label: "Image Environment"
schema:
additional_attrs: true
type: dict
attrs:
- variable: FF_SYNCSERVER_PUBLIC_URL
label: "FF_SYNCSERVER_PUBLIC_URL"
description: "Sets the FF_SYNCSERVER_PUBLIC_URL env var"
schema:
type: string
default: ""
- variable: FF_SYNCSERVER_FORCE_WSGI_ENVIRON
label: "FF_SYNCSERVER_FORCE_WSGI_ENVIRON"
description: "Sets the FF_SYNCSERVER_FORCE_WSGI_ENVIRON env var"
schema:
type: boolean
default: true
- variable: FF_SYNCSERVER_ACCESSLOG
label: "FF_SYNCSERVER_ACCESSLOG"
description: "Sets the FF_SYNCSERVER_ACCESSLOG env var"
schema:
type: boolean
default: false
- variable: FF_SYNCSERVER_LOGLEVEL
label: "FF_SYNCSERVER_LOGLEVEL"
description: "Sets the FF_SYNCSERVER_LOGLEVEL env var"
schema:
type: string
default: "info"
- variable: FF_SYNCSERVER_ALLOW_NEW_USERS
label: "FF_SYNCSERVER_ALLOW_NEW_USERS"
description: "Sets the FF_SYNCSERVER_ALLOW_NEW_USERS env var"
schema:
type: boolean
default: true
- variable: FF_SYNCSERVER_FORWARDED_ALLOW_IPS
label: "FF_SYNCSERVER_FORWARDED_ALLOW_IPS"
description: "Sets the FF_SYNCSERVER_FORWARDED_ALLOW_IPS env var"
schema:
type: string
default: "*"
# Include{containerConfig}
# Include{podOptions}
# Include{serviceRoot}
- variable: main
label: "Main Service"
@@ -126,12 +121,12 @@ questions:
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
- variable: runAsGroup
label: "runAsGroup"
description: "The groupID of the user running the application"
schema:
type: int
default: 0
# Include{securityContextContainer}
# Include{securityContextAdvanced}
# Include{securityContextPod}
@@ -0,0 +1 @@
{{- include "tc.v1.common.lib.chart.notes" $ -}}
@@ -1 +1 @@
{{ include "tc.common.loader.all" . }}
{{ include "tc.v1.common.loader.all" . }}
+39 -27
View File
@@ -4,29 +4,38 @@ image:
# Overrides the image tag whose default is the chart appVersion.
tag: v1.8.0@sha256:13d5d1beae0e7ea4298224abbc415de837200b8402d676e856601a63dc8432ed
secretEnv:
FF_SYNCSERVER_SECRET: "changeme"
securityContext:
readOnlyRootFilesystem: false
allowPrivilegeEscalation: true
runAsNonRoot: false
container:
readOnlyRootFilesystem: false
allowPrivilegeEscalation: true
runAsNonRoot: false
runAsUser: 0
runAsGroup: 0
podSecurityContext:
runAsUser: 0
runAsGroup: 0
env:
FF_SYNCSERVER_PUBLIC_URL: "firefox-syncserver.192.168.1.189.nip.io"
FF_SYNCSERVER_FORCE_WSGI_ENVIRON: true
FF_SYNCSERVER_ACCESSLOG: false
FF_SYNCSERVER_LOGLEVEL: "info"
FF_SYNCSERVER_ALLOW_NEW_USERS: true
FF_SYNCSERVER_FORWARDED_ALLOW_IPS: "*"
FF_SYNCSERVER_SQLURI:
secretKeyRef:
name: dbcreds
key: url
workload:
main:
podSpec:
containers:
main:
probes:
liveness:
type: tcp
readiness:
type: tcp
startup:
type: tcp
env:
FF_SYNCSERVER_PUBLIC_URL: "firefox-syncserver.192.168.1.189.nip.io"
FF_SYNCSERVER_FORCE_WSGI_ENVIRON: true
FF_SYNCSERVER_ACCESSLOG: false
FF_SYNCSERVER_LOGLEVEL: "info"
FF_SYNCSERVER_ALLOW_NEW_USERS: true
FF_SYNCSERVER_FORWARDED_ALLOW_IPS: "*"
FF_SYNCSERVER_SQLURI:
secretKeyRef:
name: cnpg-main-urls
key: std
FF_SYNCSERVER_SECRET: "changeme"
service:
main:
@@ -34,16 +43,19 @@ service:
main:
port: 10051
targetPort: 5000
persistence:
config:
enabled: true
mountPath: "/config"
# Enabled postgres
postgresql:
enabled: true
existingSecret: "dbcreds"
postgresqlUsername: firefox-syncserver
postgresqlDatabase: firefox-syncserver
cnpg:
main:
enabled: true
user: firefox-syncserver
database: firefox-syncserver
portal:
enabled: true
open:
enabled: true