Skip to content

Commit

Permalink
fix # cannot be included in grafana password
Browse files Browse the repository at this point in the history
  • Loading branch information
kaaaaaaang committed Oct 31, 2024
1 parent 775384c commit 058ce26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion embed/templates/config/grafana.ini.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ check_for_updates = true
admin_user = {{.Username}}

# default admin password, can be changed before first start of grafana, or in profile settings
admin_password = {{.Password}}
admin_password = `{{.Password}}`

# used for signing
;secret_key = SW2YcwTIb9zpOOhoPsMm
Expand Down
4 changes: 2 additions & 2 deletions pkg/cluster/spec/grafana_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func TestMergeAdditionalGrafanaConf(t *testing.T) {
;enabled = false
;host = localhost:25
;user =
;password =
password = ` + "`1#2`" + `
;cert_file =
;key_file =
;skip_verify = false
Expand Down Expand Up @@ -118,7 +118,7 @@ enabled = true
; enabled = false
; host = localhost:25
; user =
; password =
password = ` + "`1#2`" + `
; cert_file =
; key_file =
; skip_verify = false
Expand Down

0 comments on commit 058ce26

Please sign in to comment.