@@ -10,16 +10,21 @@ the host with a new one matching the updated spec. If a `Machine` object is
10
10
deleted, the corresponding ` Node ` should have its external resources released by
11
11
the provider-specific controller, and should be deleted as well.
12
12
13
+ Machines can be associated with a Cluster using a custom label
14
+ ` cluster.k8s.io/clusterName ` . Providers using the ` Cluster ` controller must
15
+ provide the label which references the name of a cluster living in the same
16
+ namespace.
17
+
13
18
{% method %}
14
19
## Machine
15
20
16
21
` Machine ` has 4 fields:
17
22
18
- ` Spec ` contains the desired cluster state specified by the object. While much
23
+ ` Spec ` contains the desired machine state specified by the object. While much
19
24
of the ` Spec ` is defined by users, unspecified parts may be filled in with
20
25
defaults or by Controllers such as autoscalers.
21
26
22
- ` Status ` contains only observed cluster state and is only written by
27
+ ` Status ` contains only observed machine state and is only written by
23
28
controllers. ` Status ` is not the source of truth for any information, but
24
29
instead aggregates and publishes observed state.
25
30
@@ -93,7 +98,7 @@ methods.
93
98
` Delete() ` will only be called when the ` Machine ` is in the process of being
94
99
deleted.
95
100
96
- The definition of ` Exist ()` is determined by the provider.
101
+ The definition of ` Exists ()` is determined by the provider.
97
102
98
103
** TODO** : Provide more guidance on ` Exists() ` .
99
104
@@ -108,7 +113,7 @@ We need a diagram tracing the logic from resource creation through updates
108
113
and finally deletion.
109
114
{% endpanel %}
110
115
111
- 0 . Determine the ` Cluster ` associated with the ` Machine ` .
116
+ 0 . Determine the ` Cluster ` associated with the ` Machine ` from its ` cluster.k8s.io/clusterName ` label .
112
117
- If the ` Machine ` hasn't been deleted and doesn't have a finalizer, add one.
113
118
- If the ` Machine ` is being deleted, and there is no finalizer, we're done
114
119
- Check if the ` Machine ` is allowed to be deleted. [ ^ 1 ]
0 commit comments