From 33ef4564a7798186e1ce8310b6a87668158fde2f Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Fri, 10 Jan 2025 12:01:36 +0000 Subject: [PATCH] fixup! General improvements --- chart/Chart.yaml | 4 ++-- chart/values.yaml | 2 +- .../raczylo.com/clusterimageexport_controller.go | 8 -------- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/chart/Chart.yaml b/chart/Chart.yaml index 46c7473..7b10c5b 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -10,9 +10,9 @@ description: | type: application -version: 0.2.24 +version: 0.2.26 -appVersion: "0.2.24" +appVersion: "0.2.26" home: https://github.com/lukaszraczylo/kubernetes-images-sync-operator diff --git a/chart/values.yaml b/chart/values.yaml index e66365d..fd47553 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -12,7 +12,7 @@ sa: - ALL image: repository: ghcr.io/lukaszraczylo/kubernetes-images-sync-operator - tag: 0.2.24 + tag: 0.2.26 resources: limits: cpu: 500m diff --git a/internal/controller/raczylo.com/clusterimageexport_controller.go b/internal/controller/raczylo.com/clusterimageexport_controller.go index a825ffd..14b4200 100644 --- a/internal/controller/raczylo.com/clusterimageexport_controller.go +++ b/internal/controller/raczylo.com/clusterimageexport_controller.go @@ -210,14 +210,6 @@ func (r *ClusterImageExportReconciler) checkAllClusterImagesCompleted(ctx contex // SetupWithManager sets up the controller with the Manager. func (r *ClusterImageExportReconciler) SetupWithManager(mgr ctrl.Manager) error { - // Set up field indexing for ClusterImage exportName - if err := mgr.GetFieldIndexer().IndexField(context.Background(), &raczylocomv1.ClusterImage{}, "spec.exportName", func(obj client.Object) []string { - clusterImage := obj.(*raczylocomv1.ClusterImage) - return []string{clusterImage.Spec.ExportName} - }); err != nil { - return fmt.Errorf("failed setting up field indexer: %w", err) - } - return ctrl.NewControllerManagedBy(mgr). For(&raczylocomv1.ClusterImageExport{}). Owns(&raczylocomv1.ClusterImage{}).