Documentation ¶
Overview ¶
Package deleter provides a kubectl deleter that can be easily imported and used to delete resources. It is similar to the declarative applier package in kubebuilder-declarative-pattern.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeleteOptions ¶
func NewDeleteOptions(ioStreams genericclioptions.IOStreams, fopts resource.FilenameOptions) *delete.DeleteOptions
Types ¶
type DirectDeleter ¶
type DirectDeleter struct {
// contains filtered or unexported fields
}
DirectDeleter deletes a given manifest. It is based on DirectApplier. NOTE: This implementation will change after the upstream deleter package is refactored to be more like the applier.
func NewDirectDeleter ¶
func NewDirectDeleter() *DirectDeleter
NewDirectDeleter returns an instance of a DirectDeleter.
func (*DirectDeleter) Delete ¶
func (d *DirectDeleter) Delete(ctx context.Context, namespace string, manifest string, validate bool, extraArgs ...string) error
Delete deletes the given manifest. NOTE: Some arguments like namespace and extraArgs are no-op at the moment. They exist to be consistent with the kubebuilder-declarative-pattern's Applier interface. They are not part of the DeleteOptions at the moment. This will change as the upstream delete package is refactored in the future.
func (*DirectDeleter) IOStreams ¶
func (d *DirectDeleter) IOStreams(ioStreams genericclioptions.IOStreams) *DirectDeleter
IOStreams sets the IOStreams of the deleter.