Skip to content

Grafana - change the default security Admin password for admin in jsonnet #631

Answered by brancz
rupadhya1 asked this question in General
Discussion options

You must be logged in to vote

(I converted the issue to a discussion as I feel that format works better for these types of questions)

You were super close, the only thing is that the grafana object you specified is under _config, whereas it should be a sibling. I tend to write jsonnet code like this rather by iterating over all containers, even if there may currently only be one (you never know what happens in the future 🙂 ). This worked for me and is in the style how I would write it:

local kp = (import 'kube-prometheus/kube-prometheus.libsonnet') +
           {
             _config+:: {
               namespace: 'monitoring',
             },

             grafana+:: {
               deployment+: {
                 s…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by rupadhya1
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #631 on August 07, 2020 09:45.