mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +00:00
Add APIGroup to TypedLocalObjectReference
This commit is contained in:
parent
2a442db800
commit
34f62ae45e
@ -3965,12 +3965,12 @@ type LocalObjectReference struct {
|
|||||||
|
|
||||||
// TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.
|
// TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.
|
||||||
type TypedLocalObjectReference struct {
|
type TypedLocalObjectReference struct {
|
||||||
// Name of the referent.
|
// APIGroup is the group for the resource being referenced
|
||||||
// +optional
|
APIGroup string
|
||||||
Name string
|
// Kind is the type of resource being referenced
|
||||||
// Kind of the referent.
|
|
||||||
// +optional
|
|
||||||
Kind string
|
Kind string
|
||||||
|
// Name is the name of resource being referenced
|
||||||
|
Name string
|
||||||
}
|
}
|
||||||
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
@ -4484,14 +4484,12 @@ type LocalObjectReference struct {
|
|||||||
// TypedLocalObjectReference contains enough information to let you locate the
|
// TypedLocalObjectReference contains enough information to let you locate the
|
||||||
// typed referenced object inside the same namespace.
|
// typed referenced object inside the same namespace.
|
||||||
type TypedLocalObjectReference struct {
|
type TypedLocalObjectReference struct {
|
||||||
// Name of the referent.
|
// APIGroup is the group for the resource being referenced
|
||||||
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
|
APIGroup string `json:"apiGroup" protobuf:"bytes,1,opt,name=apiGroup"`
|
||||||
// +optional
|
// Kind is the type of resource being referenced
|
||||||
Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
|
Kind string `json:"kind" protobuf:"bytes,2,opt,name=kind"`
|
||||||
// Kind of the referent.
|
// Name is the name of resource being referenced
|
||||||
// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
|
Name string `json:"name" protobuf:"bytes,3,opt,name=name"`
|
||||||
// +optional
|
|
||||||
Kind string `json:"kind,omitempty" protobuf:"bytes,2,opt,name=kind"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
Loading…
Reference in New Issue
Block a user