mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-05 01:51:35 +02:00
add inheritedAnnotations feature
This commit is contained in:
@@ -852,6 +852,7 @@ class EndToEndTestCase(unittest.TestCase):
|
||||
patch_sset_propagate_annotations = {
|
||||
"data": {
|
||||
"downscaler_annotations": "deployment-time,downscaler/*",
|
||||
"inherited_annotations": "owned-by",
|
||||
}
|
||||
}
|
||||
k8s.update_config(patch_sset_propagate_annotations)
|
||||
@@ -861,6 +862,7 @@ class EndToEndTestCase(unittest.TestCase):
|
||||
"annotations": {
|
||||
"deployment-time": "2020-04-30 12:00:00",
|
||||
"downscaler/downtime_replicas": "0",
|
||||
"owned-by": "acid"
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -870,6 +872,7 @@ class EndToEndTestCase(unittest.TestCase):
|
||||
annotations = {
|
||||
"deployment-time": "2020-04-30 12:00:00",
|
||||
"downscaler/downtime_replicas": "0",
|
||||
"owned-by": "acid",
|
||||
}
|
||||
|
||||
self.eventuallyTrue(lambda: k8s.check_statefulset_annotations(cluster_label, annotations), "Annotations missing")
|
||||
|
||||
Reference in New Issue
Block a user