-
Notifications
You must be signed in to change notification settings - Fork 63
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 checks in ValidCreate and ValidUpdate in hbmmt webhook #1319
Conversation
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 so far. You can see in the examples I mentioned in the issue how they did it. You can maybe find an approach with a utility function that allows you to not copy paste the code in the two places
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.
cool! Small thing about consistency: Can you name everything you added with "HCloud"? Capital "C"? We usually do that
removed it |
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 from my side! Have you already tested the new webhooks for template objects?
You can also write unit tests similar to
var _ = Describe("HCloudMachine validation", func() { |
241c620
to
1e32559
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.
lgtm. Looks nice. Thanks! You can squash! make sure to choose a good commit title AND message where you describe what you do
25ccb55
to
180a275
Compare
5d50650
to
97690fa
Compare
ba2443b
to
bb83b4a
Compare
@janiskemper lgtm |
@yrs147 then plz squash :) |
bb83b4a
to
a8b58e1
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.
put a lot of empty lines after the code blocks, so that we can distinguish what belongs together and what does not
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.
small thing. You can squash again afterwards immediately. Thanks!
Added validation checks for hbmm , hbmmt , hcloudmachine and hcloud machinetemplate webhooks . Also added the unit tests for the same
87d996d
to
a674271
Compare
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #1165
Special notes for your reviewer:
Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
TODOs: