We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8229297 commit 5d2f80eCopy full SHA for 5d2f80e
spectrocloud/kubevirt/schema/k8s/metadata.go
@@ -148,6 +148,8 @@ func ExpandMetadata(in []interface{}) metav1.ObjectMeta {
148
149
if v, ok := m["annotations"].(map[string]string); ok && len(v) > 0 {
150
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{}))
153
}
154
155
if v, ok := m["labels"].(map[string]string); ok && len(v) > 0 {
0 commit comments