Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# IAG5 Helm Chart

This chart is designed to enable the easy and rapid deployment of IAG5 environments and
architectures.
architectures. Requires Kubernetes version `1.31` or greater and Helm version `v3.15.0`.

## IAG5 Architectures

Expand Down
2 changes: 1 addition & 1 deletion charts/iag5/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,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: 1.0.2
version: 1.0.3

# 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 Down
4 changes: 3 additions & 1 deletion charts/iag5/templates/deployment-runner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,10 @@ spec:
readinessProbe:
{{- toYaml $.Values.readinessProbe.settings | nindent 12 }}
{{- end }}
{{- if $.Values.resources.enabled }}
resources:
{{- toYaml $.Values.resources | nindent 12 }}
{{- toYaml $.Values.resources.runners | nindent 12 }}
{{- end }}
volumeMounts:
- name: gateway-secrets-volume
mountPath: /etc/gateway/keys/encryption.key
Expand Down
8 changes: 7 additions & 1 deletion charts/iag5/templates/deployment-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,14 @@ spec:
readinessProbe:
{{- toYaml .Values.readinessProbe.settings | nindent 12 }}
{{- end }}
{{- if .Values.resources.enabled }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if $distributedExecution }}
{{- toYaml .Values.resources.servers | nindent 12 }}
{{- else }}
{{- toYaml .Values.resources.runners | nindent 12 }}
{{- end }}
{{- end }}
volumeMounts:
- name: gateway-secrets-volume
mountPath: /etc/gateway/keys/encryption.key
Expand Down
15 changes: 4 additions & 11 deletions charts/iag5/tests/deployment-runner_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -481,26 +481,19 @@ tests:
- it: should configure resources when specified
set:
runnerSettings.replicaCount: 1
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 512Mi
asserts:
- equal:
path: spec.template.spec.containers[0].resources.requests.cpu
value: 100m
value: 1000m
- equal:
path: spec.template.spec.containers[0].resources.requests.memory
value: 128Mi
value: 256Mi
- equal:
path: spec.template.spec.containers[0].resources.limits.cpu
value: 500m
value: "4"
- equal:
path: spec.template.spec.containers[0].resources.limits.memory
value: 512Mi
value: "8Gi"

- it: should handle runnerSettings.env as empty dict when not defined
set:
Expand Down
15 changes: 4 additions & 11 deletions charts/iag5/tests/deployment-server_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -460,26 +460,19 @@ tests:
- it: should configure resources when specified
set:
serverSettings.replicaCount: 1
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 500m
memory: 512Mi
asserts:
- equal:
path: spec.template.spec.containers[0].resources.requests.cpu
value: 100m
value: 1000m
- equal:
path: spec.template.spec.containers[0].resources.requests.memory
value: 128Mi
value: 256Mi
- equal:
path: spec.template.spec.containers[0].resources.limits.cpu
value: 500m
value: "1"
- equal:
path: spec.template.spec.containers[0].resources.limits.memory
value: 512Mi
value: 2Gi

- it: should have the expected standard annotations
set:
Expand Down
17 changes: 16 additions & 1 deletion charts/iag5/tests/test-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,22 @@ certificate:
postalCodes:
- "30309"

resources: {}
resources:
enabled: true
runners:
limits:
cpu: "4"
memory: "8Gi"
requests:
cpu: "1000m"
memory: "256Mi"
servers:
limits:
cpu: "1"
memory: "2Gi"
requests:
cpu: "1000m"
memory: "256Mi"

livenessProbe:
enabled: true
Expand Down
17 changes: 16 additions & 1 deletion charts/iag5/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,22 @@ certificate:
postalCodes:
- "30309"

resources: {}
resources:
enabled: true
runners:
limits:
cpu: "4"
memory: "8Gi"
requests:
cpu: "1000m"
memory: "256Mi"
servers:
limits:
cpu: "1"
memory: "2Gi"
requests:
cpu: "1000m"
memory: "256Mi"

livenessProbe:
enabled: true
Expand Down