-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(webhook): revert runtime decision of service cidr
It's overkill to retrieve the cluster's service CIDR in runtime since it's rarely changed and almost the same in every Harvester deployment. Revert the relevant code and let users to input the service CIDR string from the webhook's command line argument to remain flexibility. The default value is still `10.53.0.0/16`. Signed-off-by: Zespre Chang <zespre.chang@suse.com>
- Loading branch information
Showing
6 changed files
with
81 additions
and
102 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package webhook | ||
|
||
const ( | ||
CreateErr = "could not create %s %s/%s because %w" | ||
UpdateErr = "could not update %s %s/%s because %w" | ||
DeleteErr = "could not delete %s %s/%s because %w" | ||
CreateErr = "cannot create %s %s/%s because %w" | ||
UpdateErr = "cannot update %s %s/%s because %w" | ||
DeleteErr = "cannot delete %s %s/%s because %w" | ||
) |
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.