From 86d33d729a726654254c1b6ab2e55ddd97ea3e21 Mon Sep 17 00:00:00 2001 From: akwi Date: Wed, 21 Aug 2024 14:03:40 +0000 Subject: [PATCH] Fix compression mode in order to allow zero value on the field. --- pkg/cloud/rgraph/rnode/backendservice/type_trait.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cloud/rgraph/rnode/backendservice/type_trait.go b/pkg/cloud/rgraph/rnode/backendservice/type_trait.go index 441eab9a..e1e58398 100644 --- a/pkg/cloud/rgraph/rnode/backendservice/type_trait.go +++ b/pkg/cloud/rgraph/rnode/backendservice/type_trait.go @@ -49,7 +49,6 @@ func (*typeTrait) FieldTraits(v meta.Version) *api.FieldTraits { dt.NonZeroValue(api.Path{}.Pointer().Field("LoadBalancingScheme")) dt.NonZeroValue(api.Path{}.Pointer().Field("Protocol")) - dt.NonZeroValue(api.Path{}.Pointer().Field("CompressionMode")) // TODO(kl52752) change this field to mandatory after fixing type traits check. // Type traits check should be per path and not inherited from parent. dt.AllowZeroValue(api.Path{}.Pointer().Field("ConnectionDraining")) @@ -68,5 +67,6 @@ func (*typeTrait) FieldTraits(v meta.Version) *api.FieldTraits { dt.NonZeroValue(api.Path{}.Pointer().Field("VpcNetworkScope")) dt.NonZeroValue(api.Path{}.Pointer().Field("ExternalManagedMigrationState")) } + return dt }