generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Webhook: validate the combination of port, protocol, and hostname are…
… unique for each listener. (#1457) * Add validateHostnameProtocolPort to validate that the combination of port, protocol, and name are unique for each listener. Signed-off-by: Huang Xin <xin1.huang@intel.com> * Fix format. Signed-off-by: Huang Xin <xin1.huang@intel.com> * Fix format. Signed-off-by: Huang Xin <xin1.huang@intel.com> * Skip Insert if the set has the combination already Signed-off-by: Huang Xin <xin1.huang@intel.com> * Add more unit tests. Signed-off-by: Huang Xin <xin1.huang@intel.com> * Fix nits. Signed-off-by: Huang Xin <xin1.huang@intel.com> --------- Signed-off-by: Huang Xin <xin1.huang@intel.com>
- Loading branch information
1 parent
2897160
commit bb88d58
Showing
2 changed files
with
130 additions
and
3 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