Skip to content

Commit

Permalink
fix provider namespace secret not included in clusterclt move
Browse files Browse the repository at this point in the history
  • Loading branch information
archerwu9425 committed Nov 9, 2023
1 parent 3d3dcc6 commit 328b4d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/clusterctl/client/cluster/objectgraph.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ func (o *objectGraph) Discovery(ctx context.Context, namespace string) error {
}

// if we are discovering Secrets, also secrets from the providers namespace should be included.
if discoveryType.typeMeta.GetObjectKind().GroupVersionKind().GroupKind() == corev1.SchemeGroupVersion.WithKind("SecretList").GroupKind() {
if discoveryType.typeMeta.GetObjectKind().GroupVersionKind().GroupKind() == corev1.SchemeGroupVersion.WithKind("Secret").GroupKind() {
providers, err := o.providerInventory.List(ctx)
if err != nil {
return err
Expand Down

0 comments on commit 328b4d8

Please sign in to comment.