Skip to content

Commit

Permalink
add debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
chengshifan committed Jul 29, 2024
1 parent d05b1f3 commit 91d3530
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/services/gcp/pkg/stub/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,11 @@ func getExactClusterVersion(cr *v1alpha1.GKECluster, log *logrus.Entry) (string,
for _, c := range config.Channels {
for _, v := range c.ValidVersions {
if strings.HasPrefix(v, cr.Spec.ClusterVersion) {
if strings.ToLower(c.Channel) == "extended" {
log.Errorf("### Channel is %s", strings.ToLower(c.Channel))
log.Errorf("### config.Channels is %v", config.Channels)
log.Errorf("### c.ValidVersions is %v", c.ValidVersions)
}
return v, strings.ToLower(c.Channel), nil
}
}
Expand Down

0 comments on commit 91d3530

Please sign in to comment.