mirror of
https://github.com/lukaszraczylo/kubernetes-images-sync-operator.git
synced 2026-07-10 04:03:01 +00:00
fixup! General improvements
This commit is contained in:
+2
-2
@@ -10,9 +10,9 @@ description: |
|
|||||||
|
|
||||||
type: application
|
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
|
home: https://github.com/lukaszraczylo/kubernetes-images-sync-operator
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ sa:
|
|||||||
- ALL
|
- ALL
|
||||||
image:
|
image:
|
||||||
repository: ghcr.io/lukaszraczylo/kubernetes-images-sync-operator
|
repository: ghcr.io/lukaszraczylo/kubernetes-images-sync-operator
|
||||||
tag: 0.2.24
|
tag: 0.2.26
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 500m
|
cpu: 500m
|
||||||
|
|||||||
@@ -210,14 +210,6 @@ func (r *ClusterImageExportReconciler) checkAllClusterImagesCompleted(ctx contex
|
|||||||
// SetupWithManager sets up the controller with the Manager.
|
// SetupWithManager sets up the controller with the Manager.
|
||||||
|
|
||||||
func (r *ClusterImageExportReconciler) SetupWithManager(mgr ctrl.Manager) error {
|
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).
|
return ctrl.NewControllerManagedBy(mgr).
|
||||||
For(&raczylocomv1.ClusterImageExport{}).
|
For(&raczylocomv1.ClusterImageExport{}).
|
||||||
Owns(&raczylocomv1.ClusterImage{}).
|
Owns(&raczylocomv1.ClusterImage{}).
|
||||||
|
|||||||
Reference in New Issue
Block a user