blob: b0d6dd505b8afdf73ac5bf72dc4bea169ec95ff0 [file] [log] [blame]
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +04001apiVersion: v1
2kind: ServiceAccount
3metadata:
4 name: longhorn-service-account
5 namespace: {{ include "release_namespace" . }}
6 labels: {{- include "longhorn.labels" . | nindent 4 }}
7 {{- with .Values.serviceAccount.annotations }}
8 annotations:
9 {{- toYaml . | nindent 4 }}
10 {{- end }}
11---
12apiVersion: v1
13kind: ServiceAccount
14metadata:
Giorgi Lekveishvili193b7c02025-05-22 16:21:37 +040015 name: longhorn-ui-service-account
16 namespace: {{ include "release_namespace" . }}
17 labels: {{- include "longhorn.labels" . | nindent 4 }}
18 {{- with .Values.serviceAccount.annotations }}
19 annotations:
20 {{- toYaml . | nindent 4 }}
21 {{- end }}
22 {{- if .Values.openshift.enabled }}
23 {{- if .Values.openshift.ui.route }}
24 {{- if not .Values.serviceAccount.annotations }}
25 annotations:
26 {{- end }}
27 serviceaccounts.openshift.io/oauth-redirectreference.primary: '{"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"longhorn-ui"}}'
28 {{- end }}
29 {{- end }}
30---
31apiVersion: v1
32kind: ServiceAccount
33metadata:
Giorgi Lekveishvili4ec4c022024-08-17 15:09:24 +040034 name: longhorn-support-bundle
35 namespace: {{ include "release_namespace" . }}
36 labels: {{- include "longhorn.labels" . | nindent 4 }}
37 {{- with .Values.serviceAccount.annotations }}
38 annotations:
39 {{- toYaml . | nindent 4 }}
40 {{- end }}