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 20, 2024
1 parent 3a6f2d2 commit e78c628
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions orchestra/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.10.51
version: 2.10.52

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand All @@ -27,4 +27,4 @@ sources:
- https://github.com/OpenUnison/openunison-k8s
- https://github.com/OpenUnison/helm-charts
maintainers:
- name: mlbiam
- name: mlbiam
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 e78c628

Please sign in to comment.