Skip to content

Commit 91d3530

Browse files
committed
add debug code
1 parent d05b1f3 commit 91d3530

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/services/gcp/pkg/stub/handler.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,11 @@ func getExactClusterVersion(cr *v1alpha1.GKECluster, log *logrus.Entry) (string,
737737
for _, c := range config.Channels {
738738
for _, v := range c.ValidVersions {
739739
if strings.HasPrefix(v, cr.Spec.ClusterVersion) {
740+
if strings.ToLower(c.Channel) == "extended" {
741+
log.Errorf("### Channel is %s", strings.ToLower(c.Channel))
742+
log.Errorf("### config.Channels is %v", config.Channels)
743+
log.Errorf("### c.ValidVersions is %v", c.ValidVersions)
744+
}
740745
return v, strings.ToLower(c.Channel), nil
741746
}
742747
}

0 commit comments

Comments
 (0)