1
0
mirror of synced 2026-02-07 03:05:56 +00:00
Files
flux2/cmd/flux
Max Jonas Werner 173ee5fcdc Don't log errors with missing CRDs for "get * all" commands
Whenever an API type is not available then both, `flux get all` and
`flux get image all` will just skip over that type instead of logging
an error message.

Before:

```
$ flux get all
✗ failed to get API group resources: unable to retrieve the complete
list of server APIs: source.toolkit.fluxcd.io/v1beta2: the server
could not find the requested resource
[...]
✗ failed to get API group resources: unable to retrieve the complete
list of server APIs: image.toolkit.fluxcd.io/v1beta2: the server could
not find the requested resource
✗ failed to get API group resources: unable to retrieve the complete
list of server APIs: image.toolkit.fluxcd.io/v1beta2: the server could
not find the requested resource
[...]
$ echo $?
0
```

After:

```
$ flux get all
$ echo $?
0
```
closes #3973

Signed-off-by: Max Jonas Werner <mail@makk.es>
2023-06-22 18:03: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
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