python/kubernetes/utils
Oz N Tiram 9e40421bcc create_from_yaml function deals with files only
Adding the ability to deal with strings containing yaml seems to repel
to much. So we stay with create_from_yaml with a bad name.

This removes the need fro StringIO to wrap strings.
Also note:

```
with open('foo.txt') as f:
    y = yaml.safe_load_all(f)

for i in y:
    print(i)

\# raises ValueError: I/O operation on closed file.
```

Hence, we indent the whole method body into the open block.

with open('foo.txt') as f:
    y = yaml.safe_load_all(f)
    for i in y:
        print(i)
2019-06-20 23:02:41 +02:00
..
__init__.py Relax pycodestyle: import only allowed at the top 2019-04-09 23:42:01 +02:00
create_from_yaml.py create_from_yaml function deals with files only 2019-06-20 23:02:41 +02:00