Change API field references for coordination v1 and v1beta1

Signed-off-by: Chirayu Kapoor <dev.csociety@gmail.com>
This commit is contained in:
Chirayu Kapoor 2022-11-13 19:13:43 +05:30
parent 8e48df1353
commit ad04936a8f
3 changed files with 6 additions and 6 deletions

View File

@ -28,7 +28,7 @@ type Lease struct {
// +optional // +optional
metav1.ObjectMeta metav1.ObjectMeta
// Specification of the Lease. // spec contains the specification of the Lease.
// +optional // +optional
Spec LeaseSpec Spec LeaseSpec
} }
@ -64,6 +64,6 @@ type LeaseList struct {
// +optional // +optional
metav1.ListMeta metav1.ListMeta
// Items is a list of schema objects. // items is a list of schema objects.
Items []Lease Items []Lease
} }

View File

@ -30,7 +30,7 @@ type Lease struct {
// +optional // +optional
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Specification of the Lease. // spec contains the specification of the Lease.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
// +optional // +optional
Spec LeaseSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` Spec LeaseSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
@ -69,6 +69,6 @@ type LeaseList struct {
// +optional // +optional
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Items is a list of schema objects. // items is a list of schema objects.
Items []Lease `json:"items" protobuf:"bytes,2,rep,name=items"` Items []Lease `json:"items" protobuf:"bytes,2,rep,name=items"`
} }

View File

@ -33,7 +33,7 @@ type Lease struct {
// +optional // +optional
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Specification of the Lease. // spec contains the specification of the Lease.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
// +optional // +optional
Spec LeaseSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` Spec LeaseSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
@ -75,6 +75,6 @@ type LeaseList struct {
// +optional // +optional
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Items is a list of schema objects. // items is a list of schema objects.
Items []Lease `json:"items" protobuf:"bytes,2,rep,name=items"` Items []Lease `json:"items" protobuf:"bytes,2,rep,name=items"`
} }