mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-15 06:43:54 +00:00
drop UID from the IPAddress.Spec.ParentRef
This field is not needed, IPAddresses are unique and the name is canonicalized to avoid duplicates. Change-Id: Iccaaf5d55e2af61fea7af9abd39584a80ed4054e
This commit is contained in:
parent
f538be659c
commit
b7ee8e8422
@ -18,7 +18,6 @@ package networking
|
||||
|
||||
import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/types"
|
||||
"k8s.io/apimachinery/pkg/util/intstr"
|
||||
api "k8s.io/kubernetes/pkg/apis/core"
|
||||
)
|
||||
@ -695,9 +694,6 @@ type ParentReference struct {
|
||||
Namespace string
|
||||
// Name is the name of the object being referenced.
|
||||
Name string
|
||||
// UID is the uid of the object being referenced.
|
||||
// +optional
|
||||
UID types.UID
|
||||
}
|
||||
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
|
@ -552,7 +552,6 @@ func serviceToRef(svc *v1.Service) *networkingv1alpha1.ParentReference {
|
||||
Resource: "services",
|
||||
Namespace: svc.Namespace,
|
||||
Name: svc.Name,
|
||||
UID: svc.UID,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -571,6 +571,5 @@ func serviceToRef(svc *api.Service) *networkingv1alpha1.ParentReference {
|
||||
Resource: "services",
|
||||
Namespace: svc.Namespace,
|
||||
Name: svc.Name,
|
||||
UID: svc.UID,
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,6 @@ package v1alpha1
|
||||
import (
|
||||
v1 "k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/types"
|
||||
)
|
||||
|
||||
// +genclient
|
||||
@ -143,9 +142,6 @@ type ParentReference struct {
|
||||
// Name is the name of the object being referenced.
|
||||
// +required
|
||||
Name string `json:"name,omitempty" protobuf:"bytes,4,opt,name=name"`
|
||||
// UID is the uid of the object being referenced.
|
||||
// +optional
|
||||
UID types.UID `json:"uid,omitempty" protobuf:"bytes,5,opt,name=uid,casttype=k8s.io/apimachinery/pkg/types.UID"`
|
||||
}
|
||||
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
|
Loading…
Reference in New Issue
Block a user