File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,8 @@ func jsonUnmarshalStrict(data []byte, v any) error {
9292type GatheredResource struct {
9393 // Resource is a reference to a k8s object that was found by the informer
9494 // should be of type unstructured.Unstructured, raw Object
95- Resource any `json:"resource"`
96- DeletedAt Time `json:"deleted_at,omitempty"`
95+ Resource any
96+ DeletedAt Time
9797}
9898
9999func (v GatheredResource ) MarshalJSON () ([]byte , error ) {
@@ -116,7 +116,7 @@ func (v GatheredResource) MarshalJSON() ([]byte, error) {
116116func (v * GatheredResource ) UnmarshalJSON (data []byte ) error {
117117 var tmpResource struct {
118118 Resource * unstructured.Unstructured `json:"resource"`
119- DeletedAt Time `json:"deleted_at,omitempty "`
119+ DeletedAt Time `json:"deleted_at"`
120120 }
121121
122122 d := json .NewDecoder (bytes .NewReader (data ))
You can’t perform that action at this time.
0 commit comments