diff --git a/api/v1alpha1/clusterstack_webhook.go b/api/v1alpha1/clusterstack_webhook.go index d7b624604..bb9ecbb37 100644 --- a/api/v1alpha1/clusterstack_webhook.go +++ b/api/v1alpha1/clusterstack_webhook.go @@ -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) } }