mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Merge pull request #30685 from gmarek/leak
Automatic merge from submit-queue Fix resource leak check in case of run that cleans up after failed one @fejta Broken by #28575
This commit is contained in:
commit
73de6f40fa
@ -233,10 +233,11 @@ func DiffResources(before, clusterUp, after, location string) {
|
||||
if len(lines) < 3 { // Ignore the +++ and --- header lines
|
||||
return
|
||||
}
|
||||
lines = lines[2:]
|
||||
|
||||
var added []string
|
||||
for _, l := range lines {
|
||||
if strings.HasPrefix(l, "+") {
|
||||
if strings.HasPrefix(l, "+") && len(strings.TrimPrefix(l, "+")) > 0 {
|
||||
added = append(added, l)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user