Skip to content

Commit

Permalink
Merge pull request #1416 from FabianKramm/main
Browse files Browse the repository at this point in the history
fix: show pro vclusters if not logged in
  • Loading branch information
FabianKramm authored Dec 15, 2023
2 parents 015214c + 62aab68 commit 28fd86a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/vclusterctl/cmd/find/find.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ func findInContext(ctx context.Context, context, name, namespace string, timeout
}

// skip pro clusters
_, err = loftClient.StorageV1().VirtualClusters(p.Namespace).Get(ctx, p.Name, metav1.GetOptions{})
if err == nil {
virtualCluster, err := loftClient.StorageV1().VirtualClusters(p.Namespace).Get(ctx, p.Name, metav1.GetOptions{})
if err == nil && (virtualCluster.Annotations == nil || virtualCluster.Annotations["loft.sh/skip-helm-deploy"] != "true") {
continue
}

Expand All @@ -328,8 +328,8 @@ func findInContext(ctx context.Context, context, name, namespace string, timeout
}

// skip pro clusters
_, err = loftClient.StorageV1().VirtualClusters(p.Namespace).Get(ctx, p.Name, metav1.GetOptions{})
if err == nil {
virtualCluster, err := loftClient.StorageV1().VirtualClusters(p.Namespace).Get(ctx, p.Name, metav1.GetOptions{})
if err == nil && (virtualCluster.Annotations == nil || virtualCluster.Annotations["loft.sh/skip-helm-deploy"] != "true") {
continue
}

Expand Down

0 comments on commit 28fd86a

Please sign in to comment.