Migrate Scale.spec.replicas to declarative#141
Conversation
0c84b68 to
866e377
Compare
pkg/registry/core/replicationcontroller/storage/scale_declarative_validation_test.go
Outdated
Show resolved
Hide resolved
cdbf203 to
d78db0f
Compare
866e377 to
21f21b6
Compare
|
Thanks @yongruilin feedback applied. |
pkg/registry/core/replicationcontroller/storage/scale_declarative_validation_test.go
Outdated
Show resolved
Hide resolved
pkg/registry/core/replicationcontroller/storage/scale_declarative_validation_test.go
Outdated
Show resolved
Hide resolved
pkg/registry/core/replicationcontroller/storage/scale_declarative_validation_test.go
Outdated
Show resolved
Hide resolved
05110ba to
84f5165
Compare
|
@thockin All feedback applied |
ce2a7b2 to
230d392
Compare
thockin
left a comment
There was a problem hiding this comment.
I only see the new request.Subresources[] field in tests -- am I missing it, or it's just not used for real yet?
pkg/registry/core/replicationcontroller/storage/scale_declarative_validation_test.go
Show resolved
Hide resolved
pkg/registry/core/replicationcontroller/storage/scale_declarative_validation_test.go
Show resolved
Hide resolved
pkg/registry/core/replicationcontroller/storage/scale_declarative_validation_test.go
Outdated
Show resolved
Hide resolved
pkg/registry/core/replicationcontroller/storage/scale_declarative_validation_test.go
Outdated
Show resolved
Hide resolved
pkg/registry/core/replicationcontroller/storage/scale_declarative_validation_test.go
Outdated
Show resolved
Hide resolved
This adds declarative validation for all all versioned types of Scale since our testing uses apitesting.VerifyVersionedValidationEquivalence, will fail if we don't convert them all at the same time.
This applies to all group version kinds of Scale. Validation-gen must be enabled for all at the same time since our testing checks that cross-GV declarative validation to matches.
…pec.replicas validation. This does not change the resulting errors but it makes declarative validation testing easier.
230d392 to
9e7e3e4
Compare
It might be quite some time before we actually use |
|
Thanks @thockin. Feedback applied |
It's not used for real yet. |
Builds on #140
This sets up the wiring for replicationcontroller/scale and provides and example of how to do it in general.
Note that this does not re-evaluate the pre-existing decision that scale subresource be double validated-- once against scale subresource validation and then again against containing resource validation.
Testing in the storage package is not ideal. Suggestion welcome.