Skip to content

Commit

Permalink
fix(grafana): use relative dashboard path (#874)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Jun 7, 2024
1 parent 97860ec commit adf13ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ func NewCoreContainer(cr *model.CryostatInstance, specs *ServiceSpecs, imageTag
grafanaVars = append(grafanaVars,
corev1.EnvVar{
Name: "GRAFANA_DASHBOARD_EXT_URL",
Value: fmt.Sprintf("%s/grafana/", specs.AuthProxyURL.String()),
Value: "/grafana/",
},
corev1.EnvVar{
Name: "GRAFANA_DASHBOARD_URL",
Expand Down
17 changes: 4 additions & 13 deletions internal/test/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -1338,19 +1338,10 @@ func (r *TestResources) newNetworkEnvironmentVariables() []corev1.EnvVar {
Name: "GRAFANA_DASHBOARD_URL",
Value: "http://localhost:3000",
},
}
if r.ExternalTLS {
envs = append(envs,
corev1.EnvVar{
Name: "GRAFANA_DASHBOARD_EXT_URL",
Value: fmt.Sprintf("https://%s.example.com/grafana/", r.Name),
})
} else {
envs = append(envs,
corev1.EnvVar{
Name: "GRAFANA_DASHBOARD_EXT_URL",
Value: fmt.Sprintf("http://%s.example.com/grafana/", r.Name),
})
{
Name: "GRAFANA_DASHBOARD_EXT_URL",
Value: "/grafana/",
},
}
return envs
}
Expand Down

0 comments on commit adf13ce

Please sign in to comment.