-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Allow user to specify a custom condition when waiting #52185
Conversation
This is pretty nice. I was skeptical, as my feelings are that you could easily do this with Does this need to work with nested keys? (I have no idea if it needs to, looks like most status keys are top level) |
In its current state, this will only work with conditions, not top-level fields (I focused on conditions because they're a bit hellish to parse, especially in Ansible). The |
ping @willthames, look good to you? I'd like to get this in for 2.8 if possible |
shipit |
bot_status |
Componentslib/ansible/module_utils/k8s/raw.py lib/ansible/modules/clustering/k8s/k8s.py test/integration/targets/k8s/playbooks/roles/k8s/tasks/waiter.yml Metadatawaiting_on: maintainer |
Thanks all, merged into As long as |
SUMMARY
This allows users to specify a custom condition to wait for when using the k8s module. This provides a similar functionality to the
kubectl wait
command. This is one option, I'm working on another option right now which is a specifyk8s_wait
module that allows some more flexibility and keeps the k8s module slimmer.ISSUE TYPE
COMPONENT NAME
k8s