Commit a9c2480
authored
[DPE-10417] feat: migrate shared constants to single kernel (#147)
* feat: migrate shared constants to single kernel
Consolidate the cross-cutting constants the charms still define locally
(database name/port, metrics ports, TLS file names, override maps,
mapping labels, tracing and pgBackRest paths) into the library so both
substrates read one source instead of drifting copies. The
secrets/scopes/password-key constants are intentionally omitted — they
were already migrated by the start/install refactor.
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
* feat: include backup user in SYSTEM_USERS
Both the VM and K8s charms must treat the backup user as a managed
system user (password rotation and internal access-group grants). The
VM charm previously compensated by appending BACKUP_USER at individual
call sites while K8s already listed it locally. Promoting it into the
shared SYSTEM_USERS makes the library the single source of truth and
lets both charms drop their divergent local definitions.
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
* feat: add ALL_CLIENT_RELATIONS shared constant
The set of client-facing relations was defined locally in the VM charm.
Hoisting it into the shared library gives charms a single definition to
consume and keeps the client-relation set consistent across substrates
as it grows.
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
* feat: migrate operational charm constants to the library
Backup ID formats, async-replication relation names, pgBackRest log/error
settings, the tracing protocol and the watcher relation constants were
defined locally in the charms. Hoisting them into the shared library
removes per-charm duplication (the replication relation names were defined
in both charms) and lets the charms consume a single definition.
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
---------
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>1 parent 9ca39cc commit a9c2480
2 files changed
Lines changed: 96 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 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 | + | |
0 commit comments