You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It’s also possible to use so-called builtin variables in addition to user-defined variables. The following builtin variables are available:
@@ -720,6 +734,8 @@ Builtin variables are available under the `builtin.` prefix. Some examples:
720
734
- `spec.topology.workers.machineDeployments[i].name` field must be unique within a Cluster
721
735
- (defaulting) variables are defaulted according to the corresponding `ClusterClassVariable`
722
736
- all required variables must exist and match the schema defined in the corresponding `ClusterClassVariable` in the ClusterClass
737
+
- (defaulting) nested fields of `spec.topology.workers.machineDeployments[i].variables.overrides` are defaulted according to the corresponding `ClusterClassVariable`
738
+
- `spec.topology.workers.machineDeployments[i].variables.overrides` must match the schema defined in the corresponding `ClusterClassVariable` in the ClusterClass
723
739
724
740
- For object updates:
725
741
- If`spec.topology.class` is set it cannot be unset or modified, and if it's unset it cannot be set.
@@ -729,7 +745,9 @@ Builtin variables are available under the `builtin.` prefix. Some examples:
729
745
- A set of worker nodes can be added to or removed from the `spec.topology.workers.machineDeployments` list.
730
746
- (defaulting) variables are defaulted according to the corresponding `ClusterClassVariable`
731
747
- all required variables must exist and match the schema defined in the corresponding `ClusterClassVariable` in the ClusterClass
732
-
748
+
- (defaulting) nested fields of `spec.topology.workers.machineDeployments[i].variables.overrides` are defaulted according to the corresponding `ClusterClassVariable`
749
+
- `spec.topology.workers.machineDeployments[i].variables.overrides` must match the schema defined in the corresponding `ClusterClassVariable` in the ClusterClass
750
+
733
751
#### ClusterClass compatibility
734
752
735
753
There are cases where we must consider whether two ClusterClasses are compatible:
@@ -990,6 +1008,7 @@ to avoid creating separate ClusterClasses for every small deviation, e.g. a diff
990
1008
- Calculate patches:
991
1009
- evaluate patch selector
992
1010
- evaluate patch values
1011
+
- if variable overrides are set, they are used instead of the Cluster-level variables.
993
1012
- Apply patches to our local copies of the templates.
994
1013
<br>**Note**: Patches are applied in the order in which they are defined in the ClusterClass.
0 commit comments