Simon Law
8327e27bfa
util/def: add functions that provide defaults for envvars
...
This patch adds def.Getenv and def.GetenvBool to provide defaults for
environment variables that are unset or blank or invalid. This
replaces the implementations of defaultEnv and defaultBool in
cmd/containerboot and cmd/k8s-operator.
However, the implementation of defaultBool in cmd/k8s-operator was
actually buggy and wouldn’t fall back to the default if the
environment contained a non-boolean value. This patch fixes this.
Updates #20018
Signed-off-by: Simon Law <[email protected] >
2026-06-16 16:56:39 -07:00
..
2026-01-23 15:49:45 -08:00
2026-03-24 10:52:20 -04:00
2026-01-23 15:49:45 -08:00
2026-05-14 15:55:05 -07:00
2026-04-13 18:52:57 -07:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-04-05 15:52:51 -07:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-05-04 14:03:28 -07:00
2026-06-16 16:56:39 -07:00
2026-01-23 15:49:45 -08:00
2026-03-06 13:32:03 -08:00
2026-06-02 11:57:12 -07:00
2026-01-23 15:49:45 -08:00
2026-03-06 13:32:03 -08:00
2026-01-23 15:49:45 -08:00
2026-03-06 13:32:03 -08:00
2026-03-06 13:32:03 -08:00
2026-04-15 15:44:19 -07:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-06-12 10:50:35 -07:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-03-23 12:54:38 +00:00
2026-01-23 15:49:45 -08:00
2026-03-09 08:39:07 +00:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-03-06 13:32:03 -08:00
2026-03-06 13:32:03 -08:00
2026-03-06 13:32:03 -08:00
2026-01-23 15:49:45 -08:00
2026-04-05 15:52:51 -07:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-01-23 15:49:45 -08:00
2026-03-06 13:32:03 -08:00
2026-05-05 14:02:35 -07:00
2026-03-06 13:32:03 -08:00