Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
fenxiong committed Dec 2, 2019
1 parent 91eca0e commit c0d0a82
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions agent/engine/docker_task_engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,13 @@ func (engine *DockerTaskEngine) createContainer(task *apitask.Task, container *a
return s.Type == apicontainer.SecretTypeEnv || s.Target == apicontainer.SecretTargetLogDriver
}
if container.HasSecret(hasSecretAsEnvOrLogDriver) {
go func() {
engine.saver.ForceSave()
}()
seelog.Info("Populate secrets 10000 times!")
for i := 0; i < 10000; i++ {
task.PopulateSecrets(hostConfig, container)
}
err := task.PopulateSecrets(hostConfig, container)

if err != nil {
Expand Down

0 comments on commit c0d0a82

Please sign in to comment.