k8s

package
v2.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const MaxK8sJobName = 63

Variables

This section is empty.

Functions

func GetAuthConfig

func GetAuthConfig(secrets []corev1.Secret, named reference.Named) (*authn.AuthConfig, error)

func GetMatchingSecretName

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

func GetPodImagePullSecrets

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

func NormalizeImageID

func NormalizeImageID(imageID string) string

NormalizeImageID remove "docker-pullable://" prefix from imageID if exists and then normalize it. https://github.com/kubernetes/kubernetes/issues/95968 input: docker-pullable://gcr.io/development-infra-208909/kubeclarity@sha256:6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa output: gcr.io/development-infra-208909/kubeclarity@sha256:6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa

func ParseImageHash

func ParseImageHash(imageID string) string

ParseImageHash extracts image hash from image ID input: docker-pullable://gcr.io/development-infra-208909/kubeclarity@sha256:6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa output: 6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa

Types

This section is empty.

Jump to

Keyboard shortcuts

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