-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🌱 Add initial clusterclass integration test #5337
🌱 Add initial clusterclass integration test #5337
Conversation
5bdb963
to
9a4a71d
Compare
d921750
to
8fbed2f
Compare
8fbed2f
to
179392c
Compare
thanks for adding this @killianmuldoon, I just did a first pass review. |
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.
@killianmuldoon a couple of nits, but I really like how you managed to keep code readable for such a complex test.
This is definitely a great start
class string | ||
workers *clusterv1.WorkersTopology | ||
version string | ||
controlPlaneReplicas int32 |
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.
Wondering if we should make it a nested builder, given that we are exploding all nested struct as we move on..
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 - the nested builders are becoming more of a clear necessity. I think I'm going to elide the issue here and open up a specific issue covering nested builders.
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.
Issue for this opened at: #5378
75f197d
to
5fb3704
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.
In general I like the current implementation. My main concern is the combination of just returning true/false and log statements. I think it would be easier to debug if we would just return an error in cases the assertions fail.
38eedf8
to
39ef2bd
Compare
Thx, looks good, one last nit from my side. Can you please resolve the non-controversial and fixed conversations above, so we get a clear picture if there are open discussion points? (mine should be all fine except the new one, I "thumps up'ed" accordingly.) |
lgtm +/- #5337 (comment) |
/lgtm |
/lgtm |
Signed-off-by: killianmuldoon <[email protected]>
39ef2bd
to
ce35ea6
Compare
Rebased and squashed. |
/lgtm |
/lgtm |
As it's test code I suppose it doesn't make a difference when we merge it either way. |
/hold |
@fabriziopandini Is this ready for merge now? |
/hold cancel |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This PR adds a quickstart style integration test for clusterClass to the topology package. The test includes a number of helper functions that assert certain changes in the cluster which can be used for other integration tests.
Signed-off-by: killianmuldoon [email protected]