mirror of
https://github.com/rancher/types.git
synced 2025-09-12 21:13:18 +00:00
Use native k8s type for container.resources
This commit is contained in:
committed by
Darren Shepherd
parent
750b0aab39
commit
67cfe8200e
@@ -479,7 +479,6 @@ func podTypes(schemas *types.Schemas) *types.Schemas {
|
||||
MustImport(&Version, v1.Handler{}, handlerOverride{}).
|
||||
MustImport(&Version, v1.Probe{}, handlerOverride{}).
|
||||
MustImport(&Version, v1.Container{}, struct {
|
||||
Resources *Resources
|
||||
Environment map[string]string
|
||||
EnvironmentFrom []EnvironmentFrom
|
||||
InitContainer bool
|
||||
|
@@ -46,17 +46,6 @@ type EnvironmentFrom struct {
|
||||
TargetKey string
|
||||
}
|
||||
|
||||
type Resources struct {
|
||||
CPU *ResourceRequest
|
||||
Memory *ResourceRequest
|
||||
NvidiaGPU *ResourceRequest
|
||||
}
|
||||
|
||||
type ResourceRequest struct {
|
||||
Request string
|
||||
Limit string
|
||||
}
|
||||
|
||||
type Scheduling struct {
|
||||
Node *NodeScheduling
|
||||
Tolerate []v1.Toleration
|
||||
|
Reference in New Issue
Block a user