utils

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 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 IsNamespaceReady added in v0.7.0

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

IsNamespaceReady checks for all Daemonsets, Deployment and Services in a given namespace to see if they are ready. It reports on readiness but also will provide a list of runtime objects that are being waited on still if the namespace is not ready yet.

Keep in mind that this specifically checks on readiness, not availability (uptime) for speed reasons during tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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