model

package
v3.0.0-...-f89e67c Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GrafanaImage                        = "grafana/grafana"
	GrafanaVersion                      = "6.5.1"
	GrafanaServiceAccountName           = "grafana-serviceaccount"
	GrafanaServiceName                  = "grafana-service"
	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 (
	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) map[string]string

func GetIngressLabels

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

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 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 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 RandStringRunes

func RandStringRunes(n 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