Skip to content

Commit

Permalink
allow to set resources for precheck pod
Browse files Browse the repository at this point in the history
  • Loading branch information
karbyshevds committed Jun 19, 2024
1 parent 3a6f2d2 commit 40e8581
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion orchestra/templates/tests/precheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ spec:
image: {{ .Values.openunison.precheck.image | default "ghcr.io/tremolosecurity/python3:1.0.0" }}
imagePullPolicy: {{ .Values.openunison.imagePullPolicy }}
command: ["python", "/scripts/check-hosts.py"]
{{ if .Values.precheck.resources }}
resources:
{{- toYaml .Values.precheck.resources | nindent 8 }}
{{ end }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down Expand Up @@ -202,4 +206,4 @@ spec:
configMap:
name: check-hosts-{{ .Release.Name }}
- name: tmp-pad
emptyDir: {}
emptyDir: {}
4 changes: 3 additions & 1 deletion orchestra/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ network:
entrypoints:
plaintext: web
tls: websecure


precheck:
resources: {}

cert_template:
ou: "Kubernetes"
Expand Down

0 comments on commit 40e8581

Please sign in to comment.