Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fead: refactor label ignore to exclude #31

Merged
merged 1 commit into from
Oct 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions apps/v1alpha1/well_known_labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ var (

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

// PodReplacePairOriginName is used to indicate replace origin Pod name on the new created Pod
// PodReplacePairOriginName is used to indicate replace origin pod name on the new created pod
PodReplacePairOriginName = "collaset.kusionstack.io/replace-pair-origin-name"
// PodReplacePairNewId is used to indicate the new created Pod instance on the replace origin Pod
// PodReplacePairNewId is used to indicate the new created pod instance on replace origin pod
PodReplacePairNewId = "collaset.kusionstack.io/replace-pair-new-id"

// PvcTemplateHashLabelKey is used to attach hash of pvc template to pvc resource
Expand Down
Loading