k8sutil

package
v0.0.0-...-3773f5b Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const RecommendedConfigPathEnvVar = "KUBECONFIG"

Variables

This section is empty.

Functions

func CascadeDeleteOptions

func CascadeDeleteOptions(gracePeriodSeconds int64) *metav1.DeleteOptions

TODO(jlewi): CascadeDeletOptions are part of garbage collection policy. Do we want to use this? See https://kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/

func GetClusterConfig

func GetClusterConfig(f string) (*rest.Config, error)

Obtain the config from the Kube configuration used by kubeconfig, or from k8s cluster.

func IsKubernetesResourceAlreadyExistError

func IsKubernetesResourceAlreadyExistError(err error) bool

func IsKubernetesResourceNotFoundError

func IsKubernetesResourceNotFoundError(err error) bool

func JobListOpt

func JobListOpt(clusterName string) metav1.ListOptions

We are using internal api types for cluster related.

func LabelsForJob

func LabelsForJob(jobName string) map[string]string

func MustNewApiExtensionsClient

func MustNewApiExtensionsClient() apiextensionsclient.Interface

func MustNewKubeClient

func MustNewKubeClient() kubernetes.Interface

Types

This section is empty.

Jump to

Keyboard shortcuts

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