-
Notifications
You must be signed in to change notification settings - Fork 5
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
Wait if the namespace we are monitoring doesn't exist (yet) #38
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
Ah hmmm, this makes sense in a way, but it would introduce some complexity that could be complicated to handle. Consider that we assume no namespace yet exists, then perhaps the deployment resources hasn't been created either. When the namespace is created, perhaps this action completes directly by inspecting the super-fresh namespace and finding no resources. So, the logic to wait for a namespace - should it be "wait for a namespace, and if it doesn't exist during the first check, wait X seconds more after its creation to ensure the various deployments etc has got time to be registered with the k8s api-server"? Can you describe the situation you are in when you end up with the possibility of needing to wait for a k8s namespace to be created? I've only used this action following running a |
Thank you for the prompt response @consideRatio 🙌 I see your point and unfortunately I don’t think there is a silver bullet. To fully solve this, we’ll probably need to extend the user input to provide a list of resources we should wait for. I don’t think we can archive the above by relying only on the ds, deploy, sts conditions we have now.
The use case is to support scenarios where the As workaround, adding something like as pre-step before
might work, but that’s far from being ideal. Looking forward to hear your feedback. Thank you! |
First of all, thank you for this GitHub action! 👏
Bug description
Maybe this is by design but the action doesn't seems to wait if the namespace we are monitoring doesn't exist
Expected behaviour
The action should wait till the namespace and its resources are ready.
Actual behaviour
The action doesn't wait if the namespace doesn't exist
Your personal set up
GitHub action config:
GitHub action logs:
The text was updated successfully, but these errors were encountered: