Documentation
¶
Index ¶
- func InitializeConfiguration(k *types.Kubeconfig) (*rest.Config, error)
- func SplitYAML(yamlData []byte) ([]unstructured.Unstructured, error)
- type ApplyOpts
- type DeleteOpts
- type Kubectl
- func (k *Kubectl) ApplyResource(ctx context.Context, obj *unstructured.Unstructured, applyOpts ApplyOpts) (string, error)
- func (k *Kubectl) DeleteResource(ctx context.Context, obj *unstructured.Unstructured, deleteOpts DeleteOpts) (string, error)
- func (k *Kubectl) OpenAPISchema() (openapi.Resources, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeConfiguration ¶
func InitializeConfiguration(k *types.Kubeconfig) (*rest.Config, error)
func SplitYAML ¶
func SplitYAML(yamlData []byte) ([]unstructured.Unstructured, error)
Types ¶
type ApplyOpts ¶
type ApplyOpts struct { DryRunStrategy cmdutil.DryRunStrategy Force bool Validate bool }
type DeleteOpts ¶
type Kubectl ¶
type Kubectl struct {
// contains filtered or unexported fields
}
func NewKubectl ¶
NewKubectl returns a kubectl instance from a rest config
func (*Kubectl) ApplyResource ¶
func (k *Kubectl) ApplyResource(ctx context.Context, obj *unstructured.Unstructured, applyOpts ApplyOpts) (string, error)
ApplyResource performs an apply of a unstructured resource
func (*Kubectl) DeleteResource ¶
func (k *Kubectl) DeleteResource(ctx context.Context, obj *unstructured.Unstructured, deleteOpts DeleteOpts) (string, error)
Click to show internal directories.
Click to hide internal directories.