Skip to content

Commit

Permalink
chore: upgrade cloud proxy version (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
blumamir authored Oct 25, 2023
1 parent f626199 commit a057cc0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
)

const (
odigosCloudProxyVersion = "v0.5.0"
odigosCloudProxyVersion = "v0.6.0"
)

var (
Expand Down Expand Up @@ -56,14 +56,14 @@ This command will install k8s components that will auto-instrument your applicat
fmt.Printf("Installing Odigos version %s in namespace %s ...\n", versionFlag, ns)

existingOdigosNs, err := resources.GetOdigosNamespace(client, ctx)
if err == nil {
if err == nil {
fmt.Printf("\033[31mERROR\033[0m Odigos is already installed in namespace \"%s\". If you wish to re-install, run \"odigos uninstall\" first.\n", existingOdigosNs)
os.Exit(1)
} else if !resources.IsErrNoOdigosNamespaceFound(err) {
fmt.Printf("\033[31mERROR\033[0m Failed to check if Odigos is already installed: %s\n", err)
os.Exit(1)
}

isOdigosCloud := odigosCloudApiKeyFlag != ""
createKubeResourceWithLogging(ctx, fmt.Sprintf("Creating namespace %s", ns),
client, cmd, ns, createNamespace)
Expand Down

0 comments on commit a057cc0

Please sign in to comment.