@@ -906,10 +906,9 @@ func resourceContainerCluster() *schema.Resource {
906906 Elem : & schema.Resource {
907907 Schema : map [string ]* schema.Schema {
908908 "channel" : {
909- Type : schema .TypeString ,
910- Required : true ,
911- ValidateFunc : validation .StringInSlice ([]string {"UNSPECIFIED" , "RAPID" , "REGULAR" , "STABLE" }, false ),
912- DiffSuppressFunc : emptyOrDefaultStringSuppress ("UNSPECIFIED" ),
909+ Type : schema .TypeString ,
910+ Required : true ,
911+ ValidateFunc : validation .StringInSlice ([]string {"UNSPECIFIED" , "RAPID" , "REGULAR" , "STABLE" }, false ),
913912 Description : `The selected release channel. Accepted values are:
914913* UNSPECIFIED: Not set.
915914* RAPID: Weekly upgrade cadence; Early testers and developers who requires new features.
@@ -2961,12 +2960,12 @@ func flattenVerticalPodAutoscaling(c *containerBeta.VerticalPodAutoscaling) []ma
29612960
29622961func flattenReleaseChannel (c * containerBeta.ReleaseChannel ) []map [string ]interface {} {
29632962 result := []map [string ]interface {}{}
2964- if c != nil {
2963+ if c != nil && c . Channel != "" {
29652964 result = append (result , map [string ]interface {}{
29662965 "channel" : c .Channel ,
29672966 })
29682967 } else {
2969- // Explicitly set the release channel to the default .
2968+ // Explicitly set the release channel to the UNSPECIFIED .
29702969 result = append (result , map [string ]interface {}{
29712970 "channel" : "UNSPECIFIED" ,
29722971 })
0 commit comments