Documentation
¶
Index ¶
Constants ¶
View Source
const ( PluginName = "FaketimePlugin" ContainerName = "fake-time-sidecar" InitContainerName = "libfaketime" ModifyProcessName = "cloudnativegame.io/process-name" FakeTime = "cloudnativegame.io/fake-time" IMAGE_ENV = "FAKETIME_PLUGIN_IMAGE" LIBFAKETIME_IMAGE_ENV = "LIBFAKETIME_PLUGIN_IMAGE" LibFakeTimePath = "/usr/local/lib/faketime/libfaketime.so.1" LibFakeTimeMountPath = "/usr/local/lib/faketime" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FaketimePlugin ¶
type FaketimePlugin struct { }
func NewSgPlugin ¶
func NewSgPlugin() *FaketimePlugin
func (*FaketimePlugin) MatchAnnotations ¶
func (s *FaketimePlugin) MatchAnnotations(podAnnots map[string]string) bool
func (*FaketimePlugin) Name ¶
func (s *FaketimePlugin) Name() string
func (*FaketimePlugin) Patch ¶
func (s *FaketimePlugin) Patch(pod *apiv1.Pod, operation addmissionV1.Operation) []utils.PatchOperation
Click to show internal directories.
Click to hide internal directories.