2 Commits

Author SHA1 Message Date
Andrey Smirnov
d2d5c72bb5 fix: skip empty manifest YAML sub-documents
If sub-doc contains a comment, it's not empty, but when
loaded into JSON it yields `nil` which should be skipped, as
`Unstructured` can't load from such object.

E.g.:

```
---
 # Some comment
---
```

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2021-02-19 05:26:41 -08:00
Andrey Smirnov
7751920dba feat: add a tool and package to convert self-hosted CP to static pods
This is required to upgrade from Talos 0.8.x to 0.9.x. After the cluster
is fully upgraded, control plane is still self-hosted (as it was
bootstrapped with bootkube).

Tool `talosctl convert-k8s` (and library behind it) performs the upgrade
to self-hosted version.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2021-02-17 23:26:57 -08:00