mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
Merge pull request #68419 from xing-yang/apigroup
Make APIGroup optional in TypedLocalObjectReference
This commit is contained in:
commit
020b1d5ff5
3
api/openapi-spec/swagger.json
generated
3
api/openapi-spec/swagger.json
generated
@ -84666,13 +84666,12 @@
|
|||||||
"io.k8s.api.core.v1.TypedLocalObjectReference": {
|
"io.k8s.api.core.v1.TypedLocalObjectReference": {
|
||||||
"description": "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.",
|
"description": "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.",
|
||||||
"required": [
|
"required": [
|
||||||
"apiGroup",
|
|
||||||
"kind",
|
"kind",
|
||||||
"name"
|
"name"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"apiGroup": {
|
"apiGroup": {
|
||||||
"description": "APIGroup is the group for the resource being referenced",
|
"description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"kind": {
|
"kind": {
|
||||||
|
2
api/swagger-spec/apps_v1.json
generated
2
api/swagger-spec/apps_v1.json
generated
@ -9550,7 +9550,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"apiGroup": {
|
"apiGroup": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "APIGroup is the group for the resource being referenced"
|
"description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."
|
||||||
},
|
},
|
||||||
"kind": {
|
"kind": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
2
api/swagger-spec/apps_v1beta1.json
generated
2
api/swagger-spec/apps_v1beta1.json
generated
@ -6832,7 +6832,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"apiGroup": {
|
"apiGroup": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "APIGroup is the group for the resource being referenced"
|
"description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."
|
||||||
},
|
},
|
||||||
"kind": {
|
"kind": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
2
api/swagger-spec/apps_v1beta2.json
generated
2
api/swagger-spec/apps_v1beta2.json
generated
@ -9554,7 +9554,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"apiGroup": {
|
"apiGroup": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "APIGroup is the group for the resource being referenced"
|
"description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."
|
||||||
},
|
},
|
||||||
"kind": {
|
"kind": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
2
api/swagger-spec/v1.json
generated
2
api/swagger-spec/v1.json
generated
@ -19390,7 +19390,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"apiGroup": {
|
"apiGroup": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "APIGroup is the group for the resource being referenced"
|
"description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required."
|
||||||
},
|
},
|
||||||
"kind": {
|
"kind": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
2
docs/api-reference/apps/v1/definitions.html
generated
2
docs/api-reference/apps/v1/definitions.html
generated
@ -575,7 +575,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">apiGroup</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">apiGroup</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">APIGroup is the group for the resource being referenced</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
2
docs/api-reference/apps/v1beta1/definitions.html
generated
2
docs/api-reference/apps/v1beta1/definitions.html
generated
@ -686,7 +686,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">apiGroup</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">apiGroup</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">APIGroup is the group for the resource being referenced</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
2
docs/api-reference/apps/v1beta2/definitions.html
generated
2
docs/api-reference/apps/v1beta2/definitions.html
generated
@ -578,7 +578,7 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">apiGroup</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">apiGroup</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">APIGroup is the group for the resource being referenced</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
2
docs/api-reference/v1/definitions.html
generated
2
docs/api-reference/v1/definitions.html
generated
@ -6723,7 +6723,7 @@ Examples:<br>
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">apiGroup</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">apiGroup</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">APIGroup is the group for the resource being referenced</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
@ -3976,8 +3976,11 @@ 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 {
|
||||||
// APIGroup is the group for the resource being referenced
|
// APIGroup is the group for the resource being referenced.
|
||||||
APIGroup string
|
// If APIGroup is not specified, the specified Kind must be in the core API group.
|
||||||
|
// For any other third-party types, APIGroup is required.
|
||||||
|
// +optional
|
||||||
|
APIGroup *string
|
||||||
// Kind is the type of resource being referenced
|
// Kind is the type of resource being referenced
|
||||||
Kind string
|
Kind string
|
||||||
// Name is the name of resource being referenced
|
// Name is the name of resource being referenced
|
||||||
|
4
pkg/apis/core/v1/zz_generated.conversion.go
generated
4
pkg/apis/core/v1/zz_generated.conversion.go
generated
@ -7255,7 +7255,7 @@ func Convert_core_TopologySelectorTerm_To_v1_TopologySelectorTerm(in *core.Topol
|
|||||||
}
|
}
|
||||||
|
|
||||||
func autoConvert_v1_TypedLocalObjectReference_To_core_TypedLocalObjectReference(in *v1.TypedLocalObjectReference, out *core.TypedLocalObjectReference, s conversion.Scope) error {
|
func autoConvert_v1_TypedLocalObjectReference_To_core_TypedLocalObjectReference(in *v1.TypedLocalObjectReference, out *core.TypedLocalObjectReference, s conversion.Scope) error {
|
||||||
out.APIGroup = in.APIGroup
|
out.APIGroup = (*string)(unsafe.Pointer(in.APIGroup))
|
||||||
out.Kind = in.Kind
|
out.Kind = in.Kind
|
||||||
out.Name = in.Name
|
out.Name = in.Name
|
||||||
return nil
|
return nil
|
||||||
@ -7267,7 +7267,7 @@ func Convert_v1_TypedLocalObjectReference_To_core_TypedLocalObjectReference(in *
|
|||||||
}
|
}
|
||||||
|
|
||||||
func autoConvert_core_TypedLocalObjectReference_To_v1_TypedLocalObjectReference(in *core.TypedLocalObjectReference, out *v1.TypedLocalObjectReference, s conversion.Scope) error {
|
func autoConvert_core_TypedLocalObjectReference_To_v1_TypedLocalObjectReference(in *core.TypedLocalObjectReference, out *v1.TypedLocalObjectReference, s conversion.Scope) error {
|
||||||
out.APIGroup = in.APIGroup
|
out.APIGroup = (*string)(unsafe.Pointer(in.APIGroup))
|
||||||
out.Kind = in.Kind
|
out.Kind = in.Kind
|
||||||
out.Name = in.Name
|
out.Name = in.Name
|
||||||
return nil
|
return nil
|
||||||
|
@ -32,6 +32,7 @@ go_library(
|
|||||||
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
||||||
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/validation:go_default_library",
|
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/validation:go_default_library",
|
||||||
"//staging/src/k8s.io/apimachinery/pkg/labels:go_default_library",
|
"//staging/src/k8s.io/apimachinery/pkg/labels:go_default_library",
|
||||||
|
"//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
|
||||||
"//staging/src/k8s.io/apimachinery/pkg/util/diff:go_default_library",
|
"//staging/src/k8s.io/apimachinery/pkg/util/diff:go_default_library",
|
||||||
"//staging/src/k8s.io/apimachinery/pkg/util/intstr:go_default_library",
|
"//staging/src/k8s.io/apimachinery/pkg/util/intstr:go_default_library",
|
||||||
"//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library",
|
"//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library",
|
||||||
|
@ -36,6 +36,7 @@ import (
|
|||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
unversionedvalidation "k8s.io/apimachinery/pkg/apis/meta/v1/validation"
|
unversionedvalidation "k8s.io/apimachinery/pkg/apis/meta/v1/validation"
|
||||||
"k8s.io/apimachinery/pkg/labels"
|
"k8s.io/apimachinery/pkg/labels"
|
||||||
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
"k8s.io/apimachinery/pkg/util/diff"
|
"k8s.io/apimachinery/pkg/util/diff"
|
||||||
"k8s.io/apimachinery/pkg/util/intstr"
|
"k8s.io/apimachinery/pkg/util/intstr"
|
||||||
"k8s.io/apimachinery/pkg/util/sets"
|
"k8s.io/apimachinery/pkg/util/sets"
|
||||||
@ -1501,8 +1502,9 @@ var supportedReclaimPolicy = sets.NewString(string(core.PersistentVolumeReclaimD
|
|||||||
|
|
||||||
var supportedVolumeModes = sets.NewString(string(core.PersistentVolumeBlock), string(core.PersistentVolumeFilesystem))
|
var supportedVolumeModes = sets.NewString(string(core.PersistentVolumeBlock), string(core.PersistentVolumeFilesystem))
|
||||||
|
|
||||||
var supportedDataSourceKinds = sets.NewString(string("VolumeSnapshot"))
|
var supportedDataSourceAPIGroupKinds = map[schema.GroupKind]bool{
|
||||||
var supportedDataSourceAPIGroups = sets.NewString(string("snapshot.storage.k8s.io"))
|
{Group: "snapshot.storage.k8s.io", Kind: "VolumeSnapshot"}: true,
|
||||||
|
}
|
||||||
|
|
||||||
func ValidatePersistentVolume(pv *core.PersistentVolume) field.ErrorList {
|
func ValidatePersistentVolume(pv *core.PersistentVolume) field.ErrorList {
|
||||||
metaPath := field.NewPath("metadata")
|
metaPath := field.NewPath("metadata")
|
||||||
@ -1833,10 +1835,18 @@ func ValidatePersistentVolumeClaimSpec(spec *core.PersistentVolumeClaimSpec, fld
|
|||||||
} else if spec.DataSource != nil {
|
} else if spec.DataSource != nil {
|
||||||
if len(spec.DataSource.Name) == 0 {
|
if len(spec.DataSource.Name) == 0 {
|
||||||
allErrs = append(allErrs, field.Required(fldPath.Child("dataSource", "name"), ""))
|
allErrs = append(allErrs, field.Required(fldPath.Child("dataSource", "name"), ""))
|
||||||
} else if !supportedDataSourceKinds.Has(string(spec.DataSource.Kind)) {
|
}
|
||||||
allErrs = append(allErrs, field.NotSupported(fldPath.Child("dataSource"), spec.DataSource.Kind, supportedDataSourceKinds.List()))
|
|
||||||
} else if !supportedDataSourceAPIGroups.Has(string(spec.DataSource.APIGroup)) {
|
groupKind := schema.GroupKind{Group: "", Kind: spec.DataSource.Kind}
|
||||||
allErrs = append(allErrs, field.NotSupported(fldPath.Child("dataSource"), spec.DataSource.APIGroup, supportedDataSourceAPIGroups.List()))
|
if spec.DataSource.APIGroup != nil {
|
||||||
|
groupKind.Group = string(*spec.DataSource.APIGroup)
|
||||||
|
}
|
||||||
|
groupKindList := make([]string, 0, len(supportedDataSourceAPIGroupKinds))
|
||||||
|
for grp := range supportedDataSourceAPIGroupKinds {
|
||||||
|
groupKindList = append(groupKindList, grp.String())
|
||||||
|
}
|
||||||
|
if !supportedDataSourceAPIGroupKinds[groupKind] {
|
||||||
|
allErrs = append(allErrs, field.NotSupported(fldPath.Child("dataSource"), groupKind.String(), groupKindList))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -726,7 +726,7 @@ func testVolumeSnapshotDataSourceInSpec(name string, kind string, apiGroup strin
|
|||||||
},
|
},
|
||||||
StorageClassName: &scName,
|
StorageClassName: &scName,
|
||||||
DataSource: &core.TypedLocalObjectReference{
|
DataSource: &core.TypedLocalObjectReference{
|
||||||
APIGroup: apiGroup,
|
APIGroup: &apiGroup,
|
||||||
Kind: kind,
|
Kind: kind,
|
||||||
Name: name,
|
Name: name,
|
||||||
},
|
},
|
||||||
|
7
pkg/apis/core/zz_generated.deepcopy.go
generated
7
pkg/apis/core/zz_generated.deepcopy.go
generated
@ -2689,7 +2689,7 @@ func (in *PersistentVolumeClaimSpec) DeepCopyInto(out *PersistentVolumeClaimSpec
|
|||||||
if in.DataSource != nil {
|
if in.DataSource != nil {
|
||||||
in, out := &in.DataSource, &out.DataSource
|
in, out := &in.DataSource, &out.DataSource
|
||||||
*out = new(TypedLocalObjectReference)
|
*out = new(TypedLocalObjectReference)
|
||||||
**out = **in
|
(*in).DeepCopyInto(*out)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -5075,6 +5075,11 @@ func (in *TopologySelectorTerm) DeepCopy() *TopologySelectorTerm {
|
|||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *TypedLocalObjectReference) DeepCopyInto(out *TypedLocalObjectReference) {
|
func (in *TypedLocalObjectReference) DeepCopyInto(out *TypedLocalObjectReference) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
if in.APIGroup != nil {
|
||||||
|
in, out := &in.APIGroup, &out.APIGroup
|
||||||
|
*out = new(string)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1621
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
1621
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
File diff suppressed because it is too large
Load Diff
@ -4503,7 +4503,10 @@ message TopologySelectorTerm {
|
|||||||
// 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.
|
||||||
message TypedLocalObjectReference {
|
message TypedLocalObjectReference {
|
||||||
// APIGroup is the group for the resource being referenced
|
// APIGroup is the group for the resource being referenced.
|
||||||
|
// If APIGroup is not specified, the specified Kind must be in the core API group.
|
||||||
|
// For any other third-party types, APIGroup is required.
|
||||||
|
// +optional
|
||||||
optional string apiGroup = 1;
|
optional string apiGroup = 1;
|
||||||
|
|
||||||
// Kind is the type of resource being referenced
|
// Kind is the type of resource being referenced
|
||||||
|
@ -4495,8 +4495,11 @@ 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 {
|
||||||
// APIGroup is the group for the resource being referenced
|
// APIGroup is the group for the resource being referenced.
|
||||||
APIGroup string `json:"apiGroup" protobuf:"bytes,1,opt,name=apiGroup"`
|
// If APIGroup is not specified, the specified Kind must be in the core API group.
|
||||||
|
// For any other third-party types, APIGroup is required.
|
||||||
|
// +optional
|
||||||
|
APIGroup *string `json:"apiGroup" protobuf:"bytes,1,opt,name=apiGroup"`
|
||||||
// Kind is the type of resource being referenced
|
// Kind is the type of resource being referenced
|
||||||
Kind string `json:"kind" protobuf:"bytes,2,opt,name=kind"`
|
Kind string `json:"kind" protobuf:"bytes,2,opt,name=kind"`
|
||||||
// Name is the name of resource being referenced
|
// Name is the name of resource being referenced
|
||||||
|
@ -2211,7 +2211,7 @@ func (TopologySelectorTerm) SwaggerDoc() map[string]string {
|
|||||||
|
|
||||||
var map_TypedLocalObjectReference = map[string]string{
|
var map_TypedLocalObjectReference = map[string]string{
|
||||||
"": "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.",
|
||||||
"apiGroup": "APIGroup is the group for the resource being referenced",
|
"apiGroup": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.",
|
||||||
"kind": "Kind is the type of resource being referenced",
|
"kind": "Kind is the type of resource being referenced",
|
||||||
"name": "Name is the name of resource being referenced",
|
"name": "Name is the name of resource being referenced",
|
||||||
}
|
}
|
||||||
|
@ -2687,7 +2687,7 @@ func (in *PersistentVolumeClaimSpec) DeepCopyInto(out *PersistentVolumeClaimSpec
|
|||||||
if in.DataSource != nil {
|
if in.DataSource != nil {
|
||||||
in, out := &in.DataSource, &out.DataSource
|
in, out := &in.DataSource, &out.DataSource
|
||||||
*out = new(TypedLocalObjectReference)
|
*out = new(TypedLocalObjectReference)
|
||||||
**out = **in
|
(*in).DeepCopyInto(*out)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -5090,6 +5090,11 @@ func (in *TopologySelectorTerm) DeepCopy() *TopologySelectorTerm {
|
|||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *TypedLocalObjectReference) DeepCopyInto(out *TypedLocalObjectReference) {
|
func (in *TypedLocalObjectReference) DeepCopyInto(out *TypedLocalObjectReference) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
if in.APIGroup != nil {
|
||||||
|
in, out := &in.APIGroup, &out.APIGroup
|
||||||
|
*out = new(string)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user