Skip to content

Commit

Permalink
feat: changed operator version warning in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryakoste committed Sep 2, 2024
1 parent 965106b commit 3afc12a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/cliutils/versionutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ func CheckPackageOperatorVersion(ctx context.Context) error {
if err != nil {
return err
}
if operatorVersion[1:] != config.Version {
if config.Version == "dev" && 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" {
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 3afc12a

Please sign in to comment.