Documentation
¶
Index ¶
Constants ¶
const ( // MountName is the name of the pvc being mounted (which // will contain the entrypoint binary and eventually the logs) MountName = "tools" MountPoint = "/tools" BinaryLocation = MountPoint + "/entrypoint" JSONConfigEnvVar = "ENTRYPOINT_OPTIONS" InitContainerName = "place-tools" ProcessLogFile = "/tools/process-log.txt" MarkerFile = "/tools/marker-file.txt" )
Variables ¶
This section is empty.
Functions ¶
func AddCopyStep ¶
AddCopyStep will prepend a BuildStep (Container) that will copy the entrypoint binary from the entrypoint image into the volume mounted at MountPoint, so that it can be mounted by subsequent steps and used to capture logs.
func GetImageDigest ¶
GetImageDigest tries to find and return image digest in cache, if cache doesn't exists it will lookup the digest in remote image manifest and then cache it
func GetRemoteEntrypoint ¶
GetRemoteEntrypoint accepts a cache of digest lookups, as well as the digest to look for. If the cache does not contain the digest, it will lookup the metadata from the images registry, and then commit that to the cache
func RedirectSteps ¶
RedirectSteps will modify each of the steps/containers such that the binary being run is no longer the one specified by the Command and the Args, but is instead the entrypoint binary, which will itself invoke the Command and Args, but also capture logs.