overrides

package
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectEnvIntoDeployment

func InjectEnvIntoDeployment(podSpec *corev1.PodSpec, envVars []corev1.EnvVar) error

InjectEnvIntoDeployment injects the proxy env variables specified in proxyEnvVar into the container(s) of the given PodSpec.

If any Container in PodSpec already defines an env variable of the same name as any of the proxy env variables then it

func InjectNodeSelectorIntoDeployment

func InjectNodeSelectorIntoDeployment(podSpec *corev1.PodSpec, nodeSelector map[string]string) error

InjectNodeSelectorIntoDeployment injects the provided NodeSelector into the container(s) of the given PodSpec.

If any Container in PodSpec already defines a NodeSelector it will be overwritten.

func InjectResourcesIntoDeployment

func InjectResourcesIntoDeployment(podSpec *corev1.PodSpec, resources corev1.ResourceRequirements) error

InjectResourcesIntoDeployment will inject provided Resources into given podSpec

If podSpec already defines Resources, it will be overwritten

func InjectTolerationsIntoDeployment

func InjectTolerationsIntoDeployment(podSpec *corev1.PodSpec, tolerations []corev1.Toleration) error

InjectTolerationsIntoDeployment injects provided Tolerations into the given Pod Spec

Tolerations will be appended to the existing once if it does not already exist

func InjectVolumeMountsIntoDeployment

func InjectVolumeMountsIntoDeployment(podSpec *corev1.PodSpec, volumeMounts []corev1.VolumeMount) error

InjectVolumeMountsIntoDeployment injects the provided VolumeMounts into the given PodSpec.

If the PodSpec already defines a VolumeMount of the same name as any of the provided VolumeMounts then it will be overwritten.

func InjectVolumesIntoDeployment

func InjectVolumesIntoDeployment(podSpec *corev1.PodSpec, volumes []corev1.Volume) error

InjectVolumesIntoDeployment injects the provided Volumes into the container(s) of the given PodSpec.

If any Container in PodSpec already defines a Volume of the same name as any of the provided Volumes then it will be overwritten.

Types

type DeploymentInitializer

type DeploymentInitializer struct {
	// contains filtered or unexported fields
}

func NewDeploymentInitializer

func NewDeploymentInitializer(logger *logrus.Logger, querier proxy.Querier, lister operatorlister.OperatorLister) *DeploymentInitializer

NewDeploymentInitializer returns a function that accepts a Deployment object and initializes it with env variables specified in operator configuration.

func (*DeploymentInitializer) GetDeploymentInitializer

func (d *DeploymentInitializer) GetDeploymentInitializer(ownerCSV ownerutil.Owner) install.DeploymentInitializerFunc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳