func DecodeFromPathInto(obj runtime.Object, c runtime.Codec, filename string) error { b, err := ioutil.ReadFile(filename) c = runtime.YAMLDecoder(c) if err != nil { return err } return c.DecodeInto(b, obj) }