From 151fa43c99f98d4e42aca7ba3adf3e3249327d1e Mon Sep 17 00:00:00 2001 From: kranurag7 Date: Mon, 24 Jun 2024 12:42:59 +0530 Subject: [PATCH] address review comments Signed-off-by: kranurag7 --- api/v1alpha1/clusterstack_webhook.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) } }