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:
adam jones 2025-09-02 18:46:11 +01:00 • committed by GitHub
commit 75645aff98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"),