From 17b6ea51afb439673bd6c968d5a8f7d4544d60fa Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Thu, 5 Dec 2024 07:23:58 +0100 Subject: [PATCH 1/2] fix(doc): Bad variable name in secrets --- generator/labels/katenaryLabelsDoc.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/labels/katenaryLabelsDoc.yaml b/generator/labels/katenaryLabelsDoc.yaml index 061ff58..9aa7371 100644 --- a/generator/labels/katenaryLabelsDoc.yaml +++ b/generator/labels/katenaryLabelsDoc.yaml @@ -338,9 +338,9 @@ MARIADB_USER: myuser MARIADB_PASSWORD: mypassword labels: - # it can be a secret + # we can declare secrets {{ .KatenaryPrefix }}/secrets: |- - - DB_PASSWORD + - MARIADB_PASSWORD php: image: php:7.4-fpm environment: -- 2.49.1 From d27ed76cf48133e281e85426fd390f29ab39244d Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Thu, 5 Dec 2024 07:24:23 +0100 Subject: [PATCH 2/2] doc(readme): better comments --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 43e0a4c..a40d438 100644 --- a/README.md +++ b/README.md @@ -172,12 +172,13 @@ services: katenary.v3/ingress: |- hostname: myapp.example.com port: 80 + # make adaptations, DB_HOST environment is actually the service name katenary.v3/map-env: |- - # make adaptations, DB_HOST environment is actually the service name DB_HOST: '{{ .Release.Name }}-database' + # get the values from the "database" service + # this will use the database secrets and environment, + # see the "database" service to see the values katenary.v3/values-from: |- - # get the values from the "database" service - # this will use the databas secret, see below DB_USER: databse.MARIADB_USER DB_PASSWORD: database.MARIADB_PASSWORD -- 2.49.1