omni/client/pkg/template/testdata/cluster-inline-bytes.yaml
Artem Chernyshev 0cdb5a58c8
feat: support raw bytes in the inline fields for manifests/patches
Now inline supports all three variants:
- a single inline map (backward compatibility for config patches).
- a list of inline maps
- raw bytes, that can also contain multiple documents.

`omnictl cluster template export` command was updated to export config
patches/manifests as raw bytes to ensure that multiple values are
properly supported.

Fixes: https://github.com/siderolabs/omni/issues/2683

Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
2026-04-30 19:07:46 +03:00

41 lines
790 B
YAML

kind: Cluster
name: inline-bytes-cluster
kubernetes:
version: v1.30.0
manifests:
- name: raw-bytes-manifest
mode: full
inline: |
apiVersion: v1
kind: ConfigMap
metadata:
name: my-config
namespace: kube-system
data:
key: value
---
apiVersion: v1
kind: ConfigMap
metadata:
name: other-config
namespace: kube-system
data:
key: other-value
talos:
version: v1.7.0
patches:
- name: kubespan-enabled-bytes
inline: |
machine:
network:
kubespan:
enabled: true
---
kind: ControlPlane
machines:
- aaaaaaaa-1111-2222-3333-444444444444
---
kind: Workers
machines:
- bbbbbbbb-1111-2222-3333-444444444444