Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clientset ¶
func Clientset() kubernetes.Interface
func InitWithConfig ¶
func InstallManifestGlob ¶
Types ¶
type KindCluster ¶
type KindCluster struct { Name string // contains filtered or unexported fields }
KindCluster represents a kind Kubernetes cluster, with kubeconfig (for external clients like kubectl) and rest.Config for in-process clients
func Cluster ¶
func Cluster() *KindCluster
func Create ¶
func Create(name, kubeconfigPath, kindConfig string) (*KindCluster, error)
Creates a cluster, storing kubeconfig at the given path If a cluster already exists, we return a KindCluster object pointing to it Allows passing in YAML config to configure kind, e.g. to expose ports or add more nodes See https://github.com/kubernetes-sigs/kind/blob/master/site/content/docs/user/quick-start.md#configuring-your-kind-cluster
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) InstallManifests ¶
func (c *KindCluster) InstallManifests(manifests []string) error
InstallManifests applies manifests from the given fileglob using kubectl
func (*KindCluster) Kubeconfig ¶
func (c *KindCluster) Kubeconfig() string
Kubeconfig returns the path to the cluster kubeconfig
func (*KindCluster) RESTConfig ¶
func (c *KindCluster) RESTConfig() *rest.Config
RESTConfig returns K8s client config to pass to clientset objects