INNER CODE UNIT · Go

main

aws/eks-anywhere · cmd/eksctl-anywhere/main.go:14

func main() {
	sigChannel := make(chan os.Signal, 1)
	signal.Notify(sigChannel, syscall.SIGINT, syscall.SIGTERM)
	go func() {
		<-sigChannel
		logger.Info("Warning: Terminating this operation may leave the cluster in an irrecoverable state")
		os.Exit(-1)
	}()
	if eksctl.Enabled() {
		err := eksctl.ValidateVersion()
		if err != nil {
			fmt.Println(err)
			os.Exit(-1)
		}
	}
	if cmd.Execute() == nil {
		os.Exit(0)
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…