-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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 tests to detect default changes to podspec and podspectemplate defaults #78914
Conversation
/milestone v1.16 |
/retest |
/assign @janetkuo |
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.
Nits only and LGTM otherwise. Thanks the tests are very thorough.
pkg/apis/core/v1/defaults_test.go
Outdated
|
||
legacyscheme.Scheme.Default(obj) | ||
defaultedV := visit.value | ||
// t.Log(visit.path) |
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.
nit: remove this?
pkg/apis/core/v1/defaults_test.go
Outdated
@@ -34,6 +37,280 @@ import ( | |||
_ "k8s.io/kubernetes/pkg/api/testapi" | |||
) | |||
|
|||
// TestWorkloadCompatibility detects changes to defaults within PodTemplateSpec. |
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.
nit: TestWorkloadDefaults
8d97cda
to
617309c
Compare
fixed and tagged |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt 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 |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Adds unit tests to detect changes to defaults:
Which issue(s) this PR fixes:
xref #78904
follow up to (and based on) #78885
Special notes for your reviewer:
Only the second test commit needs reviewing.
Does this PR introduce a user-facing change?:
/sig apps
/cc @smarterclayton