k8sutil

package
v0.0.0-...-67d514a Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HostPath

func HostPath(hostpath corev1.HostPathType) *corev1.HostPathType

HostPath returns a pointer to the HostPathType value passed in.

func InClusterConfig

func InClusterConfig() (*rest.Config, error)

func IsKubernetesResourceNotFoundError

func IsKubernetesResourceNotFoundError(err error) bool

func MustNewKubeConfig

func MustNewKubeConfig(kubeconfigPath string) *rest.Config

func UpdateOrCreateResource

func UpdateOrCreateResource(ctx context.Context, cli client.Client, reqLogger logr.Logger, obj runtime.Object, meta metav1.Object) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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