Documentation ¶
Index ¶
- func CreateFromYAML(ctx context.Context, kc *kubernetes.Clientset, rc *rest.Config, ...) error
- func CreateResources(ctx context.Context, resources []*unstructured.Unstructured, ...) error
- func GetDynamicClient(rc *rest.Config) (*dynamic.DynamicClient, error)
- func GetJoinToken(kc *kubernetes.Clientset, rc *rest.Config, name string, namespace string) (string, error)
- func GetKMCClientSet(ctx context.Context, kc *kubernetes.Clientset, name string, namespace string, ...) (*kubernetes.Clientset, error)
- func GetNodeAddress(ctx context.Context, kc *kubernetes.Clientset, node string) (string, error)
- func InstallK0smotronOperator(ctx context.Context, kc *kubernetes.Clientset, rc *rest.Config) error
- func ParseManifests(data []byte) ([]*unstructured.Unstructured, error)
- type ErrorHandler
- type PortForwarder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFromYAML ¶
func CreateResources ¶
func CreateResources(ctx context.Context, resources []*unstructured.Unstructured, kc *kubernetes.Clientset, client *dynamic.DynamicClient) error
func GetDynamicClient ¶
func GetDynamicClient(rc *rest.Config) (*dynamic.DynamicClient, error)
func GetJoinToken ¶
func GetKMCClientSet ¶
func GetKMCClientSet(ctx context.Context, kc *kubernetes.Clientset, name string, namespace string, port int) (*kubernetes.Clientset, error)
GetKMCClientSet returns a kubernetes clientset for the cluster given the name and the namespace of the cluster.k0smotron.io
func GetNodeAddress ¶
func ParseManifests ¶
func ParseManifests(data []byte) ([]*unstructured.Unstructured, error)
Types ¶
type ErrorHandler ¶
type ErrorHandler func(err error, msgAndArgs ...interface{})
type PortForwarder ¶
type PortForwarder struct { ReadyChan chan struct{} // contains filtered or unexported fields }
func GetPortForwarder ¶
func (*PortForwarder) LocalPort ¶ added in v0.4.0
func (pf *PortForwarder) LocalPort() (int, error)
Get the local port that is forwarded to the remote port
func (*PortForwarder) Start ¶
func (pf *PortForwarder) Start(errorHandler ErrorHandler)
Start runs ForwardPorts. The errorHandler is expected to be s.Require().NoError
Click to show internal directories.
Click to hide internal directories.