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
// HealthCheck is the struct with all fields to configure custom healthchecks
147
177
// +kubebuilder:validation:XValidation:rule="!has(self.querystring) || has(self.mimetype)",message="mimetype is required when a querystring is used"
148
-
// +kubebuilder:validation:XValidation:rule="(has(self.boundingbox) || has(self.querystring)) && !(has(self.querystring) && has(self.boundingbox))", message="healthcheck should have querystring + mimetype or boundingbox, not both"
178
+
// +kubebuilder:validation:XValidation:rule="(has(self.boundingbox) || has(self.querystring)) && !(has(self.querystring) && has(self.boundingbox))", message="healthcheck should have exactly 1 of querystring + mimetype or boundingbox"
179
+
// +kubebuilder:validation:XValidation:rule="(has(self.boundingbox) || has(self.mimetype)) && !(has(self.mimetype) && has(self.boundingbox))", message="healthcheck should have exactly 1 of querystring + mimetype or boundingbox"
// +kubebuilder:validation:XValidation:message="A layer should have sublayers or data, not both", rule="(has(self.data) || has(self.layers)) && !(has(self.data) && has(self.layers))"
207
+
// +kubebuilder:validation:XValidation:message="A layer should have exactly one of sublayers or data", rule="(has(self.data) || has(self.layers)) && !(has(self.data) && has(self.layers))"
176
208
// +kubebuilder:validation:XValidation:message="A layer with data attribute should have styling", rule="!has(self.data) || has(self.styles)"
177
209
// +kubebuilder:validation:XValidation:message="A layer should have keywords when visible", rule="!self.visible || has(self.keywords)"
178
210
// +kubebuilder:validation:XValidation:message="A layer should have a title when visible", rule="!self.visible || has(self.title)"
179
211
// +kubebuilder:validation:XValidation:message="A layer should have an abstract when visible", rule="!self.visible || has(self.abstract)"
180
-
// +kubebuilder:validation:XValidation:message="A layer should have an authority when visible and has a name", rule="!(self.visible && has(self.name)) || has(self.authority)"
181
-
// +kubebuilder:validation:XValidation:message="A layer should have a datasetMetadataUrl when visible and has a name", rule="!(self.visible && has(self.name)) || has(self.datasetMetadataUrl)"
182
212
typeLayerstruct {
183
213
// Name of the layer, required for layers on the 2nd or 3rd level
184
-
// +kubebuilder:validations:MinLength:=1
214
+
// +kubebuilder:validation:MinLength:=1
185
215
Name*string`json:"name,omitempty"`
186
216
187
217
// Title of the layer
188
-
// +kubebuilder:validations:MinLength:=1
218
+
// +kubebuilder:validation:MinLength:=1
189
219
Title*string`json:"title,omitempty"`
190
220
191
221
// Abstract of the layer
192
-
// +kubebuilder:validations:MinLength:=1
222
+
// +kubebuilder:validation:MinLength:=1
193
223
Abstract*string`json:"abstract,omitempty"`
194
224
195
225
// Keywords of the layer, required if the layer is visible
196
-
// +kubebuilder:validations:MinItems:=1
226
+
// +kubebuilder:validation:MinItems:=1
227
+
// +kubebuilder:validation:items:MinLength:=1
197
228
Keywords []string`json:"keywords,omitempty"`
198
229
199
230
// BoundingBoxes of the layer. If omitted the boundingboxes of the parent layer of the service is used.
0 commit comments