Skip to content

Commit

Permalink
fix create admitter
Browse files Browse the repository at this point in the history
Signed-off-by: stoneshi-yunify <[email protected]>
  • Loading branch information
stoneshi-yunify committed May 15, 2024
1 parent a7262c7 commit 4d251fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webhook/pvc.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type Admitter struct {

var _ PVCAdmitter = (*Admitter)(nil)

func newAdmitter() (*Admitter, error) {
func NewAdmitter() (*Admitter, error) {
cfg, err := config.GetConfig()
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion webhook/weebhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func main(cmd *cobra.Command, args []string) {
GetCertificate: cw.GetCertificate,
}

admitter, err := newAdmitter()
admitter, err := NewAdmitter()
if err != nil {
klog.Fatalf("failed to initialize new admitter: %v", err)
}
Expand Down

0 comments on commit 4d251fb

Please sign in to comment.