Skip to content

Commit

Permalink
Merge pull request #120 from pharaujo/fix_116
Browse files Browse the repository at this point in the history
Fix secrets stringData generation
  • Loading branch information
brancz authored Sep 6, 2021
2 parents 405638a + 96ee9c6 commit c3b14b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions grafana/grafana.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@
},
type: 'Opaque',
stringData: {
'grafana.ini': std.encodeUTF8(std.manifestIni($._config.grafana.config)),
'grafana.ini': std.manifestIni($._config.grafana.config),
} +
if $._config.grafana.ldap != null then { 'ldap.toml': std.encodeUTF8($._config.grafana.ldap) } else {},
if $._config.grafana.ldap != null then { 'ldap.toml': $._config.grafana.ldap } else {},
},
dashboardDefinitions:
[
Expand Down Expand Up @@ -171,10 +171,10 @@
labels: $._config.grafana.labels,
},
type: 'Opaque',
stringData: { 'datasources.yaml': std.encodeUTF8(std.manifestJsonEx({
stringData: { 'datasources.yaml': std.manifestJsonEx({
apiVersion: 1,
datasources: $._config.grafana.datasources,
}, ' ')) },
}, ' ') },
},
service:
{
Expand Down

0 comments on commit c3b14b2

Please sign in to comment.