Documentation ¶
Index ¶
- Constants
- func AdminSecret(cr *v1alpha1.Grafana) *v12.Secret
- func AdminSecretReconciled(cr *v1alpha1.Grafana, currentState *v12.Secret) *v12.Secret
- func AdminSecretSelector(cr *v1alpha1.Grafana) client.ObjectKey
- func GetGrafanaPort(cr *v1alpha1.Grafana) int
- func GetHost(cr *v1alpha1.Grafana) string
- func GetIngressAnnotations(cr *v1alpha1.Grafana) map[string]string
- func GetIngressLabels(cr *v1alpha1.Grafana) map[string]string
- func GetIngressTargetPort(cr *v1alpha1.Grafana) intstr.IntOrString
- func GetPath(cr *v1alpha1.Grafana) string
- func GrafanaConfig(cr *v1alpha1.Grafana) (*v1.ConfigMap, error)
- func GrafanaConfigReconciled(cr *v1alpha1.Grafana, currentState *v1.ConfigMap) (*v1.ConfigMap, error)
- func GrafanaConfigSelector(cr *v1alpha1.Grafana) client.ObjectKey
- func GrafanaDatasourceConfigSelector(cr *v1alpha1.Grafana) client.ObjectKey
- func GrafanaDatasourcesConfig(cr *v1alpha1.Grafana) *v1.ConfigMap
- func GrafanaDeployment(cr *v1alpha1.Grafana, configHash, dsHash string) *v1.Deployment
- func GrafanaDeploymentReconciled(cr *v1alpha1.Grafana, currentState *v1.Deployment, ...) *v1.Deployment
- func GrafanaDeploymentSelector(cr *v1alpha1.Grafana) client.ObjectKey
- func GrafanaIngress(cr *v1alpha1.Grafana) *v1beta1.Ingress
- func GrafanaIngressReconciled(cr *v1alpha1.Grafana, currentState *v1beta1.Ingress) *v1beta1.Ingress
- func GrafanaIngressSelector(cr *v1alpha1.Grafana) client.ObjectKey
- func GrafanaRoute(cr *v1alpha1.Grafana) *v1.Route
- func GrafanaRouteReconciled(cr *v1alpha1.Grafana, currentState *v1.Route) *v1.Route
- func GrafanaRouteSelector(cr *v1alpha1.Grafana) client.ObjectKey
- func GrafanaService(cr *v1alpha1.Grafana) *v1.Service
- func GrafanaServiceAccount(cr *v1alpha1.Grafana) *v1.ServiceAccount
- func GrafanaServiceAccountReconciled(cr *v1alpha1.Grafana, currentState *v1.ServiceAccount) *v1.ServiceAccount
- func GrafanaServiceAccountSelector(cr *v1alpha1.Grafana) client.ObjectKey
- func GrafanaServiceReconciled(cr *v1alpha1.Grafana, currentState *v1.Service) *v1.Service
- func GrafanaServiceSelector(cr *v1alpha1.Grafana) client.ObjectKey
- func RandStringRunes(n int) string
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 AdminSecretReconciled ¶
func GetGrafanaPort ¶
func GetIngressTargetPort ¶
func GetIngressTargetPort(cr *v1alpha1.Grafana) intstr.IntOrString
func GrafanaConfigReconciled ¶
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 GrafanaRouteReconciled ¶
func GrafanaServiceAccount ¶
func GrafanaServiceAccount(cr *v1alpha1.Grafana) *v1.ServiceAccount
func GrafanaServiceAccountReconciled ¶
func GrafanaServiceAccountReconciled(cr *v1alpha1.Grafana, currentState *v1.ServiceAccount) *v1.ServiceAccount
func RandStringRunes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.