kubeinstallutils

package
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CrdsFromManifest

func CrdsFromManifest(crdManifestYaml string) ([]*v1beta1.CustomResourceDefinition, error)

func CreateCrds

func CreateCrds(ctx context.Context, apiExts apiexts.Interface, crds ...*v1beta1.CustomResourceDefinition) error

func DeleteCrds

func DeleteCrds(ctx context.Context, apiExts apiexts.Interface, crdNames ...string) error

Types

type KubeInstaller

type KubeInstaller interface {
	Create(ctx context.Context, obj runtime.Object) error
	Update(ctx context.Context, obj runtime.Object) error
	Delete(ctx context.Context, obj runtime.Object) error
}

func NewKubeInstaller

func NewKubeInstaller(kube kubernetes.Interface, exts apiexts.Interface, namespace string) KubeInstaller

generic kube installer, CUD arbitrary kube objects

type KubeObjectList

type KubeObjectList []runtime.Object

func ParseKubeManifest

func ParseKubeManifest(manifest string) (KubeObjectList, error)

type UntypedKubeObject

type UntypedKubeObject map[string]interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL