k8s

package
v0.0.0-...-c30fbfa Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const MaxK8sJobName = 63

Variables

This section is empty.

Functions

func NormalizeImageID

func NormalizeImageID(imageID string) string

NormalizeImageID remove "docker-pullable://" prefix from imageID if exists and then normalize it. In case the image is not pullable (local image), return it as is. 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