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

Poll Interval(--poll) not configured in provider-argocd #212

Open
VadBuka opened this issue Nov 7, 2024 · 0 comments
Open

Poll Interval(--poll) not configured in provider-argocd #212

VadBuka opened this issue Nov 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@VadBuka
Copy link

VadBuka commented Nov 7, 2024

What happened?

I'm encountering an issue with the provider-argocd when creating applications in ArgoCD that use the Helmfile plugin. The error message "cannot create ArgoCD application" appears, and the logs indicate that templating was in progress without errors, but it gets aborted consistently after 60 seconds.

Interestingly, if I reduce the complexity of my Helmfile, everything works fine, likely because it completes faster than 60 seconds. This suggests there is a timeout requirement for creating resources within 60 seconds, which I need to extend.

How can we reproduce it?

  1. Create an ArgoCD application using the crossplane provider-argocd with a Helmfile plugin that takes longer than 60 seconds to process.
  2. Observe the error message "cannot create ArgoCD application" and the abortion of the templating process after 60 seconds.

What environment did it happen in?

  • Crossplane Provider ArgoCD version: xpkg.upbound.io/crossplane-contrib/provider-argocd:v0.7.0

Additional Details

Here's what I've tried so far:

  • Investigated all ArgoCD timeout settings and increased those I thought might be relevant, but this didn't resolve the issue.
  • Found a pollInterval flag with a default value of 1 minute. I increased it to 2 minutes and applied it via DeploymentRuntimeConfig, but the process still fails after 60 seconds.

Upon reviewing the code, I didn't find any instance of managed.WithPollInterval(o.PollInterval), which leads me to suspect that the pollInterval argument might not be set at all for the provider. In the AWS provider, the poll interval is set explicitly, as shown here: AWS provider poll interval example.

Thank you in advance for your help!

@VadBuka VadBuka added the bug Something isn't working label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant