Documentation ¶
Index ¶
- func KubectlApply(ctx context.Context, kubeconfigPath string, resources []byte) error
- func KubectlApplyWithArgs(ctx context.Context, kubeconfigPath string, resources []byte, args ...string) error
- func KubectlWait(ctx context.Context, kubeconfigPath string, args ...string) error
- type Command
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KubectlApply ¶ added in v0.3.4
TODO: Remove this usage of kubectl and replace with a function from apply.go using the controller-runtime client.
func KubectlApplyWithArgs ¶ added in v0.3.7
Types ¶
type Command ¶
Command wraps exec.Command with specific functionality. This differentiates itself from the standard library by always collecting stdout and stderr. Command improves the UX of exec.Command for our specific use case.
type Option ¶
type Option func(*Command)
Option is a functional option type that modifies a Command.
func WithArgs ¶
WithArgs sets the arguments for the command such as `get pods -n kube-system` to the command `kubectl`.
func WithCommand ¶
WithCommand defines the command to run such as `kubectl` or `kind`.
Click to show internal directories.
Click to hide internal directories.