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
* Sync machine annotattions to nodes
Signed-off-by: Nolan Brubaker <[email protected]>
* Plumb manager argument through to controller
Signed-off-by: Nolan Brubaker <[email protected]>
* Manage annotations from previous reconciles
Signed-off-by: Nolan Brubaker <[email protected]>
* Add e2e test and refactor filtering
Signed-off-by: Nolan Brubaker <[email protected]>
* Documents new annotations
This change documents the new cluster.x-k8s.io/labels-from-machine and
cluster.x-k8s.io/annotations-from-machine annotations.
* refactor: drop getManaged{Labels, Annotations} wrappers
This refactors reconcileNode to remove the getManagedLabels and
getManagedAnnotations wrapper functions, in favour of calling the
libraries directly.
* Moves Tests GetManagedLabels,GetManagedAnnotations
This moves the tests for GetManagedLabels and GetManagedAnnotations to
their respective util packages, as that's where they're now implemented.
* Don't add known CAPI annotatoins to annotations-from-machine
Signed-off-by: Nolan Brubaker <[email protected]>
* Reduce length of annotation to fix tests
Signed-off-by: Nolan Brubaker <[email protected]>
* Add more details about a use case
Signed-off-by: Nolan Brubaker <[email protected]>
* Address review feedback
Signed-off-by: Nolan Brubaker <[email protected]>
* Apply suggestions from code review
Co-authored-by: Stefan Büringer <[email protected]>
Signed-off-by: Nolan Brubaker <[email protected]>
* Additional review feedback
Signed-off-by: Nolan Brubaker <[email protected]>
---------
Signed-off-by: Nolan Brubaker <[email protected]>
Co-authored-by: Theo Barber-Bany <[email protected]>
Co-authored-by: Stefan Büringer <[email protected]>
| before-upgrade.hook.cluster.cluster.x-k8s.io | It specifies the prefix we search each annotation for during the before-upgrade lifecycle hook to block propagating the new version to the control plane. These hooks will prevent propagation of changes made to the Cluster Topology to the underlying objects. | User | Clusters |
24
+
| cluster.x-k8s.io/annotations-from-machine| It is set on nodes to track the annotations that originated from machines.| Cluster API | Nodes (workload cluster)|
24
25
| cluster.x-k8s.io/cloned-from-groupkind | It is the annotation that stores the group-kind of the template from which the current resource has been cloned from. | Cluster API | All Cluster API objects cloned from a template |
25
26
| cluster.x-k8s.io/cloned-from-name | It is the annotation that stores the name of the template from which the current resource has been cloned from. | Cluster API | All Cluster API objects cloned from a template |
26
27
| cluster.x-k8s.io/cluster-name | It is set on nodes identifying the name of the cluster the node belongs to. | Cluster API | Nodes (workload cluster) |
27
28
| cluster.x-k8s.io/cluster-namespace | It is set on nodes identifying the namespace of the cluster the node belongs to. | Cluster API | Nodes (workload cluster) |
28
29
| cluster.x-k8s.io/delete-machine | It marks control plane and worker nodes that will be given priority for deletion when KCP or a MachineSet scales down. It is given top priority on all delete policies. | User | Machines |
29
30
| cluster.x-k8s.io/disable-machine-create | It can be used to signal a MachineSet to stop creating new machines. It is utilized in the OnDelete MachineDeploymentStrategy to allow the MachineDeployment controller to scale down older MachineSets when Machines are deleted and add the new replicas to the latest MachineSet. | Cluster API | MachineSets |
31
+
| cluster.x-k8s.io/labels-from-machine| It is set on nodes to track the labels that originated from machines.| Cluster API | Nodes (workload cluster)|
30
32
| cluster.x-k8s.io/managed-by | It can be applied to InfraCluster resources to signify that some external system is managing the cluster infrastructure. Provider InfraCluster controllers will ignore resources with this annotation. An external controller must fulfill the contract of the InfraCluster resource. External infrastructure providers should ensure that the annotation, once set, cannot be removed. | User | InfraClusters |
31
33
| cluster.x-k8s.io/machine | It is set on nodes identifying the machine the node belongs to. | Cluster API | Nodes (workload cluster) |
32
34
| cluster.x-k8s.io/owner-kind | It is set on nodes identifying the machine's owner kind the node belongs to. | Cluster API | Nodes (workload cluster) |
Labels that meet at least one of the following criteria are always propagated to the Node:
67
67
- Has `node-role.kubernetes.io` as prefix.
68
68
- Belongs to `node-restriction.kubernetes.io` domain.
69
69
- Belongs to `node.cluster.x-k8s.io` domain.
70
70
71
71
In addition, any labels that match at least one of the regexes provided by the `--additional-sync-machine-labels` flag on the manager will be synced from the Machine to the Node.
72
+
73
+
Annotations that meet at least one of the following criteria are always propagated to the Node:
74
+
- Belongs to `node.cluster.x-k8s.io` domain
75
+
76
+
In addition, any annotations that match at least one of the regexes provided by the `--additional-sync-machine-annotations` flag on the manager will be synced from the Machine to the Node.
0 commit comments