Documentation ¶
Index ¶
- type KindCluster
- func (c *KindCluster) Delete() error
- func (c *KindCluster) Kubeconfig() string
- func (c *KindCluster) Kubectl(args ...string) (string, error)
- func (c *KindCluster) KubectlMust(t *testing.T, args ...string) string
- func (c *KindCluster) KubectlYaml(args ...string) (*uo.UnstructuredObject, error)
- func (c *KindCluster) KubectlYamlMust(t *testing.T, args ...string) *uo.UnstructuredObject
- func (c *KindCluster) RESTConfig() *rest.Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KindCluster ¶
type KindCluster struct { Name string // contains filtered or unexported fields }
func CreateKindCluster ¶
func CreateKindCluster(name, kubeconfigPath string) (*KindCluster, error)
func (*KindCluster) Delete ¶
func (c *KindCluster) Delete() error
Delete removes the cluster from kind. The cluster may not be deleted straight away - this only issues a delete command
func (*KindCluster) Kubeconfig ¶
func (c *KindCluster) Kubeconfig() string
Kubeconfig returns the path to the cluster kubeconfig
func (*KindCluster) KubectlMust ¶
func (c *KindCluster) KubectlMust(t *testing.T, args ...string) string
func (*KindCluster) KubectlYaml ¶
func (c *KindCluster) KubectlYaml(args ...string) (*uo.UnstructuredObject, error)
func (*KindCluster) KubectlYamlMust ¶
func (c *KindCluster) KubectlYamlMust(t *testing.T, args ...string) *uo.UnstructuredObject
func (*KindCluster) RESTConfig ¶
func (c *KindCluster) RESTConfig() *rest.Config
RESTConfig returns K8s client config to pass to clientset objects
Click to show internal directories.
Click to hide internal directories.