testutils

package
v0.0.0-...-813d850 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KubectlTransientErrors = []string{
		"E022[23] .* the server is currently unable to handle the request",
	}
)
View Source
var (
	RetryableTransientErrors = map[string]string{

		".*Error 409.*unable to queue the operation": "Unable to queue operation.",

		".*Error 409.*There were concurrent policy changes.*": "Concurrent policy changes.",

		".*rateLimitExceeded.*": "Rate limit exceeded.",
	}
)

Functions

func ParseKubectlJSONResult

func ParseKubectlJSONResult(t testing.TB, s string) gjson.Result

Filter transient errors from kubectl output

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL