| Giorgi Lekveishvili | 4ec4c02 | 2024-08-17 15:09:24 +0400 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: ServiceAccount |
| 3 | metadata: |
| 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 | --- |
| 12 | apiVersion: v1 |
| 13 | kind: ServiceAccount |
| 14 | metadata: |
| Giorgi Lekveishvili | 193b7c0 | 2025-05-22 16:21:37 +0400 | [diff] [blame^] | 15 | 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 | --- |
| 31 | apiVersion: v1 |
| 32 | kind: ServiceAccount |
| 33 | metadata: |
| Giorgi Lekveishvili | 4ec4c02 | 2024-08-17 15:09:24 +0400 | [diff] [blame] | 34 | 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 }} |