1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-14 03:38:48 +00:00
kyverno/main.go

24 lines
330 B
Go

// main.go
package main
import (
"fmt"
"time"
"github.com/nirmata/kube-policy/server"
)
var (
kubeConfigFile string
)
func main() {
server := server.NewWebhookServer()
fmt.Println("WebHook server is running!")
server.RunAsync()
time.Sleep(5 * time.Second)
server.Stop()
fmt.Println("WebHook server is stopped.")
}