-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not log an error during resource deletion
A notify script is being called by the galera library each time it transitions into another state (e.g. Connected -> Synced). The notify script uses a token generated by k8s to communicate with the API server and update the current endpoint for the galera service. When a galera resource is deleted, the token becomes invalid, so when the notify script is called, it cannot connect to the API server anymore. This is not needed as the resource is being deleted anyway, so handle that case to avoid logging unecessary errors.
- Loading branch information
Showing
1 changed file
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters