Documentation ¶
Index ¶
- func LoadFromDeployment(deployment *appsv1.Deployment) map[string]Container
- func UpdateSecurityContext(c *corev1.Container, sc SecurityContext)
- type Container
- func (c *Container) AppendConfigMapFromSourceIfMissing(name string)
- func (c *Container) AppendEnvIfMissing(name, value string)
- func (c *Container) AppendEnvIfMissingOverrideIfPresent(name, value string)
- func (c *Container) AppendEnvStructIfMissing(envVar corev1.EnvVar)
- func (c *Container) AppendEnvVarValueFromIfMissing(name string, valueFrom *corev1.EnvVarSource)
- func (c *Container) AppendVolumeMountIfMissing(name, mountPath string)
- func (c *Container) AppendVolumeMountStructIfMissing(volumeMount corev1.VolumeMount)
- func (c *Container) AppendVolumeMountWithSubPath(name, mountPath, subPath string)
- func (c *Container) AppendVolumeMountWithSubPathIfMissing(name, mountPath, subPath string)
- func (c *Container) DeleteEnv(name string)
- func (c *Container) GetEnvs(reqs []string) []corev1.EnvVar
- func (c *Container) SetArgs(args []string)
- func (c *Container) SetCommand(command []string)
- func (c *Container) SetImage(img, tag string)
- func (c *Container) SetLivenessProbe(probe *corev1.Probe)
- func (c *Container) SetReadinessProbe(probe *corev1.Probe)
- func (c *Container) SetStartupProbe(probe *corev1.Probe)
- func (c *Container) SetVolumeMounts(volumeMounts []corev1.VolumeMount)
- func (c *Container) UpdateEnv(name, value string)
- func (c *Container) UpdateResources(new *corev1.ResourceRequirements) error
- func (c *Container) UpdateSecurityContext(sc SecurityContext)
- type SecurityContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadFromDeployment ¶
func LoadFromDeployment(deployment *appsv1.Deployment) map[string]Container
func UpdateSecurityContext ¶
func UpdateSecurityContext(c *corev1.Container, sc SecurityContext)
UpdateSecurityContext will update the security context of passed in container
Types ¶
type Container ¶
func LoadFromFile ¶
func (*Container) AppendConfigMapFromSourceIfMissing ¶
func (*Container) AppendEnvIfMissing ¶
func (*Container) AppendEnvIfMissingOverrideIfPresent ¶
func (*Container) AppendEnvStructIfMissing ¶
func (*Container) AppendEnvVarValueFromIfMissing ¶
func (c *Container) AppendEnvVarValueFromIfMissing(name string, valueFrom *corev1.EnvVarSource)
func (*Container) AppendVolumeMountIfMissing ¶
func (*Container) AppendVolumeMountStructIfMissing ¶
func (c *Container) AppendVolumeMountStructIfMissing(volumeMount corev1.VolumeMount)
func (*Container) AppendVolumeMountWithSubPath ¶
func (*Container) AppendVolumeMountWithSubPathIfMissing ¶
func (*Container) SetCommand ¶
func (*Container) SetLivenessProbe ¶
func (*Container) SetReadinessProbe ¶
func (*Container) SetStartupProbe ¶
func (*Container) SetVolumeMounts ¶
func (c *Container) SetVolumeMounts(volumeMounts []corev1.VolumeMount)
func (*Container) UpdateResources ¶
func (c *Container) UpdateResources(new *corev1.ResourceRequirements) error
func (*Container) UpdateSecurityContext ¶
func (c *Container) UpdateSecurityContext(sc SecurityContext)
UpdateSecurityContext will update the security context of the container
Click to show internal directories.
Click to hide internal directories.