Merge branch 'rolling_updates_with_statefulset_annotations' of github.com:zalando-incubator/postgres-operator into rolling_updates_with_statefulset_annotations

This commit is contained in:
Oleksii Kliukin
2018-05-07 10:16:30 +02:00
3 changed files with 21 additions and 9 deletions
+6
View File
@@ -139,6 +139,12 @@ func specPatch(spec interface{}) ([]byte, error) {
}{spec})
}
func metaPatch(meta interface{}) ([]byte, error) {
return json.Marshal(struct {
ObjMeta interface{} `json:"metadata"`
}{meta})
}
func metadataAnnotationsPatch(annotations map[string]string) string {
annotationsList := make([]string, 0, len(annotations))