Commit 9a9b00a
✨ Sync machine annotations to nodes (#11813)
* 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]>1 parent 9e7afa7 commit 9a9b00a
File tree
17 files changed
+660
-228
lines changed- api/v1beta1
- controllers
- docs
- book/src/reference/api
- proposals
- internal/controllers/machine
- test/e2e
- data/infrastructure-docker/main/bases
- util
- annotations
- labels
17 files changed
+660
-228
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
0 commit comments