From 26e6d75a03056bb20258121e02cf2ee799c1034f Mon Sep 17 00:00:00 2001 From: ColdsteelRail <574252631@qq.com> Date: Sat, 24 Aug 2024 22:32:33 +0800 Subject: [PATCH] add orphaned anno label --- apps/v1alpha1/well_known_annotations.go | 2 ++ apps/v1alpha1/well_known_labels.go | 3 +++ 2 files changed, 5 insertions(+) diff --git a/apps/v1alpha1/well_known_annotations.go b/apps/v1alpha1/well_known_annotations.go index 21d4430..cf2974d 100644 --- a/apps/v1alpha1/well_known_annotations.go +++ b/apps/v1alpha1/well_known_annotations.go @@ -20,6 +20,8 @@ const ( PodAvailableConditionsAnnotation = "pod.kusionstack.io/available-conditions" // indicate the available conditions of a pod LastPodStatusAnnotationKey = "collaset.kusionstack.io/last-pod-status" + + AnnotationPodOrphanedBy = "collaset.kusionstack.io/orphaned-by" ) // PodTransitionRule Annotation diff --git a/apps/v1alpha1/well_known_labels.go b/apps/v1alpha1/well_known_labels.go index b822085..fdf6c44 100644 --- a/apps/v1alpha1/well_known_labels.go +++ b/apps/v1alpha1/well_known_labels.go @@ -86,6 +86,9 @@ const ( // PvcTemplateHashLabelKey is used to attach hash of pvc template to pvc resource PvcTemplateHashLabelKey = "collaset.kusionstack.io/pvc-template-hash" + + // PodOrphanedIndicateLabelKey indicates pod or pvc is orphaned + PodOrphanedIndicateLabelKey = "collaset.kusionstack.io/orphaned" ) // PodDecoration labels