-
Notifications
You must be signed in to change notification settings - Fork 326
Fix suspended condition persistence #873
Copy link
Copy link
Open
Labels
priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Metadata
Metadata
Assignees
Labels
priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Backlog
In Kubernetes, conditions are designed to be persistent once initialized, transitioning its status between True, False, and Unknown (https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Condition). This allows automation via querying condition states, e.g. kubectl wait --for=condition=Suspended=False.
Conditions should also include a lastTransitionTime timestamp. Transitioning a condition to False preserves the exact timestamp of when the Sandbox successfully resumed. Removing the condition erases this history.