model

package
v3.10.3 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GrafanaImage                        = "docker.io/grafana/grafana"
	GrafanaVersion                      = "7.3.10"
	GrafanaServiceAccountName           = "grafana-serviceaccount"
	GrafanaServiceName                  = "grafana-service"
	GrafanaDataStorageName              = "grafana-pvc"
	GrafanaConfigName                   = "grafana-config"
	GrafanaConfigFileName               = "grafana.ini"
	GrafanaIngressName                  = "grafana-ingress"
	GrafanaRouteName                    = "grafana-route"
	GrafanaDeploymentName               = "grafana-deployment"
	GrafanaPluginsVolumeName            = "grafana-plugins"
	GrafanaInitContainerName            = "grafana-plugins-init"
	GrafanaLogsVolumeName               = "grafana-logs"
	GrafanaDataVolumeName               = "grafana-data"
	GrafanaDatasourcesConfigMapName     = "grafana-datasources"
	GrafanaHealthEndpoint               = "/api/health"
	GrafanaPodLabel                     = "grafana"
	LastConfigAnnotation                = "last-config"
	LastConfigEnvVar                    = "LAST_CONFIG"
	LastDatasourcesConfigEnvVar         = "LAST_DATASOURCES"
	GrafanaAdminSecretName              = "grafana-admin-credentials"
	DefaultAdminUser                    = "admin"
	GrafanaAdminUserEnvVar              = "GF_SECURITY_ADMIN_USER"
	GrafanaAdminPasswordEnvVar          = "GF_SECURITY_ADMIN_PASSWORD"
	GrafanaHttpPort                 int = 3000
	GrafanaHttpPortName                 = "grafana"
)
View Source
const (
	InitMemoryRequest = "128Mi"
	InitCpuRequest    = "250m"
	InitMemoryLimit   = "512Mi"
	InitCpuLimit      = "1000m"
	MemoryRequest     = "256Mi"
	CpuRequest        = "100m"
	MemoryLimit       = "1024Mi"
	CpuLimit          = "500m"
)
View Source
const OpenShiftOAuthRedirect = "serviceaccounts.openshift.io/oauth-redirectreference.primary"

Variables

This section is empty.

Functions

func AdminSecret

func AdminSecret(cr *v1alpha1.Grafana) *v12.Secret

func AdminSecretReconciled

func AdminSecretReconciled(cr *v1alpha1.Grafana, currentState *v12.Secret) *v12.Secret

func AdminSecretSelector

func AdminSecretSelector(cr *v1alpha1.Grafana) client.ObjectKey

func GetGrafanaPort

func GetGrafanaPort(cr *v1alpha1.Grafana) int

func GetHost

func GetHost(cr *v1alpha1.Grafana) string

func GetIngressAnnotations

func GetIngressAnnotations(cr *v1alpha1.Grafana, existing map[string]string) map[string]string

func GetIngressClassName added in v3.10.0

func GetIngressClassName(cr *v1alpha1.Grafana) *string

func GetIngressLabels

func GetIngressLabels(cr *v1alpha1.Grafana) map[string]string

func GetIngressPathType added in v3.10.0

func GetIngressPathType(cr *v1alpha1.Grafana) *v1beta1.PathType

func GetIngressTargetPort

func GetIngressTargetPort(cr *v1alpha1.Grafana) intstr.IntOrString

func GetPath

func GetPath(cr *v1alpha1.Grafana) string

func GrafanaConfig

func GrafanaConfig(cr *v1alpha1.Grafana) (*v1.ConfigMap, error)

func GrafanaConfigReconciled

func GrafanaConfigReconciled(cr *v1alpha1.Grafana, currentState *v1.ConfigMap) (*v1.ConfigMap, error)

func GrafanaConfigSelector

func GrafanaConfigSelector(cr *v1alpha1.Grafana) client.ObjectKey

func GrafanaDataPVC added in v3.4.0

func GrafanaDataPVC(cr *v1alpha1.Grafana) *corev1.PersistentVolumeClaim

func GrafanaDataStorageSelector added in v3.4.0

func GrafanaDataStorageSelector(cr *v1alpha1.Grafana) client.ObjectKey

func GrafanaDatasourceConfigSelector

func GrafanaDatasourceConfigSelector(cr *v1alpha1.Grafana) client.ObjectKey

func GrafanaDatasourcesConfig

func GrafanaDatasourcesConfig(cr *v1alpha1.Grafana) *v1.ConfigMap

func GrafanaDeployment

func GrafanaDeployment(cr *v1alpha1.Grafana, configHash, dsHash string) *v1.Deployment

func GrafanaDeploymentReconciled

func GrafanaDeploymentReconciled(cr *v1alpha1.Grafana, currentState *v1.Deployment, configHash, plugins, dshash string) *v1.Deployment

func GrafanaDeploymentSelector

func GrafanaDeploymentSelector(cr *v1alpha1.Grafana) client.ObjectKey

func GrafanaIngress

func GrafanaIngress(cr *v1alpha1.Grafana) *v1beta1.Ingress

func GrafanaIngressReconciled

func GrafanaIngressReconciled(cr *v1alpha1.Grafana, currentState *v1beta1.Ingress) *v1beta1.Ingress

func GrafanaIngressSelector

func GrafanaIngressSelector(cr *v1alpha1.Grafana) client.ObjectKey

func GrafanaPVCReconciled added in v3.4.0

func GrafanaPVCReconciled(cr *v1alpha1.Grafana, currentState *corev1.PersistentVolumeClaim) *corev1.PersistentVolumeClaim

func GrafanaRoute

func GrafanaRoute(cr *v1alpha1.Grafana) *v1.Route

func GrafanaRouteReconciled

func GrafanaRouteReconciled(cr *v1alpha1.Grafana, currentState *v1.Route) *v1.Route

func GrafanaRouteSelector

func GrafanaRouteSelector(cr *v1alpha1.Grafana) client.ObjectKey

func GrafanaService

func GrafanaService(cr *v1alpha1.Grafana) *v1.Service

func GrafanaServiceAccount

func GrafanaServiceAccount(cr *v1alpha1.Grafana) *v1.ServiceAccount

func GrafanaServiceAccountReconciled

func GrafanaServiceAccountReconciled(cr *v1alpha1.Grafana, currentState *v1.ServiceAccount) *v1.ServiceAccount

func GrafanaServiceAccountSelector

func GrafanaServiceAccountSelector(cr *v1alpha1.Grafana) client.ObjectKey

func GrafanaServiceReconciled

func GrafanaServiceReconciled(cr *v1alpha1.Grafana, currentState *v1.Service) *v1.Service

func GrafanaServiceSelector

func GrafanaServiceSelector(cr *v1alpha1.Grafana) client.ObjectKey

func MergeAnnotations added in v3.1.0

func MergeAnnotations(requested map[string]string, existing map[string]string) map[string]string

func RandStringRunes

func RandStringRunes(s int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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