Skip to content

iter8 assert

iter8 assert

Assert if experiment result satisfies specified conditions


Assert if experiment result satisfies specified conditions. If assert conditions are satisfied, exit with code 0. Else, exit with code 1. Assertions are especially useful within CI/CD/GitOps pipelines.

iter8 assert [flags]


# assert that the experiment completed without failures, 
# and SLOs were satisfied
iter8 assert -c completed -c nofailure -c slos

# another way to write the above assertion
iter8 assert -c completed,nofailure,slos

# timeouts are useful for an experiment that may be long running
# and may run in the background
iter8 assert -c completed,nofailures,slos -t 5s


  -c, --condition(s); can specify multiple or separate conditions with commas; strings   completed | nofailure | slos
  -h, --help                                                                             help for assert
  -t, --timeout duration                                                                 timeout duration (e.g., 5s)

Options inherited from parent commands

  -l, --logLevel string   trace, debug, info, warning, error, fatal, panic (default "info")


  • iter8 - Kubernetes release optimizer
Auto generated by spf13/cobra on 2-Mar-2022
Back to top