Pass pod labels to controller revision

This commit is contained in:
Ayush Pateria
2018-02-09 14:54:18 +05:30
parent 8de89d9f74
commit 4f84a1cb7e
3 changed files with 49 additions and 75 deletions

View File

@@ -316,8 +316,10 @@ 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,
selector,
runtime.RawExtension{Raw: patch},
revision,