k8s: pod logs and metrics reach the hive collector
This commit is contained in:
parent
42bc6e7f2a
commit
4ec7513b1b
1 changed files with 447 additions and 51 deletions
|
|
@ -943,9 +943,8 @@ in
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Root-owned 0400: the collector runs under `DynamicUser`, so there is
|
||||
# no stable uid to hand the file to, and `LoadCredential` reads it as
|
||||
# root before the sandbox exists.
|
||||
# Root-owned 0400: `LoadCredential` reads it as root before the
|
||||
# collector's user exists, so that user needs no access to it.
|
||||
install -d -m 0700 ${lib.escapeShellArg hiveOtelSecret.dir}
|
||||
if secret_differs ${lib.escapeShellArg fetchedSecretPath} "$secret"; then
|
||||
atomic_write_secret 0400 "" ${lib.escapeShellArg fetchedSecretPath} "$secret"
|
||||
|
|
|
|||
Loading…
Reference in a new issue