deploy: feat: set Grafana root_url to make oauth flow smoother (#344)
## Motivation and Context Ensures that the redirect url is set properly when logging in with Google ## How Has This Been Tested? In staging ## Breaking Changes None ## Types of changes <!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update
This commit is contained in:
parent
fbd385b6dd
commit
75645aff98
1 changed files with 4 additions and 2 deletions
|
|
@ -178,6 +178,7 @@ func deployGrafana(ctx *pulumi.Context, cluster *providers.ProviderInfo, ns *cor
|
|||
}
|
||||
|
||||
// Deploy Grafana
|
||||
grafanaHost := "grafana." + environment + ".registry.modelcontextprotocol.io"
|
||||
_, err = helm.NewChart(ctx, "grafana", helm.ChartArgs{
|
||||
Chart: pulumi.String("grafana"),
|
||||
Version: pulumi.String("9.4.4"),
|
||||
|
|
@ -195,6 +196,9 @@ func deployGrafana(ctx *pulumi.Context, cluster *providers.ProviderInfo, ns *cor
|
|||
},
|
||||
},
|
||||
"grafana.ini": pulumi.Map{
|
||||
"server": pulumi.Map{
|
||||
"root_url": pulumi.String("https://" + grafanaHost),
|
||||
},
|
||||
"auth": pulumi.Map{
|
||||
"disable_login_form": pulumi.Bool(true),
|
||||
},
|
||||
|
|
@ -276,8 +280,6 @@ func deployGrafana(ctx *pulumi.Context, cluster *providers.ProviderInfo, ns *cor
|
|||
}
|
||||
|
||||
// Create ingress for external access
|
||||
grafanaHost := "grafana." + environment + ".registry.modelcontextprotocol.io"
|
||||
|
||||
_, err = networkingv1.NewIngress(ctx, "grafana-ingress", &networkingv1.IngressArgs{
|
||||
Metadata: &metav1.ObjectMetaArgs{
|
||||
Name: pulumi.String("grafana-ingress"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue