util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AlamedaGroup  GroupEnums = "alameda"
	GrafanaGroup  GroupEnums = "grafana"
	InfluxDBGroup GroupEnums = "influxdb"
	//deployment name
	AlamedaaiDPN           = "alameda-ai"
	AlamedaoperatorDPN     = "alameda-operator"
	AlamedadatahubDPN      = "alameda-datahub"
	AlamedaevictionerDPN   = "alameda-evictioner"
	AdmissioncontrollerDPN = "admission-controller"
	GrafanaDPN             = "alameda-grafana"
	InfluxdbDPN            = "alameda-influxdb"
	//container name
	AlamedaaiCTN           = "alameda-ai-engine"
	AlamedaoperatorCTN     = "alameda-operator"
	AlamedadatahubCTN      = "alameda-datahub"
	AlamedaevictionerCTN   = "alameda-evictioner"
	AdmissioncontrollerCTN = "admission-controller"
	GetTokenCTN            = "gettoken"
	GrafanaCTN             = "grafana"
	InfluxdbCTN            = "influxdb"
	//AlamedaService modify Prometheus's var
	OriginPrometheus_URL               = "https://prometheus-k8s.openshift-monitoring.svc:9091"
	OriginDeploymentPrometheusLocation = "ALAMEDA_DATAHUB_PROMETHEUS_URL"
	OriginComfigMapPrometheusLocation  = "prometheus.yaml"
	NamespaceService                   = "federatorai.svc"
	//MountPath
	DataMountPath = "/var/lib"
	LogMountPath  = "/var/log"
)

Variables

This section is empty.

Functions

func SetBootStrapImageStruct

func SetBootStrapImageStruct(dep *appsv1.Deployment, componentspec v1alpha1.AlamedaComponentSpec, ctn string)

func SetImagePullPolicy

func SetImagePullPolicy(dep *appsv1.Deployment, ctn string, imagePullPolicy corev1.PullPolicy)

if user section schema set pullpolicy then AlamedaService set Containers image's pullpolicy

func SetImageStruct

func SetImageStruct(dep *appsv1.Deployment, value interface{}, ctn string)

if user set related image struct then AlamedaService set Containers image structure

func SetStorageToMountPath

func SetStorageToMountPath(dep *appsv1.Deployment, storagestructs []v1alpha1.StorageSpec, ctn string, volumeName string, group GroupEnums)

if user set pvc then AlamedaService set pvc to Deployment's MountPath

func SetStorageToPersistentVolumeClaimSpec

func SetStorageToPersistentVolumeClaimSpec(pvc *corev1.PersistentVolumeClaim, storagestructs []v1alpha1.StorageSpec, pvctype v1alpha1.Usage)

if user set pvc then AlamedaService set PersistentVolumeClaimSpec

func SetStorageToVolumeSource

func SetStorageToVolumeSource(dep *appsv1.Deployment, storagestructs []v1alpha1.StorageSpec, volumeName string, group GroupEnums)

if user set pvc then AlamedaService set pvc to Deployment's VolumeSource

Types

type GroupEnums

type GroupEnums string

Jump to

Keyboard shortcuts

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