INNER CODE UNIT · Go
pollFreq
vmware-tanzu/sonobuoy · pkg/client/delete.go:39
pollFreq = 5 * time.Second
)
// ConditionFuncWithProgress is like wait.ConditionFunc but the extra string allows us
// to capture status information.
type ConditionFuncWithProgress func() (string, bool, error)
// Delete removes all the resources that Sonobuoy had created including
// its own namespace, cluster roles/bindings, and optionally e2e scoped
// namespaces.
func (c *SonobuoyClient) Delete(cfg *DeleteConfig) error {
if cfg == nil {
return errors.New("nil DeleteConfig provided")
}
if err := cfg.Validate(); err != nil {
return errors.Wrap(err, "config validation failed")
}