Documentation ¶
Overview ¶
Package kubectl provides kubectl CLI wrapper.
Index ¶
- type KubeCtl
- func (k *KubeCtl) Apply(ctx context.Context, res meta.Object) error
- func (k *KubeCtl) Cleanup() error
- func (k *KubeCtl) Delete(ctx context.Context, res meta.Object) error
- func (k *KubeCtl) Get(ctx context.Context, kind string, name string, res interface{}) error
- func (k *KubeCtl) Run(ctx context.Context, args []string, stdin interface{}) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeCtl ¶
type KubeCtl struct {
// contains filtered or unexported fields
}
KubeCtl wraps kubectl CLI with version selection and kubeconfig handling.
func NewKubeCtl ¶
NewKubeCtl creates a new KubeCtl object with a given logger.
Click to show internal directories.
Click to hide internal directories.