You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by zh...@apache.org on 2021/10/27 11:22:50 UTC
[apisix-ingress-controller] branch master updated: fix unmarshal
apisix/upstream field nodes be null (#724)
This is an automated email from the ASF dual-hosted git repository.
zhangjintao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git
The following commit(s) were added to refs/heads/master by this push:
new dc196ef fix unmarshal apisix/upstream field nodes be null (#724)
dc196ef is described below
commit dc196ef16f95217213321335c6fc3929578e304a
Author: chen zhuo <ch...@126.com>
AuthorDate: Wed Oct 27 19:22:45 2021 +0800
fix unmarshal apisix/upstream field nodes be null (#724)
---
pkg/types/apisix/v1/types.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/pkg/types/apisix/v1/types.go b/pkg/types/apisix/v1/types.go
index a9b127f..4e3465c 100644
--- a/pkg/types/apisix/v1/types.go
+++ b/pkg/types/apisix/v1/types.go
@@ -208,6 +208,7 @@ func (n *UpstreamNodes) UnmarshalJSON(p []byte) error {
if len(p) != 2 {
return errors.New("unexpected non-empty object")
}
+ *n = UpstreamNodes{}
return nil
}
var data []UpstreamNode