Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rollouts: clusterstore enhancements to support local kind clusters #3875

Merged
merged 2 commits into from
Mar 14, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
rollouts: removed unnecessary comments
  • Loading branch information
droot committed Mar 13, 2023
commit 3020d33cbf5ce8f1d553a643a0dc46c174e37ead
2 changes: 0 additions & 2 deletions rollouts/pkg/clusterstore/clusterstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,8 @@ func (cs *ClusterStore) GetRESTConfig(ctx context.Context, clusterRef *gitopsv1a
// expand it to use the other properties (seems like an overkill for now).
switch clusterKind := clusterRef.Kind; clusterKind {
case GKEFleetMembershipGVK.Kind:
// strings.Contains(name, "memberships") || strings.Contains(name, "gkeMemberships"):
return cs.gcpFleetClusterStore.GetRESTConfig(ctx, clusterRef.GetName())
case KindClusterGVK.Kind:
//strings.HasPrefix(name, "kind-"):
return cs.kindClusterStore.GetRESTConfig(ctx, clusterRef.GetName())
case KCCClusterGVK.Kind:
return cs.containerClusterStore.GetRESTConfig(ctx, clusterRef.GetName())
Expand Down