Documentation ¶
Index ¶
- Constants
- func CreateBundle(ctx context.Context, k8sClient client.Client, name, namespace string, ...) (*v1alpha1.Bundle, error)
- func CreateCluster(ctx context.Context, k8sClient client.Client, name, controllerNs string, ...) (*v1alpha1.Cluster, error)
- func FromEnvTestConfig(cfg *rest.Config) []byte
- func NewClient(cfg *rest.Config) (client.Client, error)
- func NewEnvTest() *envtest.Environment
- func NewManager(cfg *rest.Config) (ctrl.Manager, error)
- func NewNamespaceName() (string, error)
- func WriteKubeConfig(cfg *rest.Config, path string) error
Constants ¶
View Source
const ( Timeout = 30 * time.Second PollingInterval = 3 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func CreateBundle ¶ added in v0.10.0
func CreateCluster ¶ added in v0.10.0
func FromEnvTestConfig ¶ added in v0.10.0
FromEnvTestConfig returns a new Kubeconfig in byte form when running in envtest.
func NewEnvTest ¶ added in v0.10.0
func NewEnvTest() *envtest.Environment
NewEnvTest returns a new envtest with the Fleet CRDs loaded.
func NewManager ¶ added in v0.10.0
NewManager returns a new controller-runtime manager suitable for testing.
func NewNamespaceName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.