-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for new agent readiness probe
starting with agent version 12.17.0 there is a new readiness probe available. this change adds support for that new readiness probe while also supporting customers who are still deploying older agent versions.
- Loading branch information
1 parent
994d6bc
commit 01c5226
Showing
6 changed files
with
139 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
suite: Test the Readiness Probe Configuration | ||
templates: | ||
- templates/daemonset.yaml | ||
- templates/deployment.yaml | ||
tests: | ||
- it: "[DaemonSet] Readiness Probe (agent > 12.17.0)" | ||
set: | ||
image: | ||
tag: 12.17.1 | ||
asserts: | ||
- equal: | ||
path: spec.template.spec.containers[0].readinessProbe | ||
value: | ||
httpGet: | ||
path: /healthz | ||
port: 24483 | ||
initialDelaySeconds: 90 | ||
periodDelaySeconds: 3 | ||
template: templates/daemonset.yaml | ||
- it: "[DaemonSet] Readiness Probe (agent == 12.17.0)" | ||
set: | ||
image: | ||
tag: 12.17.0 | ||
asserts: | ||
- equal: | ||
path: spec.template.spec.containers[0].readinessProbe | ||
value: | ||
httpGet: | ||
path: /healthz | ||
port: 24483 | ||
initialDelaySeconds: 90 | ||
periodDelaySeconds: 3 | ||
template: templates/daemonset.yaml | ||
- it: "[DaemonSet] Readiness Probe (agent < 12.17.0)" | ||
set: | ||
image: | ||
tag: 12.16.3 | ||
asserts: | ||
- equal: | ||
path: spec.template.spec.containers[0].readinessProbe | ||
value: | ||
exec: | ||
command: | ||
- test | ||
- -e | ||
- /opt/draios/logs/running | ||
initialDelaySeconds: 90 | ||
periodDelaySeconds: 3 | ||
template: templates/daemonset.yaml | ||
- it: "[DelegatedAgentDeployment] Readiness Probe (agent > 12.17.0)" | ||
set: | ||
delegatedAgentDeployment: | ||
enabled: true | ||
image: | ||
tag: 12.17.1 | ||
asserts: | ||
- equal: | ||
path: spec.template.spec.containers[0].readinessProbe | ||
value: | ||
httpGet: | ||
path: /healthz | ||
port: 24483 | ||
initialDelaySeconds: 90 | ||
periodDelaySeconds: 3 | ||
- it: "[DelegatedAgentDeployment] Readiness Probe (agent == 12.17.0)" | ||
set: | ||
delegatedAgentDeployment: | ||
enabled: true | ||
image: | ||
tag: 12.17.0 | ||
asserts: | ||
- equal: | ||
path: spec.template.spec.containers[0].readinessProbe | ||
value: | ||
httpGet: | ||
path: /healthz | ||
port: 24483 | ||
initialDelaySeconds: 90 | ||
periodDelaySeconds: 3 | ||
- it: "[DelegatedAgentDeployment] Readiness Probe (agent < 12.17.0)" | ||
set: | ||
delegatedAgentDeployment: | ||
enabled: true | ||
image: | ||
tag: 12.16.3 | ||
asserts: | ||
- equal: | ||
path: spec.template.spec.containers[0].readinessProbe | ||
value: | ||
exec: | ||
command: | ||
- test | ||
- -e | ||
- /opt/draios/logs/running | ||
initialDelaySeconds: 90 | ||
periodDelaySeconds: 3 | ||
- it: Test setting probe delays | ||
set: | ||
daemonset: | ||
probes: | ||
initialDelay: 5 | ||
periodDelay: 3 | ||
delegatedAgentDeployment: | ||
deployment: | ||
probes: | ||
initialDelay: 5 | ||
periodDelay: 3 | ||
enabled: true | ||
asserts: | ||
- equal: | ||
path: spec.template.spec.containers[0].readinessProbe.initialDelaySeconds | ||
value: 5 | ||
- equal: | ||
path: spec.template.spec.containers[0].readinessProbe.periodDelaySeconds | ||
value: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters