inherited_labels and inherited_annotations not passed to PVC (#1784)

* inherited_labels and inherited_annotations not passed to PVC
* Fix developer.md related to the local operator deployment
This commit is contained in:
Dmitry Volodin
2022-03-01 17:07:37 +01:00
committed by GitHub
parent fb8a6c7a68
commit da83982313
4 changed files with 23 additions and 24 deletions
+2 -2
View File
@@ -98,8 +98,8 @@ func TestInheritedAnnotations(t *testing.T) {
t.Errorf("%s: pod template %v not inherited annotations %#v, got %#v", testName, sts.ObjectMeta.Name, inheritedAnnotations, sts.ObjectMeta.Annotations)
}
// pvc template
if util.MapContains(sts.Spec.VolumeClaimTemplates[0].Annotations, inheritedAnnotations) {
t.Errorf("%s: PVC template %v not expected to have inherited annotations %#v, got %#v", testName, sts.ObjectMeta.Name, inheritedAnnotations, sts.ObjectMeta.Annotations)
if !(util.MapContains(sts.Spec.VolumeClaimTemplates[0].Annotations, inheritedAnnotations)) {
t.Errorf("%s: PVC template %v not inherited annotations %#v, got %#v", testName, sts.ObjectMeta.Name, inheritedAnnotations, sts.ObjectMeta.Annotations)
}
}