# Functions
AddCopyStep will prepend a Step (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.
AddToEntrypointCache adds an image digest and its entrypoint to the cache.
GetArgs returns the arguments that should be specified for the step which has been wrapped such that it will execute our custom entrypoint instead of the user provided Command and Args.
GetRemoteEntrypoint accepts a cache of digest lookups, as well as the digest to look for.
NewCache is a simple helper function that returns a pointer to a Cache that has had the internal fixed-sized lru cache initialized.
RedirectStep will modify a step/container 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.
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.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MountName is the name of the pvc being mounted (which will contain the entrypoint binary and eventually the logs).
No description provided by the author