From 3cff3355b06561ffd934170c8e893d2f4e3b74be Mon Sep 17 00:00:00 2001 From: jennybuckley Date: Mon, 22 Oct 2018 16:17:03 -0700 Subject: [PATCH] change float to string --- staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types.go b/staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types.go index a3989e28898..712a6c38c12 100644 --- a/staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types.go +++ b/staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types.go @@ -1139,8 +1139,9 @@ type FieldNameValuePair struct { type FieldValue struct { // Exactly one of the following fields should be set. // FloatValue is a primitive float value. + // it is serialized as a string // +optional - FloatValue *float64 `json:"floatValue,omitempty" protobuf:"bytes,1,opt,name=floatValue"` + FloatValue *string `json:"floatValue,omitempty" protobuf:"bytes,1,opt,name=floatValue"` // IntValue is a primitive int value. // +optional IntValue *int32 `json:"intValue,omitempty" protobuf:"varint,2,opt,name=intValue"`