@@ -2,8 +2,9 @@ package v3
22
33import (
44 "fmt"
5- sharedValidation "github.com/pdok/smooth-operator/pkg/validation"
65 "strings"
6+
7+ sharedValidation "github.com/pdok/smooth-operator/pkg/validation"
78)
89
910func (wfs * WFS ) ValidateCreate () ([]string , error ) {
@@ -36,11 +37,11 @@ func (wfs *WFS) ValidateUpdate(wfsOld *WFS) ([]string, error) {
3637
3738 // Check service.baseURL did not change
3839 if wfs .Spec .Service .URL != wfsOld .Spec .Service .URL {
39- reasons = append (reasons , fmt . Sprintf ( "service.baseURL is immutable" ) )
40+ reasons = append (reasons , "service.baseURL is immutable" )
4041 }
4142
4243 if (wfs .Spec .Service .Inspire == nil && wfsOld .Spec .Service .Inspire != nil ) || (wfs .Spec .Service .Inspire != nil && wfsOld .Spec .Service .Inspire == nil ) {
43- reasons = append (reasons , fmt . Sprintf ( "services cannot change from inspire to not inspire or the other way around" ) )
44+ reasons = append (reasons , "services cannot change from inspire to not inspire or the other way around" )
4445 }
4546
4647 validateWFS (wfs , & warnings , & reasons )
@@ -65,7 +66,7 @@ func validateWFS(wfs *WFS, warnings *[]string, reasons *[]string) {
6566 }
6667
6768 if service .Mapfile == nil && service .DefaultCrs != "EPSG:28992" && service .Bbox == nil {
68- * reasons = append (* reasons , fmt . Sprintf ( "service.bbox.defaultCRS is required when service.defaultCRS is not 'EPSG:28992'" ) )
69+ * reasons = append (* reasons , "service.bbox.defaultCRS is required when service.defaultCRS is not 'EPSG:28992'" )
6970 }
7071
7172 if service .Mapfile != nil {
0 commit comments