fixup! General improvements

This commit is contained in:
2025-01-10 12:01:36 +00:00
parent 2a12169f9c
commit 33ef4564a7
3 changed files with 3 additions and 11 deletions
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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
@@ -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{}).