Write serializes the config to yaml. Encapsulates serialization without assuming the destination is a file.
(config clientcmdapi.Config)
| 450 | // Write serializes the config to yaml. |
| 451 | // Encapsulates serialization without assuming the destination is a file. |
| 452 | func Write(config clientcmdapi.Config) ([]byte, error) { |
| 453 | return runtime.Encode(clientcmdlatest.Codec, &config) |
| 454 | } |
| 455 | |
| 456 | func (rules ClientConfigLoadingRules) ResolvePaths() bool { |
| 457 | return !rules.DoNotResolvePaths |