mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-06 08:15:48 -04:00
cli: don't backup CRs that cannot be found (#2133)
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
a3184af7a2
commit
28e29ffe61
4 changed files with 39 additions and 2 deletions
|
@ -99,7 +99,7 @@ func (k *Kubectl) GetCRs(ctx context.Context, gvr schema.GroupVersionResource) (
|
|||
crdClient := k.dynamicClient.Resource(gvr)
|
||||
unstructuredList, err := crdClient.List(ctx, metav1.ListOptions{})
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("listing CRDs for gvr %+v: %w", crdClient, err)
|
||||
return nil, fmt.Errorf("listing CRs for GroupVersionResource %+v: %w", gvr, err)
|
||||
}
|
||||
|
||||
return unstructuredList.Items, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue