1
0
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:
Alena Prokharchyk
2018-04-02 15:00:14 -07:00
committed by Darren Shepherd
parent 750b0aab39
commit 67cfe8200e
2 changed files with 0 additions and 12 deletions

View File

@@ -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

View File

@@ -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