api

package
v0.0.0-...-5207aa4 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: Apache-2.0 Imports: 16 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNamespace

func CreateNamespace(client *kubernetes.Clientset, name string) *v1.Namespace

func DeleteNamespace

func DeleteNamespace(name string)

func EnsureNamespace

func EnsureNamespace(name string) *v1.Namespace

func Exec

func Exec(command string) (string, error)

func GetDefaultDynamicClient

func GetDefaultDynamicClient() dynamic.Interface

func GetDefaultKubeConfigPath

func GetDefaultKubeConfigPath() string

func GetDefaultKubernetesClient

func GetDefaultKubernetesClient() *kubernetes.Clientset

GetDefaultKubernetesClient returns a kubernetes client

func GetNodeAddress

func GetNodeAddress() string

func GetObject

func GetObject(namespace string, name string, gvr schema.GroupVersionResource, out interface{}) error

func KubeApply

func KubeApply(yaml string) (string, error)

func KubeApplyFromTemplate

func KubeApplyFromTemplate(yaml string, params map[string]string) (string, error)

func KubeDelete

func KubeDelete(yaml string) (string, error)

func KubeDeleteFromTemplate

func KubeDeleteFromTemplate(yaml string, params map[string]string) (string, error)

func KubeUpdateStatus

func KubeUpdateStatus(name, namespace, statusYaml string, gvr schema.GroupVersionResource) error

func KubeWaitForCondition

func KubeWaitForCondition(namespace string, groupResourceName string, condition string, timeout string) (string, error)

func KubeWaitForDeleted

func KubeWaitForDeleted(namespace string, groupResourceName string, timeout string) (string, error)

func KubeWaitForReady

func KubeWaitForReady(namespace string, groupResourceName string, timeout string) (string, error)

func MustKubeApply

func MustKubeApply(yaml string)

func MustKubeApplyFromTemplate

func MustKubeApplyFromTemplate(yaml string, params map[string]string)

func MustKubeDelete

func MustKubeDelete(yaml string)

func MustKubeDeleteFromTemplate

func MustKubeDeleteFromTemplate(yaml string, params map[string]string)

func MustKubeWaitForCondition

func MustKubeWaitForCondition(namespace string, groupResourceName string, condition string, timeout string)

func MustKubeWaitForDeleted

func MustKubeWaitForDeleted(namespace string, groupResourceName string, timeout string)

func MustKubeWaitForReady

func MustKubeWaitForReady(namespace string, groupResourceName string, timeout string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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