Skip to content

Commit 9cc2b7e

Browse files
authored
feat: remove optional private grafana (#1783)
1 parent 7f1f6d3 commit 9cc2b7e

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

helmfile.d/helmfile-60.teams.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ releases:
7979
fullnameOverride: {{ $teamId }}-po-grafana
8080
grafana.ini:
8181
"auth.generic_oauth":
82-
role_attribute_path: contains(groups[*], 'admin') && 'Admin' || contains(groups[*], 'platform-admin') && 'Admin' || contains(groups[*], 'team-{{ $teamId }}') && 'Editor'{{ if not ($team | get "managedMonitoring.private" false) }} || 'Viewer'{{- end }}
82+
role_attribute_path: >-
83+
contains(groups[*], 'admin') && 'Admin' ||
84+
contains(groups[*], 'platform-admin') && 'Admin' ||
85+
contains(groups[*], 'team-{{ $teamId }}') && 'Editor'
8386
server:
8487
root_url: https://grafana-{{ $teamId }}.{{ $domain }}
8588
analytics:

values-changes.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -312,3 +312,6 @@ changes:
312312
relocations:
313313
- 'oidc.adminGroupID': 'oidc.platformAdminGroupID'
314314
- 'oidc.teamAdminGroupID': 'oidc.allTeamsAdminGroupID'
315+
- version: 31
316+
deletions:
317+
- 'teamConfig.{team}.managedMonitoring.private'

values-schema.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -1141,9 +1141,6 @@ definitions:
11411141
alertmanager:
11421142
type: boolean
11431143
default: false
1144-
private:
1145-
type: boolean
1146-
default: false
11471144
networkPolicy:
11481145
ingressPrivate:
11491146
title: Enable filtering of ingress traffic inside the cluster

0 commit comments

Comments
 (0)