mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-22 13:17:07 +00:00
dra api: NodeResourceModel -> ResourceModel
When renaming NodeResourceSlice to ResourceSlice, the embedded [Node]ResourceModel also should have been renamed. Kubernetes-commit: a0add8d2c7578cd9f94fc302d6212f9f7d16175b
This commit is contained in:
parent
4467b1e437
commit
650f39267a
@ -18,22 +18,22 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1alpha2
|
package v1alpha2
|
||||||
|
|
||||||
// NodeResourceModelApplyConfiguration represents an declarative configuration of the NodeResourceModel type for use
|
// ResourceModelApplyConfiguration represents an declarative configuration of the ResourceModel type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type NodeResourceModelApplyConfiguration struct {
|
type ResourceModelApplyConfiguration struct {
|
||||||
NamedResources *NamedResourcesResourcesApplyConfiguration `json:"namedResources,omitempty"`
|
NamedResources *NamedResourcesResourcesApplyConfiguration `json:"namedResources,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NodeResourceModelApplyConfiguration constructs an declarative configuration of the NodeResourceModel type for use with
|
// ResourceModelApplyConfiguration constructs an declarative configuration of the ResourceModel type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func NodeResourceModel() *NodeResourceModelApplyConfiguration {
|
func ResourceModel() *ResourceModelApplyConfiguration {
|
||||||
return &NodeResourceModelApplyConfiguration{}
|
return &ResourceModelApplyConfiguration{}
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithNamedResources sets the NamedResources field in the declarative configuration to the given value
|
// WithNamedResources sets the NamedResources field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the NamedResources field is set to the value of the last call.
|
// If called multiple times, the NamedResources field is set to the value of the last call.
|
||||||
func (b *NodeResourceModelApplyConfiguration) WithNamedResources(value *NamedResourcesResourcesApplyConfiguration) *NodeResourceModelApplyConfiguration {
|
func (b *ResourceModelApplyConfiguration) WithNamedResources(value *NamedResourcesResourcesApplyConfiguration) *ResourceModelApplyConfiguration {
|
||||||
b.NamedResources = value
|
b.NamedResources = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
@ -30,11 +30,11 @@ import (
|
|||||||
// ResourceSliceApplyConfiguration represents an declarative configuration of the ResourceSlice type for use
|
// ResourceSliceApplyConfiguration represents an declarative configuration of the ResourceSlice type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ResourceSliceApplyConfiguration struct {
|
type ResourceSliceApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
NodeName *string `json:"nodeName,omitempty"`
|
NodeName *string `json:"nodeName,omitempty"`
|
||||||
DriverName *string `json:"driverName,omitempty"`
|
DriverName *string `json:"driverName,omitempty"`
|
||||||
NodeResourceModelApplyConfiguration `json:",inline"`
|
ResourceModelApplyConfiguration `json:",inline"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ResourceSlice constructs an declarative configuration of the ResourceSlice type for use with
|
// ResourceSlice constructs an declarative configuration of the ResourceSlice type for use with
|
||||||
|
@ -1559,8 +1559,6 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
|
|||||||
return &resourcev1alpha2.NamedResourcesResourcesApplyConfiguration{}
|
return &resourcev1alpha2.NamedResourcesResourcesApplyConfiguration{}
|
||||||
case v1alpha2.SchemeGroupVersion.WithKind("NamedResourcesStringSlice"):
|
case v1alpha2.SchemeGroupVersion.WithKind("NamedResourcesStringSlice"):
|
||||||
return &resourcev1alpha2.NamedResourcesStringSliceApplyConfiguration{}
|
return &resourcev1alpha2.NamedResourcesStringSliceApplyConfiguration{}
|
||||||
case v1alpha2.SchemeGroupVersion.WithKind("NodeResourceModel"):
|
|
||||||
return &resourcev1alpha2.NodeResourceModelApplyConfiguration{}
|
|
||||||
case v1alpha2.SchemeGroupVersion.WithKind("PodSchedulingContext"):
|
case v1alpha2.SchemeGroupVersion.WithKind("PodSchedulingContext"):
|
||||||
return &resourcev1alpha2.PodSchedulingContextApplyConfiguration{}
|
return &resourcev1alpha2.PodSchedulingContextApplyConfiguration{}
|
||||||
case v1alpha2.SchemeGroupVersion.WithKind("PodSchedulingContextSpec"):
|
case v1alpha2.SchemeGroupVersion.WithKind("PodSchedulingContextSpec"):
|
||||||
@ -1597,6 +1595,8 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
|
|||||||
return &resourcev1alpha2.ResourceFilterModelApplyConfiguration{}
|
return &resourcev1alpha2.ResourceFilterModelApplyConfiguration{}
|
||||||
case v1alpha2.SchemeGroupVersion.WithKind("ResourceHandle"):
|
case v1alpha2.SchemeGroupVersion.WithKind("ResourceHandle"):
|
||||||
return &resourcev1alpha2.ResourceHandleApplyConfiguration{}
|
return &resourcev1alpha2.ResourceHandleApplyConfiguration{}
|
||||||
|
case v1alpha2.SchemeGroupVersion.WithKind("ResourceModel"):
|
||||||
|
return &resourcev1alpha2.ResourceModelApplyConfiguration{}
|
||||||
case v1alpha2.SchemeGroupVersion.WithKind("ResourceRequest"):
|
case v1alpha2.SchemeGroupVersion.WithKind("ResourceRequest"):
|
||||||
return &resourcev1alpha2.ResourceRequestApplyConfiguration{}
|
return &resourcev1alpha2.ResourceRequestApplyConfiguration{}
|
||||||
case v1alpha2.SchemeGroupVersion.WithKind("ResourceRequestModel"):
|
case v1alpha2.SchemeGroupVersion.WithKind("ResourceRequestModel"):
|
||||||
|
Loading…
Reference in New Issue
Block a user