feat(stable): BREAKING CHANGE migrate to new common part 5 (#8615)

**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-04-30 21:15:20 +02:00
committed by GitHub
parent a761da70fd
commit cc4a7edb53
81 changed files with 1867 additions and 1694 deletions
+3 -7
View File
@@ -3,11 +3,8 @@ appVersion: "1.8.7"
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
description: Commento++ is a free, open source, fast & lightweight comments box that you can embed in your static website instead of Disqus.
home: https://truecharts.org/charts/stable/commento-plusplus
icon: https://truecharts.org/img/hotlink-ok/chart-icons/commento-plusplus.png
@@ -22,9 +19,8 @@ name: commento-plusplus
sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/commento-plusplus
- https://github.com/souramoo/commentoplusplus
version: 6.0.23
version: 7.0.0
annotations:
truecharts.org/catagories: |
- media
truecharts.org/SCALE-support: "true"
truecharts.org/grade: U
+88 -87
View File
@@ -10,90 +10,91 @@ questions:
# Include{replicas1}
# Include{podSpec}
# Include{containerMain}
- variable: env
group: "App Configuration"
label: "Image Environment"
schema:
additional_attrs: true
type: dict
attrs:
- variable: COMMENTO_ORIGIN
label: "COMMENTO_ORIGIN"
description: "This should be set to the subdomain or the IP address hosting Commento. All API requests will go to this server. This may include subdirectories if Commento is hosted behind a reverse proxy, for example. Include the protocol in the value to use HTTP/HTTPS."
schema:
type: string
default: ""
- variable: COMMENTO_FORBID_NEW_OWNERS
label: "COMMENTO_FORBID_NEW_OWNERS"
description: "Used to disable new dashboard registrations. Useful if you are the only person using Commento on your server. Does not impact the creation of accounts for your readers."
schema:
type: boolean
default: false
- variable: COMMENTO_GZIP_STATIC
label: "COMMENTO_GZIP_STATIC"
schema:
type: boolean
default: true
- variable: COMMENTO_ENABLE_WILDCARDS
label: "COMMENTO_ENABLE_WILDCARDS"
description: "Allows use of wildcards in domain names in the admin dashboard. (e.g. if you share your commento instance with more than one admin/allow new registrations)"
schema:
type: boolean
default: true
- variable: COMMENTO_ENABLE_LOGGING
label: "COMMENTO_ENABLE_LOGGING"
description: "Should we log every page view? This will allow you to see stats but will fill up your free postgres database quite quickly."
schema:
type: boolean
default: false
- variable: smpt_config
label: "Enable SMTP"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: SMTP_SKIP_HOST_VERIFY
label: "SMTP_SKIP_HOST_VERIFY"
description: "Allows skipping of host verification for SMTP email sending."
schema:
type: boolean
default: false
- variable: COMMENTO_SMTP_USERNAME
label: "COMMENTO_SMTP_USERNAME"
description: "SMTP credentials and configuration the server should use to send emails."
schema:
type: string
default: ""
- variable: COMMENTO_SMTP_PASSWORD
label: "COMMENTO_SMTP_PASSWORD"
description: "SMTP credentials and configuration the server should use to send emails."
schema:
type: string
private: true
default: ""
- variable: COMMENTO_SMTP_HOST
label: "COMMENTO_SMTP_HOST"
description: "SMTP credentials and configuration the server should use to send emails."
schema:
type: string
default: ""
- variable: COMMENTO_SMTP_FROM_ADDRESS
label: "COMMENTO_SMTP_FROM_ADDRESS"
description: "SMTP credentials and configuration the server should use to send emails."
schema:
type: string
default: ""
- variable: COMMENTO_SMTP_PORT
label: "COMMENTO_SMTP_PORT"
description: "SMTP credentials and configuration the server should use to send emails."
schema:
type: int
default: 587
# Include{containerBasic}
# Include{containerAdvanced}
- variable: env
group: "App Configuration"
label: "Image Environment"
schema:
additional_attrs: true
type: dict
attrs:
- variable: COMMENTO_ORIGIN
label: "COMMENTO_ORIGIN"
description: "This should be set to the subdomain or the IP address hosting Commento. All API requests will go to this server. This may include subdirectories if Commento is hosted behind a reverse proxy, for example. Include the protocol in the value to use HTTP/HTTPS."
schema:
type: string
default: ""
- variable: COMMENTO_FORBID_NEW_OWNERS
label: "COMMENTO_FORBID_NEW_OWNERS"
description: "Used to disable new dashboard registrations. Useful if you are the only person using Commento on your server. Does not impact the creation of accounts for your readers."
schema:
type: boolean
default: false
- variable: COMMENTO_GZIP_STATIC
label: "COMMENTO_GZIP_STATIC"
schema:
type: boolean
default: true
- variable: COMMENTO_ENABLE_WILDCARDS
label: "COMMENTO_ENABLE_WILDCARDS"
description: "Allows use of wildcards in domain names in the admin dashboard. (e.g. if you share your commento instance with more than one admin/allow new registrations)"
schema:
type: boolean
default: true
- variable: COMMENTO_ENABLE_LOGGING
label: "COMMENTO_ENABLE_LOGGING"
description: "Should we log every page view? This will allow you to see stats but will fill up your free postgres database quite quickly."
schema:
type: boolean
default: false
- variable: smpt_config
label: "Enable SMTP"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: SMTP_SKIP_HOST_VERIFY
label: "SMTP_SKIP_HOST_VERIFY"
description: "Allows skipping of host verification for SMTP email sending."
schema:
type: boolean
default: false
- variable: COMMENTO_SMTP_USERNAME
label: "COMMENTO_SMTP_USERNAME"
description: "SMTP credentials and configuration the server should use to send emails."
schema:
type: string
default: ""
- variable: COMMENTO_SMTP_PASSWORD
label: "COMMENTO_SMTP_PASSWORD"
description: "SMTP credentials and configuration the server should use to send emails."
schema:
type: string
private: true
default: ""
- variable: COMMENTO_SMTP_HOST
label: "COMMENTO_SMTP_HOST"
description: "SMTP credentials and configuration the server should use to send emails."
schema:
type: string
default: ""
- variable: COMMENTO_SMTP_FROM_ADDRESS
label: "COMMENTO_SMTP_FROM_ADDRESS"
description: "SMTP credentials and configuration the server should use to send emails."
schema:
type: string
default: ""
- variable: COMMENTO_SMTP_PORT
label: "COMMENTO_SMTP_PORT"
description: "SMTP credentials and configuration the server should use to send emails."
schema:
type: int
default: 587
# Include{containerConfig}
# Include{podOptions}
# Include{serviceRoot}
- variable: main
label: "Main Service"
@@ -141,12 +142,12 @@ questions:
schema:
type: int
default: 568
- variable: runAsGroup
label: "runAsGroup"
description: "The groupID this App of the user running the application"
schema:
type: int
default: 568
- variable: runAsGroup
label: "runAsGroup"
description: "The groupID of the user running the application"
schema:
type: int
default: 568
# 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" . }}
+40 -25
View File
@@ -3,36 +3,51 @@ image:
tag: v1.8.7@sha256:9e64c97771e6d875c465fd047bc98978c7ffc4ff6c0841a878c790753a8cfca1
pullPolicy: IfNotPresent
env:
COMMENTO_PORT: "{{ .Values.service.main.ports.main.port }}"
# User Defined
COMMENTO_FORBID_NEW_OWNERS: false
COMMENTO_GZIP_STATIC: true
COMMENTO_ORIGIN: "http://localhost:8080"
COMMENTO_ENABLE_WILDCARDS: true
COMMENTO_ENABLE_LOGGING: false
SMTP_SKIP_HOST_VERIFY: false
COMMENTO_SMTP_USERNAME: ""
COMMENTO_SMTP_PASSWORD: ""
COMMENTO_SMTP_HOST: ""
COMMENTO_SMTP_FROM_ADDRESS: ""
COMMENTO_SMTP_PORT: 587
COMMENTO_POSTGRES:
secretKeyRef:
name: dbcreds
key: urlnossl
service:
main:
ports:
main:
port: 10240
protocol: http
postgresql:
enabled: true
existingSecret: "dbcreds"
postgresqlUsername: comment-plusplus
postgresqlDatabase: comment-plusplus
workload:
main:
podSpec:
containers:
main:
probes:
liveness:
type: tcp
readiness:
type: tcp
startup:
type: tcp
env:
COMMENTO_PORT: "{{ .Values.service.main.ports.main.port }}"
# User Defined
COMMENTO_FORBID_NEW_OWNERS: false
COMMENTO_GZIP_STATIC: true
COMMENTO_ORIGIN: "http://localhost:8080"
COMMENTO_ENABLE_WILDCARDS: true
COMMENTO_ENABLE_LOGGING: false
SMTP_SKIP_HOST_VERIFY: false
COMMENTO_SMTP_USERNAME: ""
COMMENTO_SMTP_PASSWORD: ""
COMMENTO_SMTP_HOST: ""
COMMENTO_SMTP_FROM_ADDRESS: ""
COMMENTO_SMTP_PORT: 587
COMMENTO_POSTGRES:
secretKeyRef:
name: cnpg-main-urls
key: std
cnpg:
main:
enabled: true
user: comment-plusplus
database: comment-plusplus
portal:
enabled: true
open:
enabled: true