Skip to content

Commit

Permalink
create the cache
Browse files Browse the repository at this point in the history
  • Loading branch information
h4ck3rk3y committed Jan 5, 2024
1 parent 9d4f142 commit 9037580
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ func NewValidatorEnvironment(serviceNames map[service.ServiceName]bool, artifact
availableCpuInMilliCores: availableCpuInMilliCores,
availableMemoryInMegaBytes: availableMemoryInMegaBytes,
isResourceInformationComplete: isResourceInformationComplete,
minMemoryByServiceName: map[service.ServiceName]compute_resources.MemoryInMegaBytes{},
minCPUByServiceName: map[service.ServiceName]compute_resources.CpuMilliCores{},
imageDownloadMode: imageDownloadMode,
// TODO account for idempotent runs on this and make it pre-load the cache whenever we create a NewValidatorEnvironment
persistentKeys: map[service_directory.DirectoryPersistentKey]ComponentExistence{},
minMemoryByServiceName: map[service.ServiceName]compute_resources.MemoryInMegaBytes{},
minCPUByServiceName: map[service.ServiceName]compute_resources.CpuMilliCores{},
imageDownloadMode: imageDownloadMode,
}
}

Expand Down

0 comments on commit 9037580

Please sign in to comment.