Documentation ¶
Index ¶
- func CreateComputeResourceRequirementsLimit(cpuSize, memSize string) v1Core.ResourceRequirements
- func MakeKeyValueEnvVar(k, v string) v1Core.EnvVar
- func MakeSecretEnvVar(name, key, localObjRef string) v1Core.EnvVar
- type ConfigMapDriver
- type ContainerDriver
- type DeploymentDriver
- type IngressDriver
- type PersistentVolumeClaimsConfigDriver
- type ServiceDriver
- type ServiceMonitorDriver
- type StatefulSetDriver
- type TopologyConfigDriver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateComputeResourceRequirementsLimit ¶
func CreateComputeResourceRequirementsLimit(cpuSize, memSize string) v1Core.ResourceRequirements
func MakeKeyValueEnvVar ¶
func MakeSecretEnvVar ¶
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 ¶
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 ¶
func (p *PersistentVolumeClaimsConfigDriver) CustomPVCS(pvcs []v1.PersistentVolumeClaim) []v1.PersistentVolumeClaim
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)
type TopologyConfigDriver ¶
type TopologyConfigDriver struct { *IngressDriver *StatefulSetDriver *ServiceDriver *DeploymentDriver *ServiceMonitorDriver *ConfigMapDriver }
func (*TopologyConfigDriver) SetCustomConfig ¶
func (t *TopologyConfigDriver) SetCustomConfig(inf *topology_workloads.TopologyBaseInfraWorkload)
Click to show internal directories.
Click to hide internal directories.