-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Give better error if config entry already created (#420)
Previously if the config entry already existed in Consul we'd give an error like: config entry managed in different datacenter: "other-dc" This worked well if the config entry had been created by a controller running in another Kube cluster, but if the user had created the config entry directly in Consul then it wouldn't have the datacenter annotation and so the error would actually read: config entry managed in different datacenter: "" Which was confusing. This change changes the error in that case to read: config entry already exists in Consul
- Loading branch information
Showing
3 changed files
with
58 additions
and
295 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
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
Oops, something went wrong.