Documentation
¶
Index ¶
- func CreateRuntimeObject(ctx context.Context, client ctrlruntimeclient.Client, ...) error
- func CreateRuntimeObjectsFromYAMLFiles(params RuntimeYamlParams) error
- func DeleteRuntimeObject(ctx context.Context, client ctrlruntimeclient.Client, ...) error
- func DeleteRuntimeObjectsFromYAMLFiles(params RuntimeYamlParams) error
- func GetCRDFixturePath() string
- func GetIntTestNamespace(levelsUp int) (string, error)
- func RuntimeFromBytes(ctrlclient ctrlruntimeclient.Client, manifest []byte) (runtime.Object, *schema.GroupVersionKind, error)
- func WaitFor(ctx context.Context, interval time.Duration, timeout time.Duration, ...) bool
- type RuntimeYamlParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRuntimeObject ¶
func CreateRuntimeObject(ctx context.Context, client ctrlruntimeclient.Client, obj ctrlruntimeclient.Object, waitForResult bool) error
func CreateRuntimeObjectsFromYAMLFiles ¶
func CreateRuntimeObjectsFromYAMLFiles(params RuntimeYamlParams) error
CreateRuntimeObjectsFromYAMLFiles reads YAML files, decodes them into Kubernetes objects, and creates them using the provided client. It handles multi-document YAML files (separated by "---").
func DeleteRuntimeObject ¶
func DeleteRuntimeObject(ctx context.Context, client ctrlruntimeclient.Client, obj ctrlruntimeclient.Object, waitForResult bool) error
func DeleteRuntimeObjectsFromYAMLFiles ¶
func DeleteRuntimeObjectsFromYAMLFiles(params RuntimeYamlParams) error
func GetCRDFixturePath ¶
func GetCRDFixturePath() string
func GetIntTestNamespace ¶
func RuntimeFromBytes ¶
func RuntimeFromBytes(ctrlclient ctrlruntimeclient.Client, manifest []byte) (runtime.Object, *schema.GroupVersionKind, error)
RuntimeFromBytes returns a list of Kubernetes runtime objects from their yaml templates.
Types ¶
type RuntimeYamlParams ¶
Click to show internal directories.
Click to hide internal directories.