fix
This commit is contained in:
@@ -1,13 +1,12 @@
|
|||||||
resource "kubectl_manifest" "config" {
|
resource "kubernetes_config_map_v1" "config" {
|
||||||
yaml_body = <<-EOF
|
metadata {
|
||||||
apiVersion: v1
|
name = "grafana"
|
||||||
kind: ConfigMap
|
namespace = var.namespace
|
||||||
metadata:
|
labels = local.common-labels
|
||||||
name: grafana
|
}
|
||||||
namespace: "${var.namespace}"
|
|
||||||
labels: ${jsonencode(local.common-labels)}
|
data = {
|
||||||
data:
|
"grafana.ini" = <<-EOF
|
||||||
grafana.ini: |
|
|
||||||
[analytics]
|
[analytics]
|
||||||
check_for_updates = true
|
check_for_updates = true
|
||||||
[grafana_net]
|
[grafana_net]
|
||||||
@@ -30,3 +29,4 @@ resource "kubectl_manifest" "config" {
|
|||||||
api_url = '${module.oauth2.sso_userinfo}'
|
api_url = '${module.oauth2.sso_userinfo}'
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -6,31 +6,6 @@ metadata:
|
|||||||
name: grafana
|
name: grafana
|
||||||
description: null
|
description: null
|
||||||
options:
|
options:
|
||||||
domain-name:
|
|
||||||
default: your_company.com
|
|
||||||
examples:
|
|
||||||
- your_company.com
|
|
||||||
type: string
|
|
||||||
issuer:
|
|
||||||
default: letsencrypt-prod
|
|
||||||
examples:
|
|
||||||
- letsencrypt-prod
|
|
||||||
type: string
|
|
||||||
app-group:
|
|
||||||
default: monitor
|
|
||||||
examples:
|
|
||||||
- monitor
|
|
||||||
type: string
|
|
||||||
ingress-class:
|
|
||||||
default: traefik
|
|
||||||
examples:
|
|
||||||
- traefik
|
|
||||||
type: string
|
|
||||||
domain:
|
|
||||||
default: your-company
|
|
||||||
examples:
|
|
||||||
- your-company
|
|
||||||
type: string
|
|
||||||
sub-domain:
|
sub-domain:
|
||||||
default: grafana
|
default: grafana
|
||||||
examples:
|
examples:
|
||||||
@@ -133,6 +108,16 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
|
ingress-class:
|
||||||
|
default: traefik
|
||||||
|
examples:
|
||||||
|
- traefik
|
||||||
|
type: string
|
||||||
|
admin_name:
|
||||||
|
default: grafana_admin
|
||||||
|
examples:
|
||||||
|
- grafana_admin
|
||||||
|
type: string
|
||||||
volume:
|
volume:
|
||||||
default:
|
default:
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
@@ -152,10 +137,25 @@ options:
|
|||||||
default: 10Gi
|
default: 10Gi
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
admin_name:
|
domain-name:
|
||||||
default: grafana_admin
|
default: your_company.com
|
||||||
examples:
|
examples:
|
||||||
- grafana_admin
|
- your_company.com
|
||||||
|
type: string
|
||||||
|
app-group:
|
||||||
|
default: monitor
|
||||||
|
examples:
|
||||||
|
- monitor
|
||||||
|
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user