Go 1.17 and dependencies update (#2381)

* Update Go version to 1.17 and dependencies
* Changes in ProbeHandler and LifeCycleHandler
* Update CRD definitions
* Update Go version to 1.17 in Github Actions

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
Sanket Sudake
2022-03-14 16:41:40 +05:30
committed by GitHub
parent 2f8fde0af0
commit 26d0a89fd5
17 changed files with 1477 additions and 579 deletions
@@ -22,7 +22,6 @@ import (
kruntime "k8s.io/apimachinery/pkg/runtime"
flag "github.com/spf13/pflag"
"k8s.io/klog"
)
var (
@@ -35,7 +34,8 @@ func main() {
flag.Parse()
if *typeSrc == "" {
klog.Fatalf("Please define -s flag as it is the source file")
fmt.Println("Please define -s flag as it is the source file")
os.Exit(1)
}
var funcOut io.Writer
@@ -44,7 +44,8 @@ func main() {
} else {
file, err := os.Create(*functionDest)
if err != nil {
klog.Fatalf("Couldn't open %v: %v", *functionDest, err)
fmt.Printf("Couldn't open %v: %v", *functionDest, err)
os.Exit(1)
}
defer file.Close()
funcOut = file