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

Binding to a ProvisionedService object swallows errors and proceeds with no logging #921

Closed
julian-hj opened this issue Feb 10, 2022 · 3 comments · Fixed by #952
Closed
Assignees
Labels
good first issue Good for newcomers

Comments

@julian-hj
Copy link

While attempting to use the ProvisionedService service binding, we found that the binding was missing from our build pod, with no log messages explaining why.

Eventually we figured out that the kpack admin role lacked access to our custom type, but to do that, we had to rebuild the controller with additional trace messages injected into the code.

We found that this method returns blank object if the target object cannot be found (for any reason) or if it doesn't fulfill the ProvisionedService duck type.

It's very easy to get the binding wrong--either because the roles aren't set up, or because the type is specified incorrectly, or because some controller hasn't yet set the status on the object, so it doesn't yet conform to the duck type. So it would be much better if there were log messages in the kpack controller logs and/or a status message on the Image object to help diagnose the issue.

@matthewmcnew
Copy link
Collaborator

@julian-hj Does the ProvisonedService define a ClusterRole with a label matching servicebinding.io/controller=true? If so, this PR should give the kpack controller rbac access.

@matthewmcnew
Copy link
Collaborator

Before this issue is closed we should add better error handling here.

@julian-hj
Copy link
Author

Hi @matthewmcnew yeah, that PR would definitely help some, but I think it would still be better to error & requeue the Image when the ProvisionedService can't be fully resolved, rather than proceeding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
4 participants