Documentation ¶
Overview ¶
testhelpers contains helpers for tests
Index ¶
- Variables
- func DiscoveryClient() (discovery.DiscoveryInterface, error)
- func DynamicClient() (dynamic.Interface, error)
- func EnsureNamespace(ctx context.Context, client kubernetes.Interface, namespace string) error
- func Eventually(ctx context.Context, condition func(ctx context.Context) error, ...) error
- func GVK(group, version, kind string) schema.GroupVersionKind
- func KubeClient() (kubernetes.Interface, error)
- func RestConfig() (*rest.Config, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TargetGVK = GVK("fabric.symphony", "v1", "Target") InstanceGVK = GVK("solution.symphony", "v1", "Instance") SolutionGVK = GVK("solution.symphony", "v1", "Solution") ConfigMapGVK = GVK("", "v1", "ConfigMap") PodGVK = GVK("", "v1", "Pod") NamespaceGVK = GVK("", "v1", "Namespace") ClusterRoleGVK = GVK("rbac.authorization.k8s.io", "v1", "ClusterRole") )
Functions ¶
func DiscoveryClient ¶
func DiscoveryClient() (discovery.DiscoveryInterface, error)
DiscoveryClient returns the discovery client from the default kube config
func DynamicClient ¶
DynamicClient returns the dynamic client from the default kube config
func EnsureNamespace ¶
EnsureNamespace ensures that the namespace exists. If it does not exist, it creates it.
func Eventually ¶
func GVK ¶
func GVK(group, version, kind string) schema.GroupVersionKind
GVK creates a GroupVersionKind
func KubeClient ¶
func KubeClient() (kubernetes.Interface, error)
KubeClient returns the kubectl client from the default kube config
func RestConfig ¶
RestConfig returns the default kube config
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.