Skip to content

Instantly share code, notes, and snippets.

@msau42
Created October 13, 2023 17:44
Show Gist options
  • Save msau42/66cbdd43b9c2b5a5fb245b8de0f8338d to your computer and use it in GitHub Desktop.
Save msau42/66cbdd43b9c2b5a5fb245b8de0f8338d to your computer and use it in GitHub Desktop.
VAC status brainstorm
# Before Dynamic provisioning
spec:
VAC: silver
status:
# After Dynamic provisioning
spec:
VAC: silver
status:
volumeAttributeClassStatus:
currentClass: silver
targetClass: silver
modifyStatus:
status: Succeeded
lastUpdateTime: ...
message: "Provisioning succeeded"
# User updates
spec:
VAC: gold
status:
volumeAttributeClassStatus:
currentClass: silver
targetClass: silver
modifyStatus:
status: Succeeded
lastUpdateTime: ...
message: "Provisioning succeeded"
# Controller starts
spec:
VAC: gold
status:
volumeAttributeClassStatus:
currentClass: silver
targetClass: gold
modifyStatus:
status: InProgress
lastUpdateTime: ...
message: "Modify to gold started"
# Fails with final
spec:
VAC: gold
status:
volumeAttributeClassStatus:
currentClass: silver
targetClass: gold
modifyStatus:
status: Failed
lastUpdateTime: ...
message: "Error: foo"
# Succeeds
spec:
VAC: gold
status:
volumeAttributeClassStatus:
currentClass: gold
targetClass: gold
modifyStatus:
status: Succeeded
lastUpdateTime: ...
message: "Modify to gold succeeded"
# User changes in the middle of in progress
spec:
VAC: platinum
status:
volumeAttributeClassStatus:
currentClass: silver
targetClass: gold
modifyStatus:
status: InProgress
lastUpdateTime: ...
message: "Modify to gold started"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment