Commit 3b744cf6 authored by Nikhil Doifode's avatar Nikhil Doifode
Browse files

- Added front end changes.

- Changed CPU Config and Memory Config to float and int resp. in codegen
- Added cypress tests.
- Changed backend to handle float and int
parent b3f251c1
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -43,10 +43,10 @@ deployment:

  resources:
    requests:
    {{- if .Deployment.CpuEnabled}}
    {{- if and (.Deployment.CpuEnabled) (ne .Deployment.CpuMin "")}}
      cpu: {{.Deployment.CpuMin}}
    {{- end}}
    {{- if .Deployment.MemoryEnabled}}
    {{- if and (.Deployment.MemoryEnabled) (ne .Deployment.MemoryMin "")}}
      memory: {{.Deployment.MemoryMin}}
    {{- end}}
    limits:
@@ -55,10 +55,10 @@ deployment:
      nvidia.com/gpu: {{.Deployment.GpuCount}}
    {{- end}}
    {{- end}}
    {{- if .Deployment.CpuEnabled}}
    {{- if and (.Deployment.CpuEnabled) (ne .Deployment.CpuMax "")}}
      cpu: {{.Deployment.CpuMax}}
    {{- end}}
    {{- if .Deployment.MemoryEnabled}}
    {{- if and (.Deployment.MemoryEnabled) (ne .Deployment.MemoryMax "")}}
      memory: {{.Deployment.MemoryMax}}
    {{- end}}

+20 −0
Original line number Diff line number Diff line
@@ -81,6 +81,8 @@ deployment:
                                            isExternal: null
                                            environment: null
                                            gpuConfig: null
                                            cpuConfig: null
                                            memoryConfig: null
                                            externalConfig: null
                                            status: null
                                            userChartLocation: null
@@ -119,6 +121,8 @@ deployment:
                                            commandArguments: null
                                            commandExe: null
                                            gpuConfig: null
                                            cpuConfig: null
                                            memoryConfig: null
                                            externalConfig: null
                                            status: null
                                            userChartLocation: null
@@ -304,6 +308,8 @@ deployment:
                                            isExternal: null
                                            environment: null
                                            gpuConfig: null
                                            cpuConfig: null
                                            memoryConfig: null
                                            externalConfig: null
                                            status: null
                                            userChartLocation: null
@@ -342,6 +348,8 @@ deployment:
                                            commandArguments: null
                                            commandExe: null
                                            gpuConfig: null
                                            cpuConfig: null
                                            memoryConfig: null
                                            externalConfig: null
                                            status: null
                                            userChartLocation: null
@@ -429,6 +437,8 @@ deployment:
                                            isExternal: null
                                            environment: null
                                            gpuConfig: null
                                            cpuConfig: null
                                            memoryConfig: null
                                            externalConfig: null
                                            status: null
                                            userChartLocation: null
@@ -467,6 +477,8 @@ deployment:
                                            commandArguments: null
                                            commandExe: null
                                            gpuConfig: null
                                            cpuConfig: null
                                            memoryConfig: null
                                            externalConfig: null
                                            status: null
                                            userChartLocation: null
@@ -524,6 +536,8 @@ deployment:
                                            environment: null
                                            serviceConfig: null
                                            gpuConfig: null
                                            cpuConfig: null
                                            memoryConfig: null
                                            externalConfig: null
                                            status: null
                                            userChartLocation: null
@@ -603,6 +617,8 @@ deployment:
                                            commandExe: null
                                            serviceConfig: null
                                            gpuConfig: null
                                            cpuConfig: null
                                            memoryConfig: null
                                            status: null
                                            userChartLocation: null
                                            userChartAlternateValues: null
@@ -739,6 +755,8 @@ deployment:
                                            isExternal: null
                                            environment: null
                                            gpuConfig: null
                                            cpuConfig: null
                                            memoryConfig: null
                                            externalConfig: null
                                            status: null
                                            userChartLocation: null
@@ -777,6 +795,8 @@ deployment:
                                            commandArguments: null
                                            commandExe: null
                                            gpuConfig: null
                                            cpuConfig: null
                                            memoryConfig: null
                                            externalConfig: null
                                            status: null
                                            userChartLocation: null
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ To see how to make this your own, look here:
[README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md)

- API version: 0.0.1
- Build date: 2020-10-28T17:45:07.482-04:00
- Build date: 2020-11-02T16:24:59.205-05:00


### Running the server
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ To see how to make this your own, look here:
[README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md)

- API version: 0.0.1
- Build date: 2020-10-28T17:45:09.472-04:00
- Build date: 2020-11-02T16:25:01.358-05:00


### Running the server
+20 −0
Original line number Diff line number Diff line
@@ -81,6 +81,8 @@ deployment:
                                            isExternal: null
                                            environment: null
                                            gpuConfig: null
                                            cpuConfig: null
                                            memoryConfig: null
                                            externalConfig: null
                                            status: null
                                            userChartLocation: null
@@ -119,6 +121,8 @@ deployment:
                                            commandArguments: null
                                            commandExe: null
                                            gpuConfig: null
                                            cpuConfig: null
                                            memoryConfig: null
                                            externalConfig: null
                                            status: null
                                            userChartLocation: null
@@ -300,6 +304,8 @@ deployment:
                                            commandExe: null
                                            serviceConfig: null
                                            gpuConfig: null
                                            cpuConfig: null
                                            memoryConfig: null
                                            externalConfig: null
                                            status: null
                                            meta: null
@@ -331,6 +337,8 @@ deployment:
                                            commandExe: null
                                            serviceConfig: null
                                            gpuConfig: null
                                            cpuConfig: null
                                            memoryConfig: null
                                            externalConfig: null
                                            status: null
                                            meta: null
@@ -411,6 +419,8 @@ deployment:
                                            commandExe: null
                                            serviceConfig: null
                                            gpuConfig: null
                                            cpuConfig: null
                                            memoryConfig: null
                                            externalConfig: null
                                            status: null
                                            meta: null
@@ -442,6 +452,8 @@ deployment:
                                            commandExe: null
                                            serviceConfig: null
                                            gpuConfig: null
                                            cpuConfig: null
                                            memoryConfig: null
                                            externalConfig: null
                                            status: null
                                            meta: null
@@ -496,6 +508,8 @@ deployment:
                                            environment: null
                                            serviceConfig: null
                                            gpuConfig: null
                                            cpuConfig: null
                                            memoryConfig: null
                                            externalConfig: null
                                            status: null
                                            userChartLocation: null
@@ -575,6 +589,8 @@ deployment:
                                            commandExe: null
                                            serviceConfig: null
                                            gpuConfig: null
                                            cpuConfig: null
                                            memoryConfig: null
                                            status: null
                                            userChartLocation: null
                                            userChartAlternateValues: null
@@ -707,6 +723,8 @@ deployment:
                                            commandExe: null
                                            serviceConfig: null
                                            gpuConfig: null
                                            cpuConfig: null
                                            memoryConfig: null
                                            externalConfig: null
                                            status: null
                                            meta: null
@@ -738,6 +756,8 @@ deployment:
                                            commandExe: null
                                            serviceConfig: null
                                            gpuConfig: null
                                            cpuConfig: null
                                            memoryConfig: null
                                            externalConfig: null
                                            status: null
                                            meta: null
Loading