resolvePaths is a modified copy of k8s.io/kubernetes/pkg/client/unversioned/clientcmd.ClientConfigLoadingRules.resolvePaths. ResolvePaths updates the given refs to be absolute paths, relative to the given base directory
(refs []*string, base string)
| 698 | // resolvePaths is a modified copy of k8s.io/kubernetes/pkg/client/unversioned/clientcmd.ClientConfigLoadingRules.resolvePaths. |
| 699 | // ResolvePaths updates the given refs to be absolute paths, relative to the given base directory |
| 700 | func resolvePaths(refs []*string, base string) error { |
| 701 | for _, ref := range refs { |
| 702 | // Don't resolve empty paths |
| 703 | if len(*ref) > 0 { |
| 704 | // Don't resolve absolute paths |
| 705 | if !filepath.IsAbs(*ref) { |
| 706 | *ref = filepath.Join(base, *ref) |
| 707 | } |
| 708 | } |
| 709 | } |
| 710 | return nil |
| 711 | } |
| 712 | |
| 713 | // restClientFor is a modified copy of k8s.io/kubernetes/pkg/client/restclient.RESTClientFor. |
| 714 | // RESTClientFor returns a RESTClient that satisfies the requested attributes on a client Config |
no outgoing calls
no test coverage detected
searching dependent graphs…