Skip to content

Commit

Permalink
Add comment on difference in dependency map check
Browse files Browse the repository at this point in the history
Signed-off-by: Sune Keller <absukl@almbrand.dk>
  • Loading branch information
sirlatrom committed Oct 17, 2018
1 parent 5840dbe commit 2fcd8ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manager/dispatcher/assignments.go
Expand Up @@ -120,6 +120,9 @@ func (a *assignmentSet) addTaskDependencies(readTx store.ReadTx, t *api.Task) {
secretID := secretRef.SecretID
mapKey := typeAndID{objType: api.ResourceType_SECRET, id: secretID}

// This checks for the presence of each task in the dependency map for the
// secret. This is currently only done for secrets since the other types of
// dependencies do not support driver plugins.
if _, exists := a.tasksUsingDependency[mapKey][t.ID]; !exists {
assignSecret(a, readTx, mapKey, t)
}
Expand Down

0 comments on commit 2fcd8ad

Please sign in to comment.