| OLD | NEW |
| 1 // Copyright 2016 The LUCI Authors. All rights reserved. | 1 // Copyright 2016 The LUCI Authors. All rights reserved. |
| 2 // Use of this source code is governed under the Apache License, Version 2.0 | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
| 3 // that can be found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
| 4 | 4 |
| 5 package main | 5 package main |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "fmt" | 8 "fmt" |
| 9 "sort" | 9 "sort" |
| 10 | 10 |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 case rv != 0: | 431 case rv != 0: |
| 432 return errKubeResourceNotFound | 432 return errKubeResourceNotFound |
| 433 | 433 |
| 434 default: | 434 default: |
| 435 if err := yaml.Unmarshal(x.stdout.Bytes(), obj); err != nil { | 435 if err := yaml.Unmarshal(x.stdout.Bytes(), obj); err != nil { |
| 436 return errors.Annotate(err).Reason("failed to unmarshal
YAML %(type)T").D("type", obj).Err() | 436 return errors.Annotate(err).Reason("failed to unmarshal
YAML %(type)T").D("type", obj).Err() |
| 437 } | 437 } |
| 438 return nil | 438 return nil |
| 439 } | 439 } |
| 440 } | 440 } |
| OLD | NEW |