-
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(agent): add support for new agent readiness probe (#1437)
- Loading branch information
1 parent
05748e0
commit 5ec0270
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.18.0)" | ||
set: | ||
image: | ||
tag: 12.18.1 | ||
asserts: | ||
- equal: | ||
path: spec.template.spec.containers[0].readinessProbe | ||
value: | ||
httpGet: | ||
path: /healthz | ||
port: 24483 | ||
initialDelaySeconds: 90 | ||
periodSeconds: 3 | ||
template: templates/daemonset.yaml | ||
- it: "[DaemonSet] Readiness Probe (agent == 12.18.0)" | ||
set: | ||
image: | ||
tag: 12.18.0 | ||
asserts: | ||
- equal: | ||
path: spec.template.spec.containers[0].readinessProbe | ||
value: | ||
httpGet: | ||
path: /healthz | ||
port: 24483 | ||
initialDelaySeconds: 90 | ||
periodSeconds: 3 | ||
template: templates/daemonset.yaml | ||
- it: "[DaemonSet] Readiness Probe (agent < 12.18.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 | ||
periodSeconds: 3 | ||
template: templates/daemonset.yaml | ||
- it: "[DelegatedAgentDeployment] Readiness Probe (agent > 12.18.0)" | ||
set: | ||
delegatedAgentDeployment: | ||
enabled: true | ||
image: | ||
tag: 12.18.1 | ||
asserts: | ||
- equal: | ||
path: spec.template.spec.containers[0].readinessProbe | ||
value: | ||
httpGet: | ||
path: /healthz | ||
port: 24483 | ||
initialDelaySeconds: 90 | ||
periodSeconds: 3 | ||
- it: "[DelegatedAgentDeployment] Readiness Probe (agent == 12.18.0)" | ||
set: | ||
delegatedAgentDeployment: | ||
enabled: true | ||
image: | ||
tag: 12.18.0 | ||
asserts: | ||
- equal: | ||
path: spec.template.spec.containers[0].readinessProbe | ||
value: | ||
httpGet: | ||
path: /healthz | ||
port: 24483 | ||
initialDelaySeconds: 90 | ||
periodSeconds: 3 | ||
- it: "[DelegatedAgentDeployment] Readiness Probe (agent < 12.18.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 | ||
periodSeconds: 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.periodSeconds | ||
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