feat(strapi) change version to v4 (#4330)
* feat(strapi) change version to v4 * add secrets type correctly
This commit is contained in:
parent
516d51032d
commit
7aa5cbb282
|
@ -1,5 +1,5 @@
|
|||
apiVersion: v2
|
||||
appVersion: "3.6.8"
|
||||
appVersion: "4.4.5"
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: https://library-charts.truecharts.org
|
||||
|
@ -8,7 +8,7 @@ dependencies:
|
|||
name: postgresql
|
||||
repository: https://charts.truecharts.org/
|
||||
version: 8.0.119
|
||||
description: Strapi is the leading open-source headless CMS. JavaScript, fully customizable and developer-first.
|
||||
description: Open-source headless CMS. JavaScript, fully customizable and developer-first.
|
||||
home: https://truecharts.org/docs/charts/stable/strapi
|
||||
icon: https://truecharts.org/img/hotlink-ok/chart-icons/strapi.png
|
||||
keywords:
|
||||
|
@ -21,11 +21,10 @@ maintainers:
|
|||
url: https://truecharts.org
|
||||
name: strapi
|
||||
sources:
|
||||
- https://github.com/truecharts/charts/tree/master/charts/stable/strapi
|
||||
- https://hub.docker.com/r/strapi/strapi
|
||||
- https://github.com/strapi/strapi
|
||||
- https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/installation/docker.html#creating-a-strapi-project
|
||||
version: 4.0.50
|
||||
- https://truecharts.org/docs/charts/stable/strapi
|
||||
- https://hub.docker.com/r/naskio/strapi
|
||||
- https://github.com/naskio/docker-strapi
|
||||
version: 5.0.0
|
||||
annotations:
|
||||
truecharts.org/catagories: |
|
||||
- media
|
||||
|
|
|
@ -15,7 +15,37 @@ questions:
|
|||
# Include{recreate}
|
||||
# Include{controllerExpert}
|
||||
# Include{controllerExpertExtraArgs}
|
||||
# Docker specific env
|
||||
- variable: secretEnv
|
||||
group: "Container Configuration"
|
||||
label: "Image Secrets"
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: JWT_SECRET
|
||||
label: Jwt Secret
|
||||
description: The secret used to sign the JWT for the Users-Permissions plugin.
|
||||
schema:
|
||||
type: string
|
||||
private: true
|
||||
required: true
|
||||
default: ""
|
||||
- variable: ADMIN_JWT_SECRET
|
||||
label: Admin Jwt Secret
|
||||
description: The secret used to sign the JWT for the Admin panel.
|
||||
schema:
|
||||
type: string
|
||||
private: true
|
||||
required: true
|
||||
default: ""
|
||||
- variable: APP_KEYS
|
||||
label: App Keys
|
||||
description: The secret keys used to sign the session cookies.
|
||||
schema:
|
||||
type: string
|
||||
private: true
|
||||
required: true
|
||||
default: ""
|
||||
- variable: env
|
||||
group: "Container Configuration"
|
||||
label: "Image Environment"
|
||||
|
@ -24,16 +54,34 @@ questions:
|
|||
type: dict
|
||||
attrs:
|
||||
- variable: NODE_ENV
|
||||
label: "Node Environment"
|
||||
description: "Sets Node's Environment"
|
||||
label: Node Environment
|
||||
description: Sets Node's Environment
|
||||
schema:
|
||||
type: string
|
||||
default: "production"
|
||||
default: production
|
||||
enum:
|
||||
- value: "production"
|
||||
description: "Production"
|
||||
- value: "develop"
|
||||
description: "Development"
|
||||
- value: production
|
||||
description: Production
|
||||
- value: development
|
||||
description: Development
|
||||
- variable: STRAPI_LICENSE
|
||||
label: Strapi License
|
||||
description: The license key to activate the Enterprise Edition.
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
- variable: STRAPI_DISABLE_UPDATE_NOTIFICATION
|
||||
label: Strapi Disable Update Notifications
|
||||
description: Don't show the notification message about updating Strapi.
|
||||
schema:
|
||||
type: boolean
|
||||
default: true
|
||||
- variable: FAST_REFRESH
|
||||
label: Fast Refresh
|
||||
description: enable "Fast Refresh" for near-instant feedback.
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
- variable: EXTRA_ARGS
|
||||
label: "Extra Args (Leave empty for default)"
|
||||
description: "Pass extra args to the strapi new"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
image:
|
||||
repository: tccr.io/truecharts/strapi
|
||||
tag: v3.6.8@sha256:a36075a1a9cc9802e77772f765b189ff1f4216c11de80fb1c36b1a44551cdcc6
|
||||
pullPolicy: IfNotPresent
|
||||
tag: v4.4.5@sha256:38f3377319ce26bf345fe4d1acf656f2a06a12d24e47f862080f83f08fb8b654
|
||||
pullPolicy: Always
|
||||
|
||||
securityContext:
|
||||
readOnlyRootFilesystem: false
|
||||
|
@ -11,21 +11,29 @@ podSecurityContext:
|
|||
runAsUser: 0
|
||||
runAsGroup: 0
|
||||
|
||||
secretEnv:
|
||||
JWT_SECRET: "my_jwt_secret"
|
||||
ADMIN_JWT_SECRET: "my_admin_jwt_secret"
|
||||
APP_KEYS: "my_app_keys"
|
||||
|
||||
env:
|
||||
DATABASE_CLIENT: "postgres"
|
||||
DATABASE_PORT: 5432
|
||||
DATABASE_NAME: "{{ .Values.postgresql.postgresqlDatabase }}"
|
||||
DATABASE_USERNAME: "{{ .Values.postgresql.postgresqlUsername }}"
|
||||
NODE_ENV: "production"
|
||||
EXTRA_ARGS: ""
|
||||
DATABASE_HOST:
|
||||
secretKeyRef:
|
||||
name: dbcreds
|
||||
key: plainhost
|
||||
DATABASE_USERNAME: "{{ .Values.postgresql.postgresqlUsername }}"
|
||||
DATABASE_PASSWORD:
|
||||
secretKeyRef:
|
||||
name: dbcreds
|
||||
key: postgresql-password
|
||||
# STRAPI_LICENSE
|
||||
NODE_ENV: "production"
|
||||
STRAPI_DISABLE_UPDATE_NOTIFICATION: true
|
||||
FAST_REFRESH: false
|
||||
EXTRA_ARGS: ""
|
||||
|
||||
service:
|
||||
main:
|
||||
|
|
Loading…
Reference in New Issue