utils

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AdminNamespace is the namespace used for administrative acts
	// by KTF for purposes such as deploying addons.
	AdminNamespace = "ktf-system"

	// AdminBinding is the name of the ClusterRoleBinding created to
	// bind the AdminNamespace's default service account to the
	// "cluster-admin" role.
	AdminBinding = "ktf-admin"
)

Variables

This section is empty.

Functions

func ClusterInitHooks added in v0.7.0

func ClusterInitHooks(ctx context.Context, cluster clusters.Cluster) error

ClusterInitHooks are generic hooks to provision resources on a test cluster regardless of which cluster type (e.g. kind, gke). This includes the creation of some special administrative namespaces and service accounts.

func IsNamespaceAvailable added in v0.8.0

func IsNamespaceAvailable(ctx context.Context, cluster clusters.Cluster, namespace string) (waitForObjects []runtime.Object, available bool, err error)

IsNamespaceAvailable checks for all Daemonsets, Deployment and Services in a given namespace to see if they are available (ready for minimum number of seconds).

If the namespace is not yet available a list of the components being waited on will be provided.

Types

This section is empty.

Jump to

Keyboard shortcuts

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