-
Notifications
You must be signed in to change notification settings - Fork 49
MetalLB: Fix regressions of tolerations and nodeSelectors #927
Conversation
surajssd
commented
Sep 9, 2020
- Remove the tolerations.
- Remove the nodeSelector from yaml and move the golang templated block down.
pkg/components/metallb/manifests.go
Outdated
@@ -371,13 +365,19 @@ spec: | |||
- ALL | |||
readOnlyRootFilesystem: true | |||
hostNetwork: true | |||
# XXX: Lokomotive spcific change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if it's worth worrying about, but I've used a different phrasing here:
// Divergence from upstream: disable fast dead node detection for layer 2. We use BGP and therefore |
I'll leave this up to you.
fa7f06a
to
d98d857
Compare
I've tested the following manually:
|
I'm not familiar with the testing strategy for the lokomotive repo, but will you also provide a regression test to check the custom tolerations/node selectors are added, just to prevent this from happening in the future? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but yeah, some regression tests for it would be nice. Even to render the manifests and scan them for certain strings.
dbf89dd
to
12c491e
Compare
eb9aefd
to
0bff235
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Temporarily tests seems OK, but I'd definitely prefer to have e2e tests for it, so we can test the functionality, not the implementation.
This commit fixes the regression introduced in the previous update of metallb. Signed-off-by: Suraj Deshmukh <suraj@kinvolk.io>
- Fix the regression added in the previous update by removing the extraneous nodeSelector field. - Move the nodeSelector golang template block down so that in the next update cycle we don't encounter this issue. Signed-off-by: Suraj Deshmukh <suraj@kinvolk.io>
This commit divides the functionality of `testRenderManifest` that generates yaml files into a separate function `renderManifest`. This will be helpful in subsequent test additions. Signed-off-by: Suraj Deshmukh <suraj@kinvolk.io>
This commit adds tests that check if the specified component attributes in hcl configs are correctly converted to corresponding Kubernetes yaml objects. Signed-off-by: Suraj Deshmukh <suraj@kinvolk.io>
- Fix the regression added in the previous update by removing the extraneous nodeSelector field. - Move the nodeSelector golang template block down so that in the next update cycle we don't encounter this issue. Signed-off-by: Suraj Deshmukh <suraj@kinvolk.io>
0bff235
to
0a452fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK