| 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 "strconv" | 10 "strconv" |
| (...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 } | 668 } |
| 669 switch has, err = kubectl.hasContext(w); { | 669 switch has, err = kubectl.hasContext(w); { |
| 670 case err != nil: | 670 case err != nil: |
| 671 return "", errors.Annotate(err).Reason("failed to confir
m Kubernetes context").Err() | 671 return "", errors.Annotate(err).Reason("failed to confir
m Kubernetes context").Err() |
| 672 case !has: | 672 case !has: |
| 673 return "", errors.Reason("context %(context)q missing af
ter fetching credentials").D("context", kubeCtx).Err() | 673 return "", errors.Reason("context %(context)q missing af
ter fetching credentials").D("context", kubeCtx).Err() |
| 674 } | 674 } |
| 675 } | 675 } |
| 676 return kubeCtx, nil | 676 return kubeCtx, nil |
| 677 } | 677 } |
| OLD | NEW |