We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 463e144 commit 51d5df1Copy full SHA for 51d5df1
controllers/osrmcluster_controller.go
@@ -448,7 +448,14 @@ func (r *OSRMClusterReconciler) getChildResources(ctx context.Context, instance
448
}
449
450
func (r *OSRMClusterReconciler) garbageCollection(ctx context.Context, instance *osrmv1alpha1.OSRMCluster) error {
451
- labelSelector := fmt.Sprintf("%s,%s notin (%d)", metadata.GenerationLabelKey, metadata.GenerationLabelKey, instance.ObjectMeta.Generation)
+ labelSelector := fmt.Sprintf(
452
+ "%s in (%s),%s,%s notin (%d)",
453
+ metadata.ComponentLabelKey,
454
+ metadata.ComponentLabelProfile,
455
+ metadata.GenerationLabelKey,
456
457
+ instance.ObjectMeta.Generation,
458
+ )
459
propagationPolicy := metav1.DeletePropagationBackground
460
461
err := r.Client.DeleteAllOf(ctx, &batchv1.CronJob{}, &client.DeleteAllOfOptions{
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments