mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
61b202c64a
* init container to cleanup stale webhook configurations if any. * remove test code * use internal pkg for os signals * move webhook cleanup before http.server shutown. * update make file and remove init * update CI script
25 lines
437 B
Go
25 lines
437 B
Go
package main
|
|
|
|
import (
|
|
goflag "flag"
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/nirmata/kyverno/pkg/config"
|
|
kyverno "github.com/nirmata/kyverno/pkg/kyverno"
|
|
flag "github.com/spf13/pflag"
|
|
)
|
|
|
|
func main() {
|
|
cmd := kyverno.NewDefaultKyvernoCommand()
|
|
if err := cmd.Execute(); err != nil {
|
|
fmt.Fprintf(os.Stderr, "%v\n", err)
|
|
os.Exit(1)
|
|
}
|
|
}
|
|
|
|
func init() {
|
|
flag.CommandLine.AddGoFlagSet(goflag.CommandLine)
|
|
config.LogDefaultFlags()
|
|
flag.Parse()
|
|
}
|