Skip to content

Commit

Permalink
Merge pull request #126 from OmegaVVeapon/configurable-test-ready
Browse files Browse the repository at this point in the history
Configurable test ready
  • Loading branch information
inercia authored Sep 22, 2020
2 parents d082fc2 + 61f5806 commit 75ec77b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/tests/test-ready.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if not .Values.daemonSet }}
{{- if and (.Values.test.enabled) (not .Values.daemonSet) }}
apiVersion: v1
kind: Pod
metadata:
Expand All @@ -17,7 +17,7 @@ metadata:
spec:
containers:
- name: wget
image: busybox
image: {{ .Values.test.image | default "busybox" }}
command: ['wget']
args: ['{{ include "ambassador.fullname" . }}:{{ include "ambassador.servicePort" . }}/ambassador/v0/check_ready']
restartPolicy: Never
Expand Down
6 changes: 6 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ namespaceOverride: ""
replicaCount: 3
daemonSet: false

# This will enable the test-ready Pod (https://github.com/datawire/ambassador-chart/blob/master/templates/tests/test-ready.yaml).
# It will spawn a busybox container to call Ambassador's check_ready endpoint to validate it is working correctly.
test:
enabled: true
image: busybox

# Enable autoscaling using HorizontalPodAutoscaler
# daemonSet: true, autoscaling will be disabled
autoscaling:
Expand Down

0 comments on commit 75ec77b

Please sign in to comment.