1
0
mirror of synced 2026-02-07 03:05:56 +00:00
Files
flux2/cmd/flux
Max Jonas Werner cbdd71e44e Make flux logs more lenient
UX changes:

- Only print an error when a pod doesn't have a matching container
  instead of exiting early.
- Return a non-zero status code when no pod is found at all.

Details:

In certain situations there might be 3rd-party pods running in the
Flux namespace that cause the command to fail streaming logs, e.g.
when they have multiple containers but none of them is called
`manager` (which all Flux-maintained pods do). An example of such a
situation is when Flux is installed with the 3rd-party Flux extension
on AKS.

The `logs` command is now more forgiving and merely logs an error in
these situations instead of completely bailing out. It still returns a
non-zero exit code.

For the parallel log streaming with `-f` the code is now a little more
complex so that errors are now written to stderr in parallel with all
other logs written to stdout. That's what `asyncCopy` is for.

refs #3944

Signed-off-by: Max Jonas Werner <mail@makk.es>
2023-06-05 10:07:38 +02:00
..
2023-05-01 18:05:10 +02:00
2023-05-09 18:34:03 +03:00
2023-04-11 17:00:57 +01:00
2023-04-11 17:00:57 +01:00
2022-02-21 10:40:35 +01:00
2023-02-17 00:32:48 +05:30
2023-06-05 10:07:38 +02:00
2023-06-05 10:07:38 +02:00
2023-06-05 10:07:38 +02:00
2023-06-05 10:07:38 +02:00
2022-01-10 16:30:38 +01:00
2022-02-21 10:40:35 +01:00
2023-05-29 09:59:47 +01:00
2022-08-10 12:02:30 +03:00
2022-08-10 12:02:30 +03:00
2022-03-23 11:33:35 +01:00
2022-01-10 16:30:38 +01:00
2022-01-10 16:30:38 +01:00