Skip to content

Commit 726ce11

Browse files
fead: refactor label ignore to exclude (#31)
1 parent 42d2bfc commit 726ce11

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

apps/v1alpha1/well_known_labels.go

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ var (
6565

6666
// CollaSet labels
6767
const (
68-
// PodInstanceIDLabelKey is used to attach Pod instance ID on Pod
68+
// PodInstanceIDLabelKey is used to attach pod instance ID on pod
6969
PodInstanceIDLabelKey = "collaset.kusionstack.io/instance-id"
7070
// CollaSetUpdateIndicateLabelKey is used to indicate a pod should be updated by label
7171
CollaSetUpdateIndicateLabelKey = "collaset.kusionstack.io/update-included"
@@ -76,14 +76,12 @@ const (
7676
PodReplaceIndicationLabelKey = "collaset.kusionstack.io/to-replace"
7777
// PodReplaceByReplaceUpdateLabelKey indicates a pod is replaced by update by collaset
7878
PodReplaceByReplaceUpdateLabelKey = "collaset.kusionstack.io/replaced-by-replace-update"
79-
// PodIgnoringIndicationLabelKey indicates a pod to be ignored by collaset. For example,
80-
// a Pod is stuck to delete when it is on a failed node or its network communication to
81-
// the outside world is completely cut, then the Pod can be ignored by CollaSet.
82-
PodIgnoringIndicationLabelKey = "collaset.kusionstack.io/to-ignore"
79+
// PodExcludeIndicationLabelKey indicates a pod will be excluded by collaset
80+
PodExcludeIndicationLabelKey = "collaset.kusionstack.io/to-exclude"
8381

84-
// PodReplacePairOriginName is used to indicate replace origin Pod name on the new created Pod
82+
// PodReplacePairOriginName is used to indicate replace origin pod name on the new created pod
8583
PodReplacePairOriginName = "collaset.kusionstack.io/replace-pair-origin-name"
86-
// PodReplacePairNewId is used to indicate the new created Pod instance on the replace origin Pod
84+
// PodReplacePairNewId is used to indicate the new created pod instance on replace origin pod
8785
PodReplacePairNewId = "collaset.kusionstack.io/replace-pair-new-id"
8886

8987
// PvcTemplateHashLabelKey is used to attach hash of pvc template to pvc resource

0 commit comments

Comments
 (0)