Pass pod labels to controller revision
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user