File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
cmd/clusterctl/client/cluster Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -432,7 +432,7 @@ func (o *objectGraph) Discovery(namespace string) error {
432
432
}
433
433
434
434
// if we are discovering Secrets, also secrets from the providers namespace should be included.
435
- if discoveryType .typeMeta .GetObjectKind ().GroupVersionKind ().GroupKind () == corev1 .SchemeGroupVersion .WithKind ("SecretList " ).GroupKind () {
435
+ if discoveryType .typeMeta .GetObjectKind ().GroupVersionKind ().GroupKind () == corev1 .SchemeGroupVersion .WithKind ("Secret " ).GroupKind () {
436
436
providers , err := o .providerInventory .List ()
437
437
if err != nil {
438
438
return err
Original file line number Diff line number Diff line change @@ -1695,15 +1695,7 @@ func getFakeProxyWithCRDs() *test.FakeProxy {
1695
1695
}
1696
1696
1697
1697
func getFakeDiscoveryTypes (graph * objectGraph ) error {
1698
- if err := graph .getDiscoveryTypes (); err != nil {
1699
- return err
1700
- }
1701
-
1702
- // Given that the Fake client behaves in a different way than real client, for this test we are required to add the List suffix to all the types.
1703
- for _ , discoveryType := range graph .types {
1704
- discoveryType .typeMeta .Kind = fmt .Sprintf ("%sList" , discoveryType .typeMeta .Kind )
1705
- }
1706
- return nil
1698
+ return graph .getDiscoveryTypes ()
1707
1699
}
1708
1700
1709
1701
func TestObjectGraph_Discovery (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments