mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
parent
dd27bba9f7
commit
3fa411e982
2 changed files with 14 additions and 4 deletions
|
@ -19,7 +19,11 @@ before_install:
|
||||||
install: true
|
install: true
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make build || travis_terminate 1;
|
# build initContainer
|
||||||
|
- make docker-build-initContainer || travis_terminate 1;
|
||||||
|
# build kyverno container
|
||||||
|
- make docker-build-kyverno || travis_terminate 1;
|
||||||
|
# tests
|
||||||
- make test-all || travis_terminate 1;
|
- make test-all || travis_terminate 1;
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
|
|
|
@ -31,9 +31,6 @@ func main() {
|
||||||
defer glog.Flush()
|
defer glog.Flush()
|
||||||
// os signal handler
|
// os signal handler
|
||||||
stopCh := signal.SetupSignalHandler()
|
stopCh := signal.SetupSignalHandler()
|
||||||
// arguments
|
|
||||||
flag.StringVar(&kubeconfig, "kubeconfig", "", "Path to a kubeconfig. Only required if out-of-cluster.")
|
|
||||||
|
|
||||||
// create client config
|
// create client config
|
||||||
clientConfig, err := createClientConfig(kubeconfig)
|
clientConfig, err := createClientConfig(kubeconfig)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -82,6 +79,15 @@ func main() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
// arguments
|
||||||
|
flag.StringVar(&kubeconfig, "kubeconfig", "", "Path to a kubeconfig. Only required if out-of-cluster.")
|
||||||
|
flag.Set("logtostderr", "true")
|
||||||
|
flag.Set("stderrthreshold", "WARNING")
|
||||||
|
flag.Set("v", "2")
|
||||||
|
flag.Parse()
|
||||||
|
}
|
||||||
|
|
||||||
func removeWebhookIfExists(client *client.Client, kind string, name string) error {
|
func removeWebhookIfExists(client *client.Client, kind string, name string) error {
|
||||||
var err error
|
var err error
|
||||||
// Get resource
|
// Get resource
|
||||||
|
|
Loading…
Reference in a new issue