From bbdff85e9d8ff7213cb74cccf9853e070880d43f Mon Sep 17 00:00:00 2001 From: Sebastian Florek Date: Fri, 6 Oct 2023 11:49:09 +0200 Subject: [PATCH] fix cluster labels --- cloud/services/container/clusters/reconcile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/services/container/clusters/reconcile.go b/cloud/services/container/clusters/reconcile.go index 56ce183f8..203197213 100644 --- a/cloud/services/container/clusters/reconcile.go +++ b/cloud/services/container/clusters/reconcile.go @@ -265,7 +265,7 @@ func (s *Service) createCluster(ctx context.Context, log *logr.Logger) error { WorkloadIdentityConfig: s.createWorkloadIdentityConfig(), NetworkConfig: s.createNetworkConfig(), AddonsConfig: s.createAddonsConfig(), - ResourceLabels: s.scope.GCPManagedCluster.Labels, + ResourceLabels: s.scope.GCPManagedCluster.Spec.AdditionalLabels, MasterAuthorizedNetworksConfig: convertToSdkMasterAuthorizedNetworksConfig(s.scope.GCPManagedControlPlane.Spec.MasterAuthorizedNetworksConfig), }