From 81fa8a4ca843c951e1a22dcdb6dba9ec631b0f85 Mon Sep 17 00:00:00 2001 From: wu8685 Date: Mon, 28 Oct 2024 22:53:24 +0800 Subject: [PATCH] feat(labels): add labels to represent PodOpsLifecycle phase --- apps/v1alpha1/well_known_labels.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/v1alpha1/well_known_labels.go b/apps/v1alpha1/well_known_labels.go index b822085..218ae9f 100644 --- a/apps/v1alpha1/well_known_labels.go +++ b/apps/v1alpha1/well_known_labels.go @@ -52,6 +52,13 @@ const ( // PodServiceAvailableLabel indicates a pod is available to serve PodServiceAvailableLabel = "podopslifecycle.kusionstack.io/service-available" + PodPreCheckLabel = "podopslifecycle.kusionstack.io/pre-checking" + PodPreparingLabel = "podopslifecycle.kusionstack.io/preparing" + PodOperatingLabel = "podopslifecycle.kusionstack.io/operating" + PodPostCheckLabel = "podopslifecycle.kusionstack.io/post-checking" + PodCompletingLabel = "podopslifecycle.kusionstack.io/completing" + PodCreatingLabel = "podopslifecycle.kusionstack.io/creating" + // PodStayOfflineLabel indicates a pod is not ready and available to serve PodStayOfflineLabel = "podopslifecycle.kusionstack.io/stay-offline" PodPreparingDeleteLabel = "podopslifecycle.kusionstack.io/preparing-to-delete"