This commit is contained in:
2024-01-24 15:48:08 +01:00
parent 55072f411f
commit 42fe75fe41
2 changed files with 25 additions and 26 deletions

View File

@@ -4,7 +4,6 @@ resource "kubernetes_config_map_v1" "config" {
namespace = var.namespace namespace = var.namespace
labels = local.common-labels labels = local.common-labels
} }
data = { data = {
"grafana.ini" = <<-EOF "grafana.ini" = <<-EOF
[analytics] [analytics]
@@ -25,7 +24,7 @@ root_url = 'https://${local.dns-name}/'
enabled = true enabled = true
client_id = '${module.oauth2.client_id}' client_id = '${module.oauth2.client_id}'
client_secret = '${module.oauth2.client_secret}' client_secret = '${module.oauth2.client_secret}'
auth_url = '${module.oauth2.sso_configuration_url}' auth_url = '${module.oauth2.sso_authorize}'
api_url = '${module.oauth2.sso_userinfo}' api_url = '${module.oauth2.sso_userinfo}'
EOF EOF
} }

View File

@@ -6,10 +6,20 @@ metadata:
name: grafana name: grafana
description: null description: null
options: options:
sub-domain: issuer:
default: grafana default: letsencrypt-prod
examples: examples:
- grafana - letsencrypt-prod
type: string
ingress-class:
default: traefik
examples:
- traefik
type: string
app-group:
default: monitor
examples:
- monitor
type: string type: string
images: images:
default: default:
@@ -108,15 +118,10 @@ options:
type: string type: string
type: object type: object
type: object type: object
ingress-class: sub-domain:
default: traefik default: grafana
examples: examples:
- traefik - grafana
type: string
admin_name:
default: grafana_admin
examples:
- grafana_admin
type: string type: string
volume: volume:
default: default:
@@ -137,25 +142,20 @@ options:
default: 10Gi default: 10Gi
type: string type: string
type: object type: object
domain:
default: your-company
examples:
- your-company
type: string
domain-name: domain-name:
default: your_company.com default: your_company.com
examples: examples:
- your_company.com - your_company.com
type: string type: string
app-group: admin_name:
default: monitor default: grafana_admin
examples: examples:
- monitor - grafana_admin
type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
domain:
default: your-company
examples:
- your-company
type: string type: string
dependencies: [] dependencies: []
providers: providers: