change the StatefulSet observedGeneration from a pointer to an int for consistency

This commit is contained in:
Di Xu
2017-07-26 10:53:45 +08:00
parent 6000712803
commit 2098cc2639
3 changed files with 31 additions and 1 deletions

View File

@@ -731,6 +731,9 @@ func appsFuncs(codecs runtimeserializer.CodecFactory) []interface{} {
s.Spec.RevisionHistoryLimit = new(int32)
*s.Spec.RevisionHistoryLimit = 10
}
if s.Status.ObservedGeneration == nil {
s.Status.ObservedGeneration = new(int64)
}
},
}
}