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

Infinite reconcile loop when injecting multiple service bindings into a single application #66

Closed
arturdzm opened this issue Sep 24, 2020 · 6 comments · Fixed by #75
Closed

Comments

@arturdzm
Copy link

When creating 2 separate ServiceBinding resources with different service selectors but pointing to same application (regular Deployment) the deployment gets into infinite reconcile loop.

Each version of deployment has only info from one of ServiceBinding CRs and it keeps switching
It seems that mounted volumes order keeps changing as well as env keeps being added and removed and each version of Deployment

@scothis
Copy link
Contributor

scothis commented Sep 25, 2020

I think what's happening is that when we apply the binding, we first remove the existing binding to restore the resource to a clean state, and then add the binding back in. The cleanup is too aggressive in removing state that isn't specifically for the binding being reconciled. That or there's an upstream bug in knative/pkg.

@arturdzm
Copy link
Author

From what I looked at, I think the psbinding package assumes 1 binding to 1 PodSpec mapping.
It works with multiple CRDs like GithubBinding TwitterBinding, etc but not when there is more the one of same type

@scothis
Copy link
Contributor

scothis commented Oct 5, 2020

@arturdzm can you take #75 for a spin to see if it helps your use case? If it does I'll cleanup the TODOs and get it merged.

@scothis
Copy link
Contributor

scothis commented Oct 7, 2020

With #75 I no longer see this behavior. Please reopen with a test case if you still see service bindings clashing

@scothis
Copy link
Contributor

scothis commented Oct 8, 2020

There's still an upstream issue, tracking in #78 and knative/pkg#1786

@arturdzm
Copy link
Author

Thanks, works for me as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants