Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added readiness check to LDAP server pod #5064

Merged
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
9 changes: 8 additions & 1 deletion test/extended/fixtures/ldap/ldapserver-deploymentconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,14 @@
"securityContext": {
"capabilities": {},
"privileged": false
}
},
"readinessProbe": {
"exec": {
"command": ["ldapsearch", "-x", "-b", "dc=example,dc=com"]
},
"initialDelaySeconds": 5,
"timeoutSeconds": 1
}
}
],
"restartPolicy": "Always",
Expand Down
3 changes: 0 additions & 3 deletions test/extended/ldap_groups.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ server_ready_template=$(IFS=$""; echo "${server_ready_template[*]}") # re-format
# wait for LDAP server to be ready
wait_for_command 'oc get pods -l deploymentconfig=openldap-server --template="${server_ready_template}" | grep "ReadyTrue "' $((60*TIME_SEC))

# TODO(skuznets): readiness check is premature
sleep 10

oc login -u system:admin -n openldap


Expand Down