Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit c42bcb4

Browse files
jimmidysoncarolynvs
authored andcommitted
Export BrokerAuthSarCheck admission plugin name (#2196)
1 parent 670745d commit c42bcb4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

plugin/pkg/admission/broker/authsarcheck/admission.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ import (
3333
)
3434

3535
const (
36-
pluginName = "BrokerAuthSarCheck"
36+
// PluginName is name of admission plug-in
37+
PluginName = "BrokerAuthSarCheck"
3738
)
3839

3940
// Register registers a plugin
4041
func Register(plugins *admission.Plugins) {
41-
plugins.Register(pluginName, func(io.Reader) (admission.Interface, error) {
42+
plugins.Register(PluginName, func(io.Reader) (admission.Interface, error) {
4243
return NewSARCheck()
4344
})
4445
}

0 commit comments

Comments
 (0)