k8sutil

package
v0.0.0-...-57620ee Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCRDManifestPaths

func GetCRDManifestPaths(crdsDir string) (crdPaths []string, err error)

func GetCRDs

func GetCRDs(crdsDir string) ([]*apiextv1beta1.CustomResourceDefinition, error)

func GetKubeconfigAndNamespace

func GetKubeconfigAndNamespace(configPath string) (*rest.Config, string, error)

GetKubeconfigAndNamespace returns the *rest.Config and default namespace defined in the kubeconfig at the specified path. If no path is provided, returns the default *rest.Config and namespace

func GetObjectBytes

func GetObjectBytes(obj interface{}) ([]byte, error)

GetObjectBytes marshalls an object and removes runtime-managed fields: 'status', 'creationTimestamp'

Types

This section is empty.

Jump to

Keyboard shortcuts

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