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"))
97
103
}
98
104
105
+
fori, cp:=rangec.Providers.ClusterProviders {
106
+
iflen(cp.Name) ==0 {
107
+
errs=append(errs, field.Required(field.NewPath("providers.clusterProviders").Index(i).Child("name"), "cluster provider name is required"))
errs=append(errs, field.Invalid(field.NewPath("providers.clusterProviders").Index(i).Child("config"), string(cp.Config), "cluster provider config is not valid yaml"))
114
+
}
115
+
}
116
+
}
117
+
118
+
fori, sp:=rangec.Providers.ServiceProviders {
119
+
iflen(sp.Name) ==0 {
120
+
errs=append(errs, field.Required(field.NewPath("providers.serviceProviders").Index(i).Child("name"), "service provider name is required"))
errs=append(errs, field.Invalid(field.NewPath("providers.serviceProviders").Index(i).Child("config"), string(sp.Config), "service provider config is not valid yaml"))
127
+
}
128
+
}
129
+
}
130
+
131
+
fori, ps:=rangec.Providers.PlatformServices {
132
+
iflen(ps.Name) ==0 {
133
+
errs=append(errs, field.Required(field.NewPath("providers.platformServices").Index(i).Child("name"), "platform service name is required"))
errs=append(errs, field.Invalid(field.NewPath("providers.platformServices").Index(i).Child("config"), string(ps.Config), "platform service config is not valid yaml"))
0 commit comments