-
Notifications
You must be signed in to change notification settings - Fork 102
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 an integration test for the 'first-operator' example #828
Conversation
This ensures that changes in KUDO are reflected in this example.
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 👏
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
@@ -0,0 +1,6 @@ | |||
apiVersion: apps/v1 |
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.
Is the correct way to scale to update the deployment replicas directly?
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'm following https://kudo.dev/docs/testing.html#writing-your-first-test here.
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.
The example shows how to adjust the replicas on a deployment when testing a deployment. You aren’t testing a deployment so would be writing a different test than the example...
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.
Oooh, Justin is 100% right, I think this test should adjust the replicas parameter value instead. Good catch @jbarrick-mesosphere !
So what do I have to do instead? Is the test documentation not up-to-date and needs to be changed? |
I'm now scaling like it's done in |
5e4f049
to
2a013a9
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.
Thanks! I am fine with this test not scaling at all as well - I think one scale test is enough to catch a regression but 👍
What type of PR is this?
/kind enhancement
/kind test
What this PR does / why we need it:
This ensures that changes in KUDO are reflected in this example.
Which issue(s) this PR fixes:
Fixes #827
Special notes for your reviewer:
Does this PR introduce a user-facing change?: