Documentation ¶
Index ¶
- Constants
- func GetAuthConfig(secrets []corev1.Secret, named reference.Named) (*authn.AuthConfig, error)
- func GetMatchingSecretName(secrets []*corev1.Secret, imageName string) string
- func GetPodImagePullSecrets(clientset kubernetes.Interface, pod corev1.Pod) []*corev1.Secret
- func NormalizeImageID(imageID string) string
- func ParseImageHash(imageID string) string
Constants ¶
const MaxK8sJobName = 63
Variables ¶
This section is empty.
Functions ¶
func GetAuthConfig ¶
func GetMatchingSecretName ¶
func GetPodImagePullSecrets ¶
func NormalizeImageID ¶
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 ¶
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.