From 9a7cec569d757e30b86f25923c4debaf5b52f607 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Sat, 6 Apr 2024 16:14:46 +0200 Subject: [PATCH] feat(SCALE-GUI): add postgres-version and password fields explicitly (#20325) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** This adds explicit postgres-version and password fields for cnpg, to move away from lookups **โš™๏ธ Type of change** - [x] โš™๏ธ 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?** **๐Ÿ“ƒ Notes:** **โœ”๏ธ 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 - [ ] I made sure the title starts with `feat(chart-name):`, `fix(chart-name):` or `chore(chart-name):` **โž• App addition** If this PR is an app addition please make sure you have done the following. - [ ] ๐Ÿ–ผ๏ธ 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._ Signed-off-by: Kjeld Schouten --- templates/questions/postgresql/postgresql.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/templates/questions/postgresql/postgresql.yaml b/templates/questions/postgresql/postgresql.yaml index 66578f2eed23..30ac997d27f6 100644 --- a/templates/questions/postgresql/postgresql.yaml +++ b/templates/questions/postgresql/postgresql.yaml @@ -30,6 +30,20 @@ description: replica - value: recovery description: recovery + - variable: pgVersion + label: Postgres Version + description: "Set the Postgresql version used" + schema: + type: int + default: 16 + required: true + - variable: password + label: Password + description: "Set the password for the database-user" + schema: + type: string + default: "PLACEHOLDERPASSWORD" + required: true - variable: cluster label: "Cluster Settings" schema: