k8s

package
v0.0.0-...-0e5b682 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 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.

Jump to

Keyboard shortcuts

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