Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: kranurag7 <[email protected]>
  • Loading branch information
kranurag7 committed Jun 24, 2024
1 parent a8780b7 commit f9f3c38
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/v1alpha1/clusterstack_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,10 @@ func (r *ClusterStackWebhook) getClustersUsingClusterStack(ctx context.Context,
if err != nil {
continue
}
if clusterStack.Spec.Provider == cs.Provider && clusterStack.Spec.Name == cs.Name && clusterStack.Spec.KubernetesVersion == cs.KubernetesVersion.StringWithDot() {
if clusterStack.Spec.Provider == cs.Provider &&
clusterStack.Spec.Channel == cs.Version.Channel &&
clusterStack.Spec.Name == cs.Name &&
clusterStack.Spec.KubernetesVersion == cs.KubernetesVersion.StringWithDot() {
clusters = append(clusters, clusterList.Items[i].Name)
}
}
Expand Down

0 comments on commit f9f3c38

Please sign in to comment.