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, existing map[string]string) map[string]string
- func GetIngressClassName(cr *v1alpha1.Grafana) *string
- func GetIngressLabels(cr *v1alpha1.Grafana) map[string]string
- func GetIngressPathType(cr *v1alpha1.Grafana) *v1beta1.PathType
- 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 GrafanaDataPVC(cr *v1alpha1.Grafana) *corev1.PersistentVolumeClaim
- func GrafanaDataStorageSelector(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 GrafanaPVCReconciled(cr *v1alpha1.Grafana, currentState *corev1.PersistentVolumeClaim) *corev1.PersistentVolumeClaim
- 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 MergeAnnotations(requested map[string]string, existing map[string]string) map[string]string
- func RandStringRunes(s int) string
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 AdminSecretReconciled ¶
func GetGrafanaPort ¶
func GetIngressAnnotations ¶
func GetIngressClassName ¶ added in v3.10.0
func GetIngressPathType ¶ added in v3.10.0
func GetIngressTargetPort ¶
func GetIngressTargetPort(cr *v1alpha1.Grafana) intstr.IntOrString
func GrafanaConfigReconciled ¶
func GrafanaDataPVC ¶ added in v3.4.0
func GrafanaDataPVC(cr *v1alpha1.Grafana) *corev1.PersistentVolumeClaim
func GrafanaDataStorageSelector ¶ added in v3.4.0
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 GrafanaPVCReconciled ¶ added in v3.4.0
func GrafanaPVCReconciled(cr *v1alpha1.Grafana, currentState *corev1.PersistentVolumeClaim) *corev1.PersistentVolumeClaim
func GrafanaRouteReconciled ¶
func GrafanaServiceAccount ¶
func GrafanaServiceAccount(cr *v1alpha1.Grafana) *v1.ServiceAccount
func GrafanaServiceAccountReconciled ¶
func GrafanaServiceAccountReconciled(cr *v1alpha1.Grafana, currentState *v1.ServiceAccount) *v1.ServiceAccount
func MergeAnnotations ¶ added in v3.1.0
func RandStringRunes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.