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

Ability to wait on arbitrary status value #66

Closed
dannystaple opened this issue Apr 16, 2021 · 0 comments · Fixed by #105
Closed

Ability to wait on arbitrary status value #66

dannystaple opened this issue Apr 16, 2021 · 0 comments · Fixed by #105
Assignees
Labels
type/enhancement New feature or request

Comments

@dannystaple
Copy link

SUMMARY

Not all k8s resources implement the conditions in their status. However it may still be necessary to wait on them being ready. Since operations in K8s are asynchronous, an item later depending on this may fail.

A good example is the kind Service. This does not implement conditions as shown in kubernetes/kubernetes#80828. My ansible may need to wait for this service to have acquired an External IP address before using in a further task - perhaps feeding that IP into a network infrastructure rule (firewall, DNS or other).

A similar ticket exists for the Kubectl command - kubernetes/kubernetes#83094 - waiting for an arbitrary json path.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

module k8s

ADDITIONAL INFORMATION
- name: Deploy the dashboard service (lb)
  community.kubernetes.k8s:
    <<: *k8s_auth
    template: dash-service.yaml
    wait: yes
    wait_for: .status.loadBalancer.ingress[*].ip

Something like that could be waiting for an ingress IP to appear. Perhaps inspiration could come from kubernetes/kubernetes#83094 (comment).

@gravesm gravesm transferred this issue from ansible-collections/community.kubernetes Apr 19, 2021
@abikouo abikouo added the type/enhancement New feature or request label Apr 22, 2021
@abikouo abikouo self-assigned this Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants