Skip to content

Commit

Permalink
feat: configure scheduler on controller-manager and audit pods
Browse files Browse the repository at this point in the history
Signed-off-by: Gergely Soti <[email protected]>
  • Loading branch information
gergelysotidm committed Sep 24, 2024
1 parent 0a4851a commit 5a375e5
Show file tree
Hide file tree
Showing 8 changed files with 336 additions and 326 deletions.
2 changes: 2 additions & 0 deletions cmd/build/helmify/kustomize-for-helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ spec:
hostNetwork: HELMSUBST_DEPLOYMENT_CONTROLLER_MANAGER_HOST_NETWORK
dnsPolicy: HELMSUBST_DEPLOYMENT_CONTROLLER_MANAGER_DNS_POLICY
serviceAccountName: HELMSUBST_DEPLOYMENT_CONTROLLER_MANAGER_SERVICE_ACCOUNT_NAME
schedulerName: HELMSUBST_DEPLOYMENT_SCHEDULER_NAME
---
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -228,6 +229,7 @@ spec:
hostNetwork: HELMSUBST_DEPLOYMENT_AUDIT_HOST_NETWORK
dnsPolicy: HELMSUBST_DEPLOYMENT_AUDIT_DNS_POLICY
serviceAccountName: HELMSUBST_DEPLOYMENT_AUDIT_SERVICE_ACCOUNT_NAME
schedulerName: HELMSUBST_DEPLOYMENT_SCHEDULER_NAME
---
apiVersion: v1
kind: Secret
Expand Down
2 changes: 2 additions & 0 deletions cmd/build/helmify/replacements.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package main

var replacements = map[string]string{
`HELMSUBST_DEPLOYMENT_SCHEDULER_NAME`: `{{ .Values.schedulerName }}`,

`HELMSUBST_DEPLOYMENT_CONTROLLER_MANAGER_CONTAINER_RESOURCES: ""`: `{{- toYaml .Values.controllerManager.resources | nindent 10 }}`,

`HELMSUBST_DEPLOYMENT_AUDIT_CONTAINER_RESOURCES: ""`: `{{- toYaml .Values.audit.resources | nindent 10 }}`,
Expand Down
327 changes: 164 additions & 163 deletions cmd/build/helmify/static/README.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions cmd/build/helmify/static/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -303,3 +303,4 @@ externalCertInjection:
serviceAccount:
gatekeeperAdmin:
create: true
schedulerName: default-scheduler
327 changes: 164 additions & 163 deletions manifest_staging/charts/gatekeeper/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ spec:
{{- if .Values.audit.priorityClassName }}
priorityClassName: {{ .Values.audit.priorityClassName }}
{{- end }}
schedulerName: {{ .Values.schedulerName }}
securityContext:
{{- toYaml .Values.audit.podSecurityContext | nindent 8 }}
serviceAccountName: {{ .Values.audit.serviceAccount.name }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ spec:
{{- if .Values.controllerManager.priorityClassName }}
priorityClassName: {{ .Values.controllerManager.priorityClassName }}
{{- end }}
schedulerName: {{ .Values.schedulerName }}
securityContext:
{{- toYaml .Values.controllerManager.podSecurityContext | nindent 8 }}
serviceAccountName: {{ .Values.controllerManager.serviceAccount.name }}
Expand Down
1 change: 1 addition & 0 deletions manifest_staging/charts/gatekeeper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -303,3 +303,4 @@ externalCertInjection:
serviceAccount:
gatekeeperAdmin:
create: true
schedulerName: default-scheduler

0 comments on commit 5a375e5

Please sign in to comment.