Commit 535f16a
committed
Round 19 fix: surface transient configmap read failures
_read_perm_configmap_resources now uses run_command_with_code and
raises on non-NotFound failures (network blip, RBAC denied, kubectl
throttled, etc.) instead of silently treating them as 'configmap is
empty'.
The revoke path previously saw an empty current_resources on a
transient failure, computed remaining_resources = [], and then
_write_perm_configmap_resources deleted the configmap and skipped
the create branch — silently wiping every grant. Update has the
same pattern but always writes the new permission file's resources,
so a transient read failure there only dropped old entries.1 parent 70c39c9 commit 535f16a
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
99 | 103 | | |
100 | 104 | | |
101 | 105 | | |
| |||
0 commit comments