Modify tests

This commit is contained in:
Ayush Pateria
2018-02-22 19:19:06 +05:30
parent 1beed0f4c6
commit a269491f18
3 changed files with 28 additions and 22 deletions

View File

@@ -312,10 +312,9 @@ func newRevision(set *apps.StatefulSet, revision int64, collisionCount *int32) (
if err != nil {
return nil, err
}
podLabels := set.Spec.Template.Labels
cr, err := history.NewControllerRevision(set,
controllerKind,
podLabels,
set.Spec.Template.Labels,
runtime.RawExtension{Raw: patch},
revision,
collisionCount)