builder: ignore label and label! prune filters
Signed-off-by: Tibor Vass <tibor@docker.com> (cherry picked from commit 62923f29f514fa621e7c31011c11c610cfe33ecd) Upstream-commit: 34867646af1d1344b1f0877bb3a00a51f7700245 Component: engine
This commit is contained in:
@@ -146,6 +146,8 @@ func (b *Builder) Prune(ctx context.Context, opts types.BuildCachePruneOptions)
|
||||
validFilters := make(map[string]bool, 1+len(cacheFields))
|
||||
validFilters["unused-for"] = true
|
||||
validFilters["until"] = true
|
||||
validFilters["label"] = true // TODO(tiborvass): handle label
|
||||
validFilters["label!"] = true // TODO(tiborvass): handle label!
|
||||
for k, v := range cacheFields {
|
||||
validFilters[k] = v
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user