omni/client/pkg/template/testdata/cluster1.yaml
Utku Ozdemir 74a9ad36f4
Some checks failed
default / default (push) Has been cancelled
default / e2e-backups (push) Has been cancelled
default / e2e-forced-removal (push) Has been cancelled
default / e2e-scaling (push) Has been cancelled
default / e2e-short (push) Has been cancelled
default / e2e-short-secureboot (push) Has been cancelled
default / e2e-templates (push) Has been cancelled
default / e2e-upgrades (push) Has been cancelled
default / e2e-workload-proxy (push) Has been cancelled
fix: make cluster validations consistent between templates and UI
Move the cluster validations which do not require server-side information (access to resources) to a common place.

Use this new validator both from the server side validations and from the cluster templates validations.

This makes the validations consistent, resolving the inconsistency where cluster names (ID) were validated on templates but not by the server.

Signed-off-by: Utku Ozdemir <utku.ozdemir@siderolabs.com>
2025-05-19 12:24:04 +02:00

48 lines
1.0 KiB
YAML

kind: Cluster
name: my-first-cluster
kubernetes:
version: v1.18.2
talos:
version: v1.5.0
features:
diskEncryption: true
patches:
- file: patches/my-cluster-patch.yaml
- file: ../testdata/patches/my-registry-mirrors.yaml
---
kind: ControlPlane
machines:
- 430d882a-51a8-48b3-ae00-90c5b0b5b0b0
- 4aed1106-6f44-4be9-9796-d4b5b0b5b0b0
patches:
- file: patches/my-cp-patch.yaml # name is derived from the filename
- name: kubespan-enabled # weight is implied (000-999)
inline:
machine:
network:
kubespan:
enabled: true
---
kind: Workers
machines:
- 430d882a-51a8-48b3-ab00-d4b5b0b5b0b0
---
kind: Machine
name: 430d882a-51a8-48b3-ae00-90c5b0b5b0b0
install:
disk: /dev/vda
patches: # ClusterMachine ConfigPatch
- name: my-address
inline:
machine:
network:
interfaces:
- interface: eth0
addresses: [192.168.0.2/24]
routes:
- gateway: "192.168.0.1"
---
kind: Machine
name: 430d882a-51a8-48b3-ab00-d4b5b0b5b0b0
locked: true