Skip to content

Commit

Permalink
feat: changed operator version warning changes done
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryakoste committed Sep 3, 2024
1 parent 3afc12a commit 32df600
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/cliutils/versionutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ func CheckPackageOperatorVersion(ctx context.Context) error {
if err != nil {
return err
}
if config.Version == "dev" && operatorVersion != "" {
if config.IsDevBuild() && operatorVersion != "" {
fmt.Fprintf(os.Stderr, "❗ Glasskube CLI version is dev but the operator version is %s\n", operatorVersion[1:])
}
if operatorVersion[1:] != config.Version && config.Version != "dev" {
} else if operatorVersion[1:] != config.Version {
fmt.Fprintf(os.Stderr, "❗ Glasskube PackageOperator needs to be updated: %s -> %s\n", operatorVersion[1:], config.Version)
fmt.Fprintf(os.Stderr, "💡 Please run `glasskube bootstrap` again to update Glasskube PackageOperator\n")
}
Expand Down

0 comments on commit 32df600

Please sign in to comment.