You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cli/cmd/install.go
+31-16
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,6 @@ package cmd
2
2
3
3
import (
4
4
"context"
5
-
"errors"
6
5
"fmt"
7
6
"os"
8
7
"time"
@@ -63,10 +62,7 @@ var installCmd = &cobra.Command{
63
62
This command will install k8s components that will auto-instrument your applications with OpenTelemetry and send traces, metrics and logs to any telemetry backend`,
64
63
Run: func(cmd*cobra.Command, args []string) {
65
64
66
-
client, err:=kube.CreateClient(cmd)
67
-
iferr!=nil {
68
-
kube.PrintClientErrorAndExit(err)
69
-
}
65
+
client:=kube.GetCLIClient()
70
66
ctx:=cmd.Context()
71
67
ns:=cmd.Flag("namespace").Value.String()
72
68
@@ -78,26 +74,45 @@ This command will install k8s components that will auto-instrument your applicat
78
74
}
79
75
80
76
// Check if the cluster meets the minimum requirements
fmt.Printf("\033[31mERROR\033[0m Odigos requires Kubernetes version %s or higher but found %s, aborting\n", minK8SVersionForInstallation.String(), details.K8SVersion.String())
fmt.Printf("\033[31mERROR\033[0m Odigos requires Kubernetes version %s or higher but found %s, aborting\n", minK8SVersionForInstallation.String(), k8sVersion.String())
// if details.K8SVersion.LessThan(minK8SVersionForInstallation) {
108
+
// fmt.Printf("\033[31mERROR\033[0m Odigos requires Kubernetes version %s or higher but found %s, aborting\n", minK8SVersionForInstallation.String(), details.K8SVersion.String())
0 commit comments