-
Notifications
You must be signed in to change notification settings - Fork 33
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
Credential was deleted due to "Failed to update online status" #217
Comments
@JohnStarich How about using client-go RetryOnConflict https://github.com/kubernetes/client-go/blob/master/util/retry/util.go#L68-L105 to avoid deleteCredential when it is a conflict error? |
Agreed, deleting the resource should be avoided where we could do an update instead. I think we should also use If you would like to open a PR, we can review 👍 |
…us" IBM#217 Signed-off-by: qibobo <[email protected]>
…us" IBM#217 Signed-off-by: qibobo <[email protected]>
…us" IBM#217 Signed-off-by: qibobo <[email protected]>
Fixed in #226 and release on GitHub in v1.0.1 |
When there are multiple CRD consume the Binding CR and they will fetch the binding secret and save them in another secret. So when the following error occurred, the ICO will delete and regenerate IBM service credential, which make the consumers' secret stale.
I believe the update error happens inside https://github.com/IBM/cloud-operators/blob/master/controllers/binding_controller.go#L340.
How about using client-go RetryOnConflict https://github.com/kubernetes/client-go/blob/master/util/retry/util.go#L68-L105 to avoid deleteCredential when it is a conflict error?
The text was updated successfully, but these errors were encountered: