-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[api] support custom node affinity per-isogroup #106
Conversation
Previously we had been using the name of an IsolationGroup as its the value selector in a StatefulSet's NodeAffinity, with the key hardcoded to `failure-domain.beta.kubernetes.io/zone`. This meant that users had to have clusters across 3 unique zones. This relaxes those constraints and allows users to specify the NodeAffinity selectors they wish to use, meaning they can have clusters within a single zone or other failure domain.
236ac4e
to
2f6c77d
Compare
2f6c77d
to
63a56cf
Compare
Codecov Report
@@ Coverage Diff @@
## master #106 +/- ##
==========================================
+ Coverage 67.63% 68.16% +0.53%
==========================================
Files 26 26
Lines 1894 1888 -6
==========================================
+ Hits 1281 1287 +6
+ Misses 510 501 -9
+ Partials 103 100 -3 Continue to review full report at Codecov.
|
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 great overall, a couple of questions.
@@ -98,10 +97,6 @@ func main() { | |||
|
|||
defer logger.Sync() | |||
|
|||
logger.Info("Go", zap.Any("VERSION", runtime.Version())) |
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.
Why get ride of this?
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.
Since I added the m3x build reporter we get all of this info for free in a startup log from there
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.
nice.
) | ||
|
||
var ( | ||
errEmptyConfigMap = errors.New("ConfigMapName cannot be empty if non-nil") | ||
) | ||
|
||
// EnsurePlacement ensures that a placement exists otherwise create one |
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 assume this code was replaced beforehand, didn't see it replaced within this PR.
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.
Yeah turns out I couldn't find it used anywhere
scripts/run_e2e_tests.sh
Outdated
@@ -46,7 +46,7 @@ function main() { | |||
|
|||
trap cleanup EXIT | |||
|
|||
kubectl proxy & | |||
kubectl proxy &>/dev/null & |
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.
Why silence the output, couldn't it help if the test borks?
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.
So the annoying this was this would interleave the proxy output with the test and it was confusing what was coming from where, but I guess that's better than nothing so will re-add
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.
You could consider something like:
kubectl proxy |sed -e 's/^/kube proxy: /'&
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.
LGTM
@@ -98,10 +97,6 @@ func main() { | |||
|
|||
defer logger.Sync() | |||
|
|||
logger.Info("Go", zap.Any("VERSION", runtime.Version())) |
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.
nice.
Previously we had been using the name of an IsolationGroup as its
the value selector in a StatefulSet's NodeAffinity, with the key
hardcoded to
failure-domain.beta.kubernetes.io/zone
. This meant thatusers had to have clusters across 3 unique zones.
This relaxes those constraints and allows users to specify the
NodeAffinity selectors they wish to use, meaning they can have clusters
within a single zone or other failure domain.
Fixes #68