config_overrides

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateComputeResourceRequirementsLimit

func CreateComputeResourceRequirementsLimit(cpuSize, memSize string) v1Core.ResourceRequirements

func MakeKeyValueEnvVar

func MakeKeyValueEnvVar(k, v string) v1Core.EnvVar

func MakeSecretEnvVar

func MakeSecretEnvVar(name, key, localObjRef string) v1Core.EnvVar

Types

type ConfigMapDriver

type ConfigMapDriver struct {
	v1.ConfigMap
	// swap key for values key in the configmap
	SwapKeys map[string]string
}

func (*ConfigMapDriver) SetConfigMaps

func (cm *ConfigMapDriver) SetConfigMaps(cmap *v1.ConfigMap)

type ContainerDriver

type ContainerDriver struct {
	IsDeleteContainer bool `json:"isDeleteContainer"`
	IsAppendContainer bool `json:"isAppendContainer"`
	IsInitContainer   bool `json:"isInitContainer"`
	v1Core.Container  `json:"v1Container"`
	AppendEnvVars     []v1Core.EnvVar `json:"appendEnvVars,omitempty"`
}

func (*ContainerDriver) CreateEnvVarKeyValue

func (cd *ContainerDriver) CreateEnvVarKeyValue(k, v string) v1Core.EnvVar

func (*ContainerDriver) SetContainerConfigs

func (cd *ContainerDriver) SetContainerConfigs(cont *v1Core.Container)

type DeploymentDriver

type DeploymentDriver struct {
	ReplicaCount     *int32
	ContainerDrivers map[string]ContainerDriver
}

func NewDeploymentDriver

func NewDeploymentDriver() DeploymentDriver

func (*DeploymentDriver) SetDeploymentConfigs

func (d *DeploymentDriver) SetDeploymentConfigs(dep *v1.Deployment)

type IngressDriver

type IngressDriver struct {
	v1.Ingress
	Host         string
	NginxAuthURL string
}

func (*IngressDriver) SetIngressConfigs

func (i *IngressDriver) SetIngressConfigs(ing *v1.Ingress)

type PersistentVolumeClaimsConfigDriver

type PersistentVolumeClaimsConfigDriver struct {
	AppendPVC                    map[string]bool
	PersistentVolumeClaimDrivers map[string]v1.PersistentVolumeClaim
}

func (*PersistentVolumeClaimsConfigDriver) CustomPVCS

type ServiceDriver

type ServiceDriver struct {
	v1.Service
	ExtendPorts []v1.ServicePort
}

func (*ServiceDriver) AddNginxTargetPort

func (s *ServiceDriver) AddNginxTargetPort(portName, targetPortName string)

func (*ServiceDriver) SetServiceConfigs

func (s *ServiceDriver) SetServiceConfigs(svc *v1.Service)

type ServiceMonitorDriver

type ServiceMonitorDriver struct {
	v1.ServiceMonitor
}

func (*ServiceMonitorDriver) SetServiceMonitorConfigs

func (sm *ServiceMonitorDriver) SetServiceMonitorConfigs(smn *v1.ServiceMonitor)

type StatefulSetDriver

type StatefulSetDriver struct {
	ReplicaCount     *int32
	ContainerDrivers map[string]ContainerDriver
	PVCDriver        *PersistentVolumeClaimsConfigDriver
}

func NewStatefulSetDriver

func NewStatefulSetDriver() StatefulSetDriver

func (*StatefulSetDriver) SetStatefulSetConfigs

func (s *StatefulSetDriver) SetStatefulSetConfigs(sts *v1.StatefulSet)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL