Repository navigation
Commit f445b11
committed
fix(postgres): use intOrString for postgresql.parameters, regenerate schema
Switch the postgresql.parameters field annotation from
{map[string]string} to {map[string]intOrString}, which generates a
JSON Schema with anyOf: [{type: integer}, {type: string}] plus the
x-kubernetes-int-or-string extension. This lets users supply PostgreSQL
parameters as bare integers (max_connections: 100) or quoted strings
(max_connections: "100") without triggering schema validation errors.
The Helm template already coerces any value to a string via
{{ $value | toString | quote }}, so runtime behavior is unchanged.
Bump CI to cozyvalues-gen v1.3.1, which adds intOrString alias support
(see cozystack/cozyvalues-gen#25). The generated Go type changes from
map[string]string to map[string]intstr.IntOrString; the Application spec
is stored as raw JSON so there is no runtime unmarshaling impact.
Signed-off-by: IvanHunters <[email protected]>1 parent a5040e4 commit f445b11
5 files changed
Lines changed: 17 additions & 11 deletions
File tree
- .github/workflows
- api/apps/v1alpha1/postgresql
- packages/apps/postgres
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
149 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
150 | 155 | | |
151 | 156 | | |
152 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
0 commit comments