Generate code
This commit is contained in:
parent
87c1ca88d4
commit
cb12a2bc51
31
api/openapi-spec/swagger.json
generated
31
api/openapi-spec/swagger.json
generated
@ -7014,11 +7014,11 @@
|
||||
},
|
||||
"dataSource": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.TypedLocalObjectReference",
|
||||
"description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field."
|
||||
"description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource."
|
||||
},
|
||||
"dataSourceRef": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.TypedLocalObjectReference",
|
||||
"description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While DataSource ignores disallowed values (dropping them), DataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled."
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.TypedObjectReference",
|
||||
"description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled."
|
||||
},
|
||||
"resources": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements",
|
||||
@ -9619,6 +9619,31 @@
|
||||
"type": "object",
|
||||
"x-kubernetes-map-type": "atomic"
|
||||
},
|
||||
"io.k8s.api.core.v1.TypedObjectReference": {
|
||||
"properties": {
|
||||
"apiGroup": {
|
||||
"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"
|
||||
},
|
||||
"kind": {
|
||||
"description": "Kind is the type of resource being referenced",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "Name is the name of resource being referenced",
|
||||
"type": "string"
|
||||
},
|
||||
"namespace": {
|
||||
"description": "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"kind",
|
||||
"name"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.core.v1.Volume": {
|
||||
"description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.",
|
||||
"properties": {
|
||||
|
@ -4080,15 +4080,15 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.TypedLocalObjectReference"
|
||||
}
|
||||
],
|
||||
"description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field."
|
||||
"description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource."
|
||||
},
|
||||
"dataSourceRef": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.TypedLocalObjectReference"
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.TypedObjectReference"
|
||||
}
|
||||
],
|
||||
"description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While DataSource ignores disallowed values (dropping them), DataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled."
|
||||
"description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled."
|
||||
},
|
||||
"resources": {
|
||||
"allOf": [
|
||||
@ -7359,6 +7359,33 @@
|
||||
"type": "object",
|
||||
"x-kubernetes-map-type": "atomic"
|
||||
},
|
||||
"io.k8s.api.core.v1.TypedObjectReference": {
|
||||
"properties": {
|
||||
"apiGroup": {
|
||||
"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"
|
||||
},
|
||||
"kind": {
|
||||
"default": "",
|
||||
"description": "Kind is the type of resource being referenced",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"default": "",
|
||||
"description": "Name is the name of resource being referenced",
|
||||
"type": "string"
|
||||
},
|
||||
"namespace": {
|
||||
"description": "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"kind",
|
||||
"name"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.core.v1.Volume": {
|
||||
"description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.",
|
||||
"properties": {
|
||||
|
@ -2973,15 +2973,15 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.TypedLocalObjectReference"
|
||||
}
|
||||
],
|
||||
"description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field."
|
||||
"description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource."
|
||||
},
|
||||
"dataSourceRef": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.TypedLocalObjectReference"
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.TypedObjectReference"
|
||||
}
|
||||
],
|
||||
"description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While DataSource ignores disallowed values (dropping them), DataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled."
|
||||
"description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled."
|
||||
},
|
||||
"resources": {
|
||||
"allOf": [
|
||||
@ -4475,6 +4475,33 @@
|
||||
"type": "object",
|
||||
"x-kubernetes-map-type": "atomic"
|
||||
},
|
||||
"io.k8s.api.core.v1.TypedObjectReference": {
|
||||
"properties": {
|
||||
"apiGroup": {
|
||||
"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"
|
||||
},
|
||||
"kind": {
|
||||
"default": "",
|
||||
"description": "Kind is the type of resource being referenced",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"default": "",
|
||||
"description": "Name is the name of resource being referenced",
|
||||
"type": "string"
|
||||
},
|
||||
"namespace": {
|
||||
"description": "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"kind",
|
||||
"name"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.core.v1.Volume": {
|
||||
"description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.",
|
||||
"properties": {
|
||||
|
@ -2207,15 +2207,15 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.TypedLocalObjectReference"
|
||||
}
|
||||
],
|
||||
"description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field."
|
||||
"description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource."
|
||||
},
|
||||
"dataSourceRef": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.TypedLocalObjectReference"
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.TypedObjectReference"
|
||||
}
|
||||
],
|
||||
"description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While DataSource ignores disallowed values (dropping them), DataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled."
|
||||
"description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled."
|
||||
},
|
||||
"resources": {
|
||||
"allOf": [
|
||||
@ -3649,6 +3649,33 @@
|
||||
"type": "object",
|
||||
"x-kubernetes-map-type": "atomic"
|
||||
},
|
||||
"io.k8s.api.core.v1.TypedObjectReference": {
|
||||
"properties": {
|
||||
"apiGroup": {
|
||||
"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"
|
||||
},
|
||||
"kind": {
|
||||
"default": "",
|
||||
"description": "Kind is the type of resource being referenced",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"default": "",
|
||||
"description": "Name is the name of resource being referenced",
|
||||
"type": "string"
|
||||
},
|
||||
"namespace": {
|
||||
"description": "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"kind",
|
||||
"name"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.core.v1.Volume": {
|
||||
"description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.",
|
||||
"properties": {
|
||||
|
40
pkg/apis/core/v1/zz_generated.conversion.go
generated
40
pkg/apis/core/v1/zz_generated.conversion.go
generated
@ -1977,6 +1977,16 @@ func RegisterConversions(s *runtime.Scheme) error {
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := s.AddGeneratedConversionFunc((*v1.TypedObjectReference)(nil), (*core.TypedObjectReference)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
||||
return Convert_v1_TypedObjectReference_To_core_TypedObjectReference(a.(*v1.TypedObjectReference), b.(*core.TypedObjectReference), scope)
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := s.AddGeneratedConversionFunc((*core.TypedObjectReference)(nil), (*v1.TypedObjectReference)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
||||
return Convert_core_TypedObjectReference_To_v1_TypedObjectReference(a.(*core.TypedObjectReference), b.(*v1.TypedObjectReference), scope)
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := s.AddGeneratedConversionFunc((*v1.VolumeDevice)(nil), (*core.VolumeDevice)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
||||
return Convert_v1_VolumeDevice_To_core_VolumeDevice(a.(*v1.VolumeDevice), b.(*core.VolumeDevice), scope)
|
||||
}); err != nil {
|
||||
@ -5182,7 +5192,7 @@ func autoConvert_v1_PersistentVolumeClaimSpec_To_core_PersistentVolumeClaimSpec(
|
||||
out.StorageClassName = (*string)(unsafe.Pointer(in.StorageClassName))
|
||||
out.VolumeMode = (*core.PersistentVolumeMode)(unsafe.Pointer(in.VolumeMode))
|
||||
out.DataSource = (*core.TypedLocalObjectReference)(unsafe.Pointer(in.DataSource))
|
||||
out.DataSourceRef = (*core.TypedLocalObjectReference)(unsafe.Pointer(in.DataSourceRef))
|
||||
out.DataSourceRef = (*core.TypedObjectReference)(unsafe.Pointer(in.DataSourceRef))
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -5201,7 +5211,7 @@ func autoConvert_core_PersistentVolumeClaimSpec_To_v1_PersistentVolumeClaimSpec(
|
||||
out.StorageClassName = (*string)(unsafe.Pointer(in.StorageClassName))
|
||||
out.VolumeMode = (*v1.PersistentVolumeMode)(unsafe.Pointer(in.VolumeMode))
|
||||
out.DataSource = (*v1.TypedLocalObjectReference)(unsafe.Pointer(in.DataSource))
|
||||
out.DataSourceRef = (*v1.TypedLocalObjectReference)(unsafe.Pointer(in.DataSourceRef))
|
||||
out.DataSourceRef = (*v1.TypedObjectReference)(unsafe.Pointer(in.DataSourceRef))
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -8083,6 +8093,32 @@ func Convert_core_TypedLocalObjectReference_To_v1_TypedLocalObjectReference(in *
|
||||
return autoConvert_core_TypedLocalObjectReference_To_v1_TypedLocalObjectReference(in, out, s)
|
||||
}
|
||||
|
||||
func autoConvert_v1_TypedObjectReference_To_core_TypedObjectReference(in *v1.TypedObjectReference, out *core.TypedObjectReference, s conversion.Scope) error {
|
||||
out.APIGroup = (*string)(unsafe.Pointer(in.APIGroup))
|
||||
out.Kind = in.Kind
|
||||
out.Name = in.Name
|
||||
out.Namespace = (*string)(unsafe.Pointer(in.Namespace))
|
||||
return nil
|
||||
}
|
||||
|
||||
// Convert_v1_TypedObjectReference_To_core_TypedObjectReference is an autogenerated conversion function.
|
||||
func Convert_v1_TypedObjectReference_To_core_TypedObjectReference(in *v1.TypedObjectReference, out *core.TypedObjectReference, s conversion.Scope) error {
|
||||
return autoConvert_v1_TypedObjectReference_To_core_TypedObjectReference(in, out, s)
|
||||
}
|
||||
|
||||
func autoConvert_core_TypedObjectReference_To_v1_TypedObjectReference(in *core.TypedObjectReference, out *v1.TypedObjectReference, s conversion.Scope) error {
|
||||
out.APIGroup = (*string)(unsafe.Pointer(in.APIGroup))
|
||||
out.Kind = in.Kind
|
||||
out.Name = in.Name
|
||||
out.Namespace = (*string)(unsafe.Pointer(in.Namespace))
|
||||
return nil
|
||||
}
|
||||
|
||||
// Convert_core_TypedObjectReference_To_v1_TypedObjectReference is an autogenerated conversion function.
|
||||
func Convert_core_TypedObjectReference_To_v1_TypedObjectReference(in *core.TypedObjectReference, out *v1.TypedObjectReference, s conversion.Scope) error {
|
||||
return autoConvert_core_TypedObjectReference_To_v1_TypedObjectReference(in, out, s)
|
||||
}
|
||||
|
||||
func autoConvert_v1_Volume_To_core_Volume(in *v1.Volume, out *core.Volume, s conversion.Scope) error {
|
||||
out.Name = in.Name
|
||||
if err := Convert_v1_VolumeSource_To_core_VolumeSource(&in.VolumeSource, &out.VolumeSource, s); err != nil {
|
||||
|
28
pkg/apis/core/zz_generated.deepcopy.go
generated
28
pkg/apis/core/zz_generated.deepcopy.go
generated
@ -2965,7 +2965,7 @@ func (in *PersistentVolumeClaimSpec) DeepCopyInto(out *PersistentVolumeClaimSpec
|
||||
}
|
||||
if in.DataSourceRef != nil {
|
||||
in, out := &in.DataSourceRef, &out.DataSourceRef
|
||||
*out = new(TypedLocalObjectReference)
|
||||
*out = new(TypedObjectReference)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
return
|
||||
@ -5714,6 +5714,32 @@ func (in *TypedLocalObjectReference) DeepCopy() *TypedLocalObjectReference {
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *TypedObjectReference) DeepCopyInto(out *TypedObjectReference) {
|
||||
*out = *in
|
||||
if in.APIGroup != nil {
|
||||
in, out := &in.APIGroup, &out.APIGroup
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.Namespace != nil {
|
||||
in, out := &in.Namespace, &out.Namespace
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TypedObjectReference.
|
||||
func (in *TypedObjectReference) DeepCopy() *TypedObjectReference {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(TypedObjectReference)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *Volume) DeepCopyInto(out *Volume) {
|
||||
*out = *in
|
||||
|
52
pkg/generated/openapi/zz_generated.openapi.go
generated
52
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -526,6 +526,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA
|
||||
"k8s.io/api/core/v1.TopologySelectorTerm": schema_k8sio_api_core_v1_TopologySelectorTerm(ref),
|
||||
"k8s.io/api/core/v1.TopologySpreadConstraint": schema_k8sio_api_core_v1_TopologySpreadConstraint(ref),
|
||||
"k8s.io/api/core/v1.TypedLocalObjectReference": schema_k8sio_api_core_v1_TypedLocalObjectReference(ref),
|
||||
"k8s.io/api/core/v1.TypedObjectReference": schema_k8sio_api_core_v1_TypedObjectReference(ref),
|
||||
"k8s.io/api/core/v1.Volume": schema_k8sio_api_core_v1_Volume(ref),
|
||||
"k8s.io/api/core/v1.VolumeDevice": schema_k8sio_api_core_v1_VolumeDevice(ref),
|
||||
"k8s.io/api/core/v1.VolumeMount": schema_k8sio_api_core_v1_VolumeMount(ref),
|
||||
@ -21490,21 +21491,21 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref common.ReferenceCall
|
||||
},
|
||||
"dataSource": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field.",
|
||||
Description: "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource.",
|
||||
Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"),
|
||||
},
|
||||
},
|
||||
"dataSourceRef": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While DataSource ignores disallowed values (dropping them), DataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.",
|
||||
Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"),
|
||||
Description: "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.",
|
||||
Ref: ref("k8s.io/api/core/v1.TypedObjectReference"),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
Dependencies: []string{
|
||||
"k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.TypedLocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"},
|
||||
"k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.TypedLocalObjectReference", "k8s.io/api/core/v1.TypedObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"},
|
||||
}
|
||||
}
|
||||
|
||||
@ -26813,6 +26814,49 @@ func schema_k8sio_api_core_v1_TypedLocalObjectReference(ref common.ReferenceCall
|
||||
}
|
||||
}
|
||||
|
||||
func schema_k8sio_api_core_v1_TypedObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||||
return common.OpenAPIDefinition{
|
||||
Schema: spec.Schema{
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Type: []string{"object"},
|
||||
Properties: map[string]spec.Schema{
|
||||
"apiGroup": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
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{"string"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"kind": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Kind is the type of resource being referenced",
|
||||
Default: "",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"name": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Name is the name of resource being referenced",
|
||||
Default: "",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"namespace": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
Required: []string{"kind", "name"},
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||||
return common.OpenAPIDefinition{
|
||||
Schema: spec.Schema{
|
||||
|
2118
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
2118
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
File diff suppressed because it is too large
Load Diff
@ -2711,30 +2711,37 @@ message PersistentVolumeClaimSpec {
|
||||
// * An existing PVC (PersistentVolumeClaim)
|
||||
// If the provisioner or an external controller can support the specified data source,
|
||||
// it will create a new volume based on the contents of the specified data source.
|
||||
// If the AnyVolumeDataSource feature gate is enabled, this field will always have
|
||||
// the same contents as the DataSourceRef field.
|
||||
// When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,
|
||||
// and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.
|
||||
// If the namespace is specified, then dataSourceRef will not be copied to dataSource.
|
||||
// +optional
|
||||
optional TypedLocalObjectReference dataSource = 7;
|
||||
|
||||
// dataSourceRef specifies the object from which to populate the volume with data, if a non-empty
|
||||
// volume is desired. This may be any local object from a non-empty API group (non
|
||||
// volume is desired. This may be any object from a non-empty API group (non
|
||||
// core object) or a PersistentVolumeClaim object.
|
||||
// When this field is specified, volume binding will only succeed if the type of
|
||||
// the specified object matches some installed volume populator or dynamic
|
||||
// provisioner.
|
||||
// This field will replace the functionality of the DataSource field and as such
|
||||
// This field will replace the functionality of the dataSource field and as such
|
||||
// if both fields are non-empty, they must have the same value. For backwards
|
||||
// compatibility, both fields (DataSource and DataSourceRef) will be set to the same
|
||||
// compatibility, when namespace isn't specified in dataSourceRef,
|
||||
// both fields (dataSource and dataSourceRef) will be set to the same
|
||||
// value automatically if one of them is empty and the other is non-empty.
|
||||
// There are two important differences between DataSource and DataSourceRef:
|
||||
// * While DataSource only allows two specific types of objects, DataSourceRef
|
||||
// When namespace is specified in dataSourceRef,
|
||||
// dataSource isn't set to the same value and must be empty.
|
||||
// There are three important differences between dataSource and dataSourceRef:
|
||||
// * While dataSource only allows two specific types of objects, dataSourceRef
|
||||
// allows any non-core object, as well as PersistentVolumeClaim objects.
|
||||
// * While DataSource ignores disallowed values (dropping them), DataSourceRef
|
||||
// * While dataSource ignores disallowed values (dropping them), dataSourceRef
|
||||
// preserves all values, and generates an error if a disallowed value is
|
||||
// specified.
|
||||
// * While dataSource only allows local objects, dataSourceRef allows objects
|
||||
// in any namespaces.
|
||||
// (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
|
||||
// (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
|
||||
// +optional
|
||||
optional TypedLocalObjectReference dataSourceRef = 8;
|
||||
optional TypedObjectReference dataSourceRef = 8;
|
||||
}
|
||||
|
||||
// PersistentVolumeClaimStatus is the current status of a persistent volume claim.
|
||||
@ -5563,6 +5570,27 @@ message TypedLocalObjectReference {
|
||||
optional string name = 3;
|
||||
}
|
||||
|
||||
message TypedObjectReference {
|
||||
// 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;
|
||||
|
||||
// Kind is the type of resource being referenced
|
||||
optional string kind = 2;
|
||||
|
||||
// Name is the name of resource being referenced
|
||||
optional string name = 3;
|
||||
|
||||
// Namespace is the namespace of resource being referenced
|
||||
// Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.
|
||||
// (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
|
||||
// +featureGate=CrossNamespaceVolumeDataSource
|
||||
// +optional
|
||||
optional string namespace = 4;
|
||||
}
|
||||
|
||||
// Volume represents a named volume in a pod that may be accessed by any container in the pod.
|
||||
message Volume {
|
||||
// name of the volume.
|
||||
|
@ -1311,8 +1311,8 @@ var map_PersistentVolumeClaimSpec = map[string]string{
|
||||
"volumeName": "volumeName is the binding reference to the PersistentVolume backing this claim.",
|
||||
"storageClassName": "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1",
|
||||
"volumeMode": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.",
|
||||
"dataSource": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field.",
|
||||
"dataSourceRef": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While DataSource ignores disallowed values (dropping them), DataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.",
|
||||
"dataSource": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource.",
|
||||
"dataSourceRef": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.",
|
||||
}
|
||||
|
||||
func (PersistentVolumeClaimSpec) SwaggerDoc() map[string]string {
|
||||
@ -2437,6 +2437,17 @@ func (TypedLocalObjectReference) SwaggerDoc() map[string]string {
|
||||
return map_TypedLocalObjectReference
|
||||
}
|
||||
|
||||
var map_TypedObjectReference = map[string]string{
|
||||
"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",
|
||||
"name": "Name is the name of resource being referenced",
|
||||
"namespace": "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.",
|
||||
}
|
||||
|
||||
func (TypedObjectReference) SwaggerDoc() map[string]string {
|
||||
return map_TypedObjectReference
|
||||
}
|
||||
|
||||
var map_Volume = map[string]string{
|
||||
"": "Volume represents a named volume in a pod that may be accessed by any container in the pod.",
|
||||
"name": "name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
|
||||
|
@ -2963,7 +2963,7 @@ func (in *PersistentVolumeClaimSpec) DeepCopyInto(out *PersistentVolumeClaimSpec
|
||||
}
|
||||
if in.DataSourceRef != nil {
|
||||
in, out := &in.DataSourceRef, &out.DataSourceRef
|
||||
*out = new(TypedLocalObjectReference)
|
||||
*out = new(TypedObjectReference)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
return
|
||||
@ -5729,6 +5729,32 @@ func (in *TypedLocalObjectReference) DeepCopy() *TypedLocalObjectReference {
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *TypedObjectReference) DeepCopyInto(out *TypedObjectReference) {
|
||||
*out = *in
|
||||
if in.APIGroup != nil {
|
||||
in, out := &in.APIGroup, &out.APIGroup
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.Namespace != nil {
|
||||
in, out := &in.Namespace, &out.Namespace
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TypedObjectReference.
|
||||
func (in *TypedObjectReference) DeepCopy() *TypedObjectReference {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(TypedObjectReference)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *Volume) DeepCopyInto(out *Volume) {
|
||||
*out = *in
|
||||
|
@ -465,7 +465,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
@ -965,6 +965,7 @@ spec:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
|
@ -466,7 +466,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
@ -973,6 +973,7 @@ spec:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
|
@ -467,7 +467,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
@ -965,6 +965,7 @@ spec:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
|
@ -466,7 +466,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1716,7 +1717,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
|
Binary file not shown.
@ -973,6 +973,7 @@ spec:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
@ -1184,6 +1185,7 @@ spec:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
|
@ -466,7 +466,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
@ -975,6 +975,7 @@ spec:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
|
@ -466,7 +466,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1716,7 +1717,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
|
Binary file not shown.
@ -973,6 +973,7 @@ spec:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
@ -1184,6 +1185,7 @@ spec:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
|
@ -465,7 +465,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
@ -965,6 +965,7 @@ spec:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
|
@ -466,7 +466,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
@ -973,6 +973,7 @@ spec:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
|
@ -467,7 +467,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
@ -965,6 +965,7 @@ spec:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
|
@ -466,7 +466,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1716,7 +1717,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
|
Binary file not shown.
@ -973,6 +973,7 @@ spec:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
@ -1184,6 +1185,7 @@ spec:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
|
@ -539,7 +539,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
@ -1017,6 +1017,7 @@ spec:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
|
@ -490,7 +490,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
BIN
staging/src/k8s.io/api/testdata/HEAD/batch.v1.Job.pb
vendored
BIN
staging/src/k8s.io/api/testdata/HEAD/batch.v1.Job.pb
vendored
Binary file not shown.
@ -981,6 +981,7 @@ spec:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
|
@ -539,7 +539,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
@ -1017,6 +1017,7 @@ spec:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
|
@ -533,7 +533,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
@ -1014,6 +1014,7 @@ template:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
|
@ -80,7 +80,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
|
Binary file not shown.
@ -43,6 +43,7 @@ spec:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
|
@ -407,7 +407,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
BIN
staging/src/k8s.io/api/testdata/HEAD/core.v1.Pod.pb
vendored
BIN
staging/src/k8s.io/api/testdata/HEAD/core.v1.Pod.pb
vendored
Binary file not shown.
@ -921,6 +921,7 @@ spec:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
|
@ -450,7 +450,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
@ -954,6 +954,7 @@ template:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
|
@ -456,7 +456,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
@ -959,6 +959,7 @@ spec:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
|
@ -465,7 +465,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
@ -965,6 +965,7 @@ spec:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
|
@ -466,7 +466,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
@ -975,6 +975,7 @@ spec:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
|
@ -467,7 +467,8 @@
|
||||
"dataSourceRef": {
|
||||
"apiGroup": "apiGroupValue",
|
||||
"kind": "kindValue",
|
||||
"name": "nameValue"
|
||||
"name": "nameValue",
|
||||
"namespace": "namespaceValue"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
@ -965,6 +965,7 @@ spec:
|
||||
apiGroup: apiGroupValue
|
||||
kind: kindValue
|
||||
name: nameValue
|
||||
namespace: namespaceValue
|
||||
resources:
|
||||
limits:
|
||||
limitsKey: "0"
|
||||
|
@ -33,7 +33,7 @@ type PersistentVolumeClaimSpecApplyConfiguration struct {
|
||||
StorageClassName *string `json:"storageClassName,omitempty"`
|
||||
VolumeMode *v1.PersistentVolumeMode `json:"volumeMode,omitempty"`
|
||||
DataSource *TypedLocalObjectReferenceApplyConfiguration `json:"dataSource,omitempty"`
|
||||
DataSourceRef *TypedLocalObjectReferenceApplyConfiguration `json:"dataSourceRef,omitempty"`
|
||||
DataSourceRef *TypedObjectReferenceApplyConfiguration `json:"dataSourceRef,omitempty"`
|
||||
}
|
||||
|
||||
// PersistentVolumeClaimSpecApplyConfiguration constructs an declarative configuration of the PersistentVolumeClaimSpec type for use with
|
||||
@ -103,7 +103,7 @@ func (b *PersistentVolumeClaimSpecApplyConfiguration) WithDataSource(value *Type
|
||||
// WithDataSourceRef sets the DataSourceRef field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the DataSourceRef field is set to the value of the last call.
|
||||
func (b *PersistentVolumeClaimSpecApplyConfiguration) WithDataSourceRef(value *TypedLocalObjectReferenceApplyConfiguration) *PersistentVolumeClaimSpecApplyConfiguration {
|
||||
func (b *PersistentVolumeClaimSpecApplyConfiguration) WithDataSourceRef(value *TypedObjectReferenceApplyConfiguration) *PersistentVolumeClaimSpecApplyConfiguration {
|
||||
b.DataSourceRef = value
|
||||
return b
|
||||
}
|
||||
|
@ -0,0 +1,66 @@
|
||||
/*
|
||||
Copyright The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// Code generated by applyconfiguration-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
// TypedObjectReferenceApplyConfiguration represents an declarative configuration of the TypedObjectReference type for use
|
||||
// with apply.
|
||||
type TypedObjectReferenceApplyConfiguration struct {
|
||||
APIGroup *string `json:"apiGroup,omitempty"`
|
||||
Kind *string `json:"kind,omitempty"`
|
||||
Name *string `json:"name,omitempty"`
|
||||
Namespace *string `json:"namespace,omitempty"`
|
||||
}
|
||||
|
||||
// TypedObjectReferenceApplyConfiguration constructs an declarative configuration of the TypedObjectReference type for use with
|
||||
// apply.
|
||||
func TypedObjectReference() *TypedObjectReferenceApplyConfiguration {
|
||||
return &TypedObjectReferenceApplyConfiguration{}
|
||||
}
|
||||
|
||||
// WithAPIGroup sets the APIGroup field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the APIGroup field is set to the value of the last call.
|
||||
func (b *TypedObjectReferenceApplyConfiguration) WithAPIGroup(value string) *TypedObjectReferenceApplyConfiguration {
|
||||
b.APIGroup = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithKind sets the Kind field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the Kind field is set to the value of the last call.
|
||||
func (b *TypedObjectReferenceApplyConfiguration) WithKind(value string) *TypedObjectReferenceApplyConfiguration {
|
||||
b.Kind = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithName sets the Name field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the Name field is set to the value of the last call.
|
||||
func (b *TypedObjectReferenceApplyConfiguration) WithName(value string) *TypedObjectReferenceApplyConfiguration {
|
||||
b.Name = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithNamespace sets the Namespace field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the Namespace field is set to the value of the last call.
|
||||
func (b *TypedObjectReferenceApplyConfiguration) WithNamespace(value string) *TypedObjectReferenceApplyConfiguration {
|
||||
b.Namespace = &value
|
||||
return b
|
||||
}
|
@ -5544,7 +5544,7 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
namedType: io.k8s.api.core.v1.TypedLocalObjectReference
|
||||
- name: dataSourceRef
|
||||
type:
|
||||
namedType: io.k8s.api.core.v1.TypedLocalObjectReference
|
||||
namedType: io.k8s.api.core.v1.TypedObjectReference
|
||||
- name: resources
|
||||
type:
|
||||
namedType: io.k8s.api.core.v1.ResourceRequirements
|
||||
@ -7133,6 +7133,23 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
scalar: string
|
||||
default: ""
|
||||
elementRelationship: atomic
|
||||
- name: io.k8s.api.core.v1.TypedObjectReference
|
||||
map:
|
||||
fields:
|
||||
- name: apiGroup
|
||||
type:
|
||||
scalar: string
|
||||
- name: kind
|
||||
type:
|
||||
scalar: string
|
||||
default: ""
|
||||
- name: name
|
||||
type:
|
||||
scalar: string
|
||||
default: ""
|
||||
- name: namespace
|
||||
type:
|
||||
scalar: string
|
||||
- name: io.k8s.api.core.v1.Volume
|
||||
map:
|
||||
fields:
|
||||
|
@ -867,6 +867,8 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
|
||||
return &applyconfigurationscorev1.TopologySpreadConstraintApplyConfiguration{}
|
||||
case corev1.SchemeGroupVersion.WithKind("TypedLocalObjectReference"):
|
||||
return &applyconfigurationscorev1.TypedLocalObjectReferenceApplyConfiguration{}
|
||||
case corev1.SchemeGroupVersion.WithKind("TypedObjectReference"):
|
||||
return &applyconfigurationscorev1.TypedObjectReferenceApplyConfiguration{}
|
||||
case corev1.SchemeGroupVersion.WithKind("Volume"):
|
||||
return &applyconfigurationscorev1.VolumeApplyConfiguration{}
|
||||
case corev1.SchemeGroupVersion.WithKind("VolumeDevice"):
|
||||
|
Loading…
Reference in New Issue
Block a user