Help us shape the future of Go! Take the 2026 Go Developer Survey

k8sutil

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 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 added in v0.6.0

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

func GetCRDs added in v0.6.0

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 added in v0.6.0

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