k8s

package
Version: v0.0.0-...-76fd5f8 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const MaxK8sJobName = 63

Variables

This section is empty.

Functions

func CreateClientset

func CreateClientset(kubeconfigPath string) (kubernetes.Interface, error)

func GetMatchingSecretName

func GetMatchingSecretName(secrets []*corev1.Secret, imageName string) string

func GetPodImagePullSecrets

func GetPodImagePullSecrets(clientset kubernetes.Interface, pod corev1.Pod) []*corev1.Secret

func ParseImageHash

func ParseImageHash(imageID string) string

example: for "docker-pullable://gcr.io/development-infra-208909/kubei@sha256:6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa" returns 6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL