zk8s_templates

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildContainerDriver

func BuildContainerDriver(ctx context.Context, name string, container Container) (v1.Container, error)

func BuildDeploymentDriver

func BuildDeploymentDriver(ctx context.Context, containers Containers, dep Deployment) (config_overrides.DeploymentDriver, error)

func BuildIngressDriver

func BuildIngressDriver(ctx context.Context, cbName string, containers Containers, ing Ingress, ip IngressPaths) (zeus_topology_config_drivers.IngressDriver, error)

func BuildStatefulSetDriver

func BuildStatefulSetDriver(ctx context.Context, containers Containers, sts StatefulSet) (config_overrides.StatefulSetDriver, error)

func GetConfigMapName

func GetConfigMapName(ctx context.Context, name string) string

func GetConfigMapTemplate

func GetConfigMapTemplate(ctx context.Context, name string) *v1.ConfigMap

func GetCronJobName

func GetCronJobName(ctx context.Context, name string) string

func GetCronJobTemplate

func GetCronJobTemplate(ctx context.Context, name string) *v1Batch.CronJob

func GetDeploymentName

func GetDeploymentName(ctx context.Context, name string) string

func GetDeploymentTemplate

func GetDeploymentTemplate(ctx context.Context, name string) *v1.Deployment

func GetIngressHostName

func GetIngressHostName(ctx context.Context, name string) string

func GetIngressName

func GetIngressName(ctx context.Context, name string) string

func GetIngressSecretName

func GetIngressSecretName(ctx context.Context, name string) string

func GetIngressTemplate

func GetIngressTemplate(ctx context.Context, name string) *v1.Ingress

func GetJobName

func GetJobName(ctx context.Context, name string) string

func GetJobTemplate

func GetJobTemplate(ctx context.Context, name string) *v1Batch.Job

func GetLabels

func GetLabels(ctx context.Context, name string) map[string]string

func GetPvcTemplate

func GetPvcTemplate(pvcTemplate PVCTemplate) v1.PersistentVolumeClaim

func GetSelector

func GetSelector(ctx context.Context, name string) map[string]string

func GetServiceName

func GetServiceName(ctx context.Context, name string) string

func GetServiceTemplate

func GetServiceTemplate(ctx context.Context, name string) *v1.Service

func GetStatefulSetName

func GetStatefulSetName(ctx context.Context, name string) string

func GetStatefulSetTemplate

func GetStatefulSetTemplate(ctx context.Context, name string) *v1.StatefulSet

Types

type ConfigMap

type ConfigMap map[string]string

type Container

type Container struct {
	IsInitContainer bool        `json:"isInitContainer"`
	ImagePullPolicy string      `json:"imagePullPolicy,omitempty"`
	DockerImage     DockerImage `json:"dockerImage"`
}

type Containers

type Containers map[string]Container

type Deployment

type Deployment struct {
	ReplicaCount int `json:"replicaCount"`
}

type DockerImage

type DockerImage struct {
	ImageName            string               `json:"imageName"`
	Cmd                  string               `json:"cmd"`
	Args                 string               `json:"args"`
	ResourceRequirements ResourceRequirements `json:"resourceRequirements,omitempty"`
	EnvVars              []EnvVar             `json:"envVars,omitempty"`
	Ports                []Port               `json:"ports,omitempty"`
	VolumeMounts         []VolumeMount        `json:"volumeMounts,omitempty"`
}

type EnvVar

type EnvVar struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type Ingress

type Ingress struct {
	AuthServerURL string `json:"authServerURL"`
	Host          string `json:"host"`
}

type IngressPath

type IngressPath struct {
	Path     string `json:"path"`
	PathType string `json:"pathType"`
}

type IngressPaths

type IngressPaths map[string]IngressPath

type PVCTemplate

type PVCTemplate struct {
	Name               string  `json:"name"`
	AccessMode         string  `json:"accessMode"`
	StorageSizeRequest string  `json:"storageSizeRequest"`
	StorageClassName   *string `json:"storageClassName"`
}

type Port

type Port struct {
	Name               string        `json:"name"`
	Number             string        `json:"number"`
	Protocol           string        `json:"protocol"`
	IngressEnabledPort bool          `json:"ingressEnabledPort"`
	ProbeSettings      ProbeSettings `json:"probeSettings,omitempty"`
}

type ProbeSettings

type ProbeSettings struct {
	UseForLivenessProbe  bool `json:"useForLivenessProbe,omitempty"`
	UseForReadinessProbe bool `json:"useForReadinessProbe,omitempty"`
	UseTcpSocket         bool `json:"useTcpSocket,omitempty"`
}

type ResourceRequirements

type ResourceRequirements struct {
	CPU    string `json:"cpu,omitempty"`
	Memory string `json:"memory,omitempty"`
}

type StatefulSet

type StatefulSet struct {
	ReplicaCount int           `json:"replicaCount"`
	PVCTemplates []PVCTemplate `json:"pvcTemplates"`
}

type VolumeMount

type VolumeMount struct {
	Name      string `json:"name"`
	MountPath string `json:"mountPath"`
}

Jump to

Keyboard shortcuts

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