From 9a05940fa35f594be844bd7af15673be353d0638 Mon Sep 17 00:00:00 2001 From: cyclinder Date: Mon, 10 Jul 2023 11:08:49 +0800 Subject: [PATCH] update NetConf.DNS's json tag to omitempty Signed-off-by: cyclinder --- pkg/types/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/types/types.go b/pkg/types/types.go index 62ee7481..780dfa13 100644 --- a/pkg/types/types.go +++ b/pkg/types/types.go @@ -64,7 +64,7 @@ type NetConf struct { Type string `json:"type,omitempty"` Capabilities map[string]bool `json:"capabilities,omitempty"` IPAM IPAM `json:"ipam,omitempty"` - DNS DNS `json:"dns"` + DNS DNS `json:"dns,omitempty"` RawPrevResult map[string]interface{} `json:"prevResult,omitempty"` PrevResult Result `json:"-"`