mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
Merge pull request #143 from rojkov/qat-env-var-numbering-fix
qat: fix numbering of env vars
This commit is contained in:
commit
2ce62fbc7e
@ -210,8 +210,8 @@ func isValidVfDeviceID(vfDevID string) bool {
|
||||
|
||||
func (dp *devicePlugin) PostAllocate(response *pluginapi.AllocateResponse) error {
|
||||
tempMap := make(map[string]string)
|
||||
counter := 0
|
||||
for _, cresp := range response.ContainerResponses {
|
||||
counter := 0
|
||||
for k := range cresp.Envs {
|
||||
tempMap[strings.Join([]string{"QAT", strconv.Itoa(counter)}, "")] = cresp.Envs[k]
|
||||
counter++
|
||||
|
Loading…
Reference in New Issue
Block a user