testutil

package
v2.6.17 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakeDynamicClient

func NewFakeDynamicClient(gvks ...schema.GroupVersionKind) *fake.FakeDynamicClient

NewFakeDynamicClient creates a fake dynamic client with additional custom types. If no GVKs are provided, it defaults to Argo Rollouts for backward compatibility. To add additional types, pass them as arguments:

NewFakeDynamicClient(
	schema.GroupVersionKind{Group: "argoproj.io", Version: "v1alpha1", Kind: "Rollout"},
	schema.GroupVersionKind{Group: "example.com", Version: "v1", Kind: "CustomResource"},
)

Types

This section is empty.

Jump to

Keyboard shortcuts

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