mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
Merge pull request #29044 from lixiaobing10051267/masterWebHook
Automatic merge from submit-queue Func note not consistent with real fun name File "plugin\pkg\webhook.go", line #41 : "// New creates a new GenericWebhook from the provided kubeconfig file." Here "New" not consistant with real fun name "NewGenericWebhook" in line #42 : "func NewGenericWebhook(kubeConfigFile string, groupVersions []unversioned.GroupVersion, initialBackoff time.Duration) (*GenericWebhook, error) {"
This commit is contained in:
commit
6d09ba41e9
2
plugin/pkg/webhook/webhook.go
Normal file → Executable file
2
plugin/pkg/webhook/webhook.go
Normal file → Executable file
@ -38,7 +38,7 @@ type GenericWebhook struct {
|
|||||||
initialBackoff time.Duration
|
initialBackoff time.Duration
|
||||||
}
|
}
|
||||||
|
|
||||||
// New creates a new GenericWebhook from the provided kubeconfig file.
|
// NewGenericWebhook creates a new GenericWebhook from the provided kubeconfig file.
|
||||||
func NewGenericWebhook(kubeConfigFile string, groupVersions []unversioned.GroupVersion, initialBackoff time.Duration) (*GenericWebhook, error) {
|
func NewGenericWebhook(kubeConfigFile string, groupVersions []unversioned.GroupVersion, initialBackoff time.Duration) (*GenericWebhook, error) {
|
||||||
for _, groupVersion := range groupVersions {
|
for _, groupVersion := range groupVersions {
|
||||||
if !registered.IsEnabledVersion(groupVersion) {
|
if !registered.IsEnabledVersion(groupVersion) {
|
||||||
|
Loading…
Reference in New Issue
Block a user