Skip to content

Commit

Permalink
Include admission controller
Browse files Browse the repository at this point in the history
  • Loading branch information
pbacsko committed Dec 4, 2024
1 parent a1fbddf commit 8c4e710
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.admissionPodSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.admissionController.hostNetwork }}
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
Expand Down Expand Up @@ -88,6 +92,10 @@ spec:
limits:
cpu: {{ .Values.admissionController.resources.limits.cpu }}
memory: {{ .Values.admissionController.resources.limits.memory }}
{{- with .Values.admissionContainerSecurityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
- name: admission-controller-secrets
mountPath: /run/secrets/webhook
Expand Down
2 changes: 2 additions & 0 deletions helm-charts/yunikorn/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,5 @@ podAnnotations: {}
podSecurityContext: {}
schedulerSecurityContext: {}
webSecurityContext: {}
admissionPodSecurityContext: {}
admissionContainerSecurityContext: {}

0 comments on commit 8c4e710

Please sign in to comment.