Drop meaningless ,inline from json tags

Kubernetes-commit: bed4a34ad8901d9a01efcb9594838f96ec9d4563
This commit is contained in:
Jordan Liggitt
2026-04-07 13:30:08 -04:00
committed by Kubernetes Publisher
parent 293a2737bc
commit 2ee136681a
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ import (
// Foo is a specification for a Foo resource
type Foo struct {
metav1.TypeMeta `json:",inline"`
metav1.TypeMeta `json:""`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec FooSpec `json:"spec"`
@@ -47,7 +47,7 @@ type FooStatus struct {
// FooList is a list of Foo resources
type FooList struct {
metav1.TypeMeta `json:",inline"`
metav1.TypeMeta `json:""`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Foo `json:"items"`
@@ -32,7 +32,7 @@ import (
//
// Foo is a specification for a Foo resource
type FooApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:",inline"`
v1.TypeMetaApplyConfiguration `json:""`
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
Spec *FooSpecApplyConfiguration `json:"spec,omitempty"`
Status *FooStatusApplyConfiguration `json:"status,omitempty"`