rancher-istio/rancher-tracing CHART: moved service account out of psp condition

pull/2495/head
vardhaman 2023-03-21 16:19:59 +05:30
parent f89f570f68
commit 797f948589
3 changed files with 10 additions and 11 deletions

View File

@ -72,8 +72,8 @@ spec:
securityContext:
runAsNonRoot: true
runAsUser: 1000
serviceAccountName: {{ include "tracing.fullname" . }}
{{- end }}
serviceAccountName: {{ include "tracing.fullname" . }}
nodeSelector: {{ include "linux-node-selector" . | nindent 8 }}
{{- if .Values.nodeSelector }}
{{ toYaml .Values.nodeSelector | indent 8 }}

View File

@ -1,14 +1,4 @@
{{- if .Values.global.cattle.psp.enabled }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "tracing.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
app: {{ .Values.provider }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:

View File

@ -0,0 +1,9 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "tracing.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
app: {{ .Values.provider }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}