Loading charts/meep-virt-engine/virt-templates/defaultDir/templates/deployment.yaml +4 −6 Original line number Diff line number Diff line Loading @@ -47,12 +47,10 @@ spec: value: {{$val | quote}} {{- end}} {{- end}} {{- if .resources}} resources: {{toYaml .resources | indent 12}} {{- end}} {{- end}} {{- end}} nodeSelector: {{toYaml .Values.deployment.nodeSelector | indent 8}} Loading charts/meep-virt-engine/virt-templates/values-template.yaml +11 −1 Original line number Diff line number Diff line Loading @@ -42,11 +42,21 @@ deployment: {{.}} {{- end}} resources: {} resources: requests: {} limits: {{- if .Deployment.GpuEnabled}} {{- if eq .Deployment.GpuType "nvidia" }} nvidia.com/gpu: {{.Deployment.GpuCount}} {{- end}} {{- end}} nodeSelector: {} tolerations: [] affinity: {} service: enabled: {{.Service.Enabled}} name: {{.Service.Name}} Loading go-apps/meep-virt-engine/server/chart_template.go +11 −2 Original line number Diff line number Diff line Loading @@ -43,8 +43,9 @@ type DeploymentTemplate struct { ContainerCommandEnabled string ContainerCommand []string ContainerCommandArg []string ContainerPort string ContainerProtocol string GpuEnabled string GpuType string GpuCount string } type ServiceTemplate struct { Loading Loading @@ -241,6 +242,13 @@ func populateScenarioTemplate(scenario model.Scenario) ([]helm.Chart, error) { } } // Enable GPU template if present if proc.GpuConfig != nil { deploymentTemplate.GpuEnabled = "true" deploymentTemplate.GpuType = proc.GpuConfig.Type_ deploymentTemplate.GpuCount = strconv.Itoa(int(proc.GpuConfig.Count)) } // Enable External template if set if proc.IsExternal { externalTemplate.Enabled = "true" Loading Loading @@ -330,6 +338,7 @@ func setDeploymentDefaults(deploymentTemplate *DeploymentTemplate) { deploymentTemplate.ApiVersion = "v1" deploymentTemplate.ContainerEnvEnabled = "false" deploymentTemplate.ContainerCommandEnabled = "false" deploymentTemplate.GpuEnabled = "false" } func setServiceDefaults(serviceTemplate *ServiceTemplate) { Loading Loading
charts/meep-virt-engine/virt-templates/defaultDir/templates/deployment.yaml +4 −6 Original line number Diff line number Diff line Loading @@ -47,12 +47,10 @@ spec: value: {{$val | quote}} {{- end}} {{- end}} {{- if .resources}} resources: {{toYaml .resources | indent 12}} {{- end}} {{- end}} {{- end}} nodeSelector: {{toYaml .Values.deployment.nodeSelector | indent 8}} Loading
charts/meep-virt-engine/virt-templates/values-template.yaml +11 −1 Original line number Diff line number Diff line Loading @@ -42,11 +42,21 @@ deployment: {{.}} {{- end}} resources: {} resources: requests: {} limits: {{- if .Deployment.GpuEnabled}} {{- if eq .Deployment.GpuType "nvidia" }} nvidia.com/gpu: {{.Deployment.GpuCount}} {{- end}} {{- end}} nodeSelector: {} tolerations: [] affinity: {} service: enabled: {{.Service.Enabled}} name: {{.Service.Name}} Loading
go-apps/meep-virt-engine/server/chart_template.go +11 −2 Original line number Diff line number Diff line Loading @@ -43,8 +43,9 @@ type DeploymentTemplate struct { ContainerCommandEnabled string ContainerCommand []string ContainerCommandArg []string ContainerPort string ContainerProtocol string GpuEnabled string GpuType string GpuCount string } type ServiceTemplate struct { Loading Loading @@ -241,6 +242,13 @@ func populateScenarioTemplate(scenario model.Scenario) ([]helm.Chart, error) { } } // Enable GPU template if present if proc.GpuConfig != nil { deploymentTemplate.GpuEnabled = "true" deploymentTemplate.GpuType = proc.GpuConfig.Type_ deploymentTemplate.GpuCount = strconv.Itoa(int(proc.GpuConfig.Count)) } // Enable External template if set if proc.IsExternal { externalTemplate.Enabled = "true" Loading Loading @@ -330,6 +338,7 @@ func setDeploymentDefaults(deploymentTemplate *DeploymentTemplate) { deploymentTemplate.ApiVersion = "v1" deploymentTemplate.ContainerEnvEnabled = "false" deploymentTemplate.ContainerCommandEnabled = "false" deploymentTemplate.GpuEnabled = "false" } func setServiceDefaults(serviceTemplate *ServiceTemplate) { Loading