Commit da628df
authored
feat: add K8SCharmConfig for the K8s-only locales (#150)
* feat: add K8s locale superset to single kernel
The K8s rock ships C.utf8 and POSIX (from the base image's libc-bin)
that the VM snap's locales-all omits, so #137's single SNAP_LOCALES
rejects those otherwise-valid values for the K8s response-lc-* config.
Add K8S_LOCALES extending SNAP_LOCALES with the two rock-only entries so
the K8s config model can accept them while VM keeps the snap-only set.
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
* feat: add K8SCharmConfig for the K8s-only locales
#137's CharmConfig validates response-lc-* against SNAP_LOCALES, the VM
snap's locale set. The K8s rock additionally ships C.utf8 and POSIX, so
the K8s charm must accept them. Add K8SCharmConfig, a CharmConfig
subclass that widens the three locale fields to K8S_LOCALES, so each
substrate validates against the locales actually available to it.
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
* build: bump library version to 16.3.0
The aux migration adds new public API to the library (K8SCharmConfig,
K8S_LOCALES, the shared constants and the architecture guard), so raise
the minor version for the next release. Aligns with the 16.3.0 target of
the cluster work in #145.
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
* build: make psycopg2 an optional extra
psycopg2 is only needed by the library's PostgreSQL client code, but as
a top-level dependency it forced every consumer — including the charms'
integration tests, which import only the pure-Python locale constants —
to build it from source. Move it into the `postgresql` extra so a bare
install skips it; consumers using the DB code request `[postgresql]`.
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
---------
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>1 parent a9c2480 commit da628df
4 files changed
Lines changed: 63 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments