Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultHostPathPrefix string = "/usr/share/zoneinfo" DefaultLocalTimePath string = "/etc/localtime" // DefaultInitContainerName is the default name for initContainer of k8tz DefaultInitContainerName string = "k8tz" // DefaultInjectionStrategy is the default injection strategy of k8tz DefaultInjectionStrategy = InitContainerInjectionStrategy // InitContainerInjectionStrategy is an injection strategy where we inject // k8tz bootstrap initContainer into a pod with a shared emptyDir volume; // the bootstrap container then copies TZif files to the emptyDir so the // actual container can consume them later InitContainerInjectionStrategy InjectionStrategy = "initContainer" // HostPathInjectionStrategy is an injection strategy where we assume that // TZif files exists on the node machines, and we can just mount them // with hostPath volumes HostPathInjectionStrategy InjectionStrategy = "hostPath" )
Variables ¶
View Source
var ( True = true False = false )
Functions ¶
This section is empty.
Types ¶
type InjectionStrategy ¶
type InjectionStrategy string
InjectionStrategy is a method of timezone injection, since there is more than one way how it can be done
type PatchGenerator ¶
type PatchGenerator struct { Strategy InjectionStrategy Timezone string InitContainerImage string InitContainerName string InitContainerVerbose bool HostPathPrefix string LocalTimePath string CronJobTimeZone bool }
func NewPatchGenerator ¶
func NewPatchGenerator() PatchGenerator
type Transformer ¶
type Transformer struct { PatchGenerator PatchGenerator Inputs Inputs Output io.Writer }
func (*Transformer) Transform ¶
func (t *Transformer) Transform() error
Click to show internal directories.
Click to hide internal directories.