2019-05-08 17:21:58 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
name: longhorn-service-account
|
2020-12-03 15:02:28 +00:00
|
|
|
namespace: {{ include "release_namespace" . }}
|
2020-07-08 23:56:34 +00:00
|
|
|
labels: {{- include "longhorn.labels" . | nindent 4 }}
|
2021-12-17 16:00:35 +00:00
|
|
|
{{- with .Values.serviceAccount.annotations }}
|
2022-11-21 08:04:00 +00:00
|
|
|
annotations:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
2023-08-24 11:12:38 +00:00
|
|
|
metadata:
|
|
|
|
name: longhorn-ui-service-account
|
|
|
|
namespace: {{ include "release_namespace" . }}
|
|
|
|
labels: {{- include "longhorn.labels" . | nindent 4 }}
|
|
|
|
{{- with .Values.serviceAccount.annotations }}
|
|
|
|
annotations:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if .Values.openshift.enabled }}
|
|
|
|
{{- if .Values.openshift.ui.route }}
|
|
|
|
{{- if not .Values.serviceAccount.annotations }}
|
|
|
|
annotations:
|
|
|
|
{{- end }}
|
|
|
|
serviceaccounts.openshift.io/oauth-redirectreference.primary: '{"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"longhorn-ui"}}'
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
2022-11-21 08:04:00 +00:00
|
|
|
metadata:
|
|
|
|
name: longhorn-support-bundle
|
|
|
|
namespace: {{ include "release_namespace" . }}
|
|
|
|
labels: {{- include "longhorn.labels" . | nindent 4 }}
|
|
|
|
{{- with .Values.serviceAccount.annotations }}
|
2021-12-17 16:00:35 +00:00
|
|
|
annotations:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|