Skip to content

Instantly share code, notes, and snippets.

@kevinawoo
Created February 14, 2020 20:14
Show Gist options
  • Save kevinawoo/deec5d8257fb3b0fa816a1de9405df0f to your computer and use it in GitHub Desktop.
Save kevinawoo/deec5d8257fb3b0fa816a1de9405df0f to your computer and use it in GitHub Desktop.
stable-annotations.yaml
# At a minimum, all we care about is when it's stable/succesful so we know if a stage should continue
# if one of stable.* is TRUE, then it's stable!
stability.spinnaker.io/stable/handler: Field
stability.spinnaker.io/stable/field: ".status.status=successful"
stability.spinnaker.io/stable.1/handler: Field
stability.spinnaker.io/stable.1/field: ".status.status=ok"
stability.spinnaker.io/stable.2/handler: Field
stability.spinnaker.io/stable.2/field: ".status.status=yay"
# another way of handling it maybe to just do comma separated conditions (same for failed status)
stability.spinnaker.io/stable/handler: Field
stability.spinnaker.io/stable/field: ".status.status=successful,.status.status=ok,.status.status=yay"
# Spinnaker stages will timeout eventually, but we can use these fields for quick failures
# if one of failed.* is TRUE, then it's failed!
stability.spinnaker.io/failed/handler: Field
stability.spinnaker.io/failed/field: ".status.status=no-good"
stability.spinnaker.io/failed.1/handler: Field
stability.spinnaker.io/failed.1/field: ".status.status=badbadbad"
stability.spinnaker.io/failed.2/handler: Field
stability.spinnaker.io/failed.2/field: ".status.status=everythings-on-fire"
# really only used for displaying the status in the UI for a CRD.
# stages will treat the CRD as unknown and wait for the timeout
stability.spinnaker.io/display/handler: Field
stability.spinnaker.io/display/field: ".status.status"
# optional, maybe? Kind of pointless for stages, but if we want to be verbose
stability.spinnaker.io/unknown/handler: Field
stability.spinnaker.io/unknown/field: ".status.status"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment