Skip to content

Commit 5d2f80e

Browse files
authored
PLT-1994:Annotation fix for data volume templates (#701)
1 parent 8229297 commit 5d2f80e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spectrocloud/kubevirt/schema/k8s/metadata.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ func ExpandMetadata(in []interface{}) metav1.ObjectMeta {
148148

149149
if v, ok := m["annotations"].(map[string]string); ok && len(v) > 0 {
150150
meta.Annotations = m["annotations"].(map[string]string) //utils.ExpandStringMap(m["annotations"].(map[string]interface{}))
151+
} else if v, ok := m["annotations"].(map[string]interface{}); ok && len(v) > 0 { // for supporting data volume templates annotations
152+
meta.Annotations = utils.ExpandStringMap(m["annotations"].(map[string]interface{}))
151153
}
152154

153155
if v, ok := m["labels"].(map[string]string); ok && len(v) > 0 {

0 commit comments

Comments
 (0)