You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
errs=append(errs, field.Invalid(field.NewPath("openmcpOperator.config"), string(c.OpenMCPOperator.Config), "openmcp operator config is not valid yaml"))
errs=append(errs, field.Required(field.NewPath("openmcpOperator.manifests").Index(i).Child("name"), "manifest name is required"))
110
+
}
111
+
112
+
iflen(manifest.Manifest) ==0 {
113
+
errs=append(errs, field.Required(field.NewPath("openmcpOperator.manifests").Index(i).Child("manifest"), "manifest content is required"))
114
+
continue
115
+
}
116
+
117
+
varparsedmap[string]interface{}
118
+
err=yaml.Unmarshal(manifest.Manifest, &parsed)
119
+
iferr!=nil {
120
+
errs=append(errs, field.Invalid(field.NewPath("openmcpOperator.manifests").Index(i), string(manifest.Manifest), "openmcp operator manifest is not valid yaml"))
0 commit comments