@@ -35,17 +35,12 @@ func MapWFSToCapabilitiesGeneratorInput(wfs *pdoknlv3.WFS, ownerInfo *smoothoper
3535 return nil , err
3636 }
3737
38- serviceVersion := mapperutils .GetLabelValueByKey (wfs .ObjectMeta .Labels , "service-version" )
39- if serviceVersion == nil {
40- serviceVersion = mapperutils .GetLabelValueByKey (wfs .ObjectMeta .Labels , "pdok.nl/service-version" )
41- }
4238 config := capabilitiesgenerator.Config {
4339 Global : capabilitiesgenerator.Global {
4440 Namespace : mapperutils .GetNamespaceURI (wfs .Spec .Service .Prefix , ownerInfo ),
4541 Prefix : wfs .Spec .Service .Prefix ,
4642 Onlineresourceurl : wfs .URL ().Scheme + "://" + wfs .URL ().Host ,
4743 Path : wfs .URL ().Path ,
48- Version : * serviceVersion ,
4944 },
5045 Services : capabilitiesgenerator.Services {
5146 WFS200Config : & capabilitiesgenerator.WFS200Config {
@@ -271,19 +266,13 @@ func MapWMSToCapabilitiesGeneratorInput(wms *pdoknlv3.WMS, ownerInfo *smoothoper
271266
272267 abstract := mapperutils .EscapeQuotes (wms .Spec .Service .Abstract )
273268
274- serviceVersion := mapperutils .GetLabelValueByKey (wms .ObjectMeta .Labels , "service-version" )
275- if serviceVersion == nil {
276- serviceVersion = mapperutils .GetLabelValueByKey (wms .ObjectMeta .Labels , "pdok.nl/service-version" )
277- }
278-
279269 config := capabilitiesgenerator.Config {
280270 Global : capabilitiesgenerator.Global {
281271 // Prefix is unused for the WMS, but doesn't hurt to pass it
282272 Namespace : mapperutils .GetNamespaceURI (wms .Spec .Service .Prefix , ownerInfo ),
283273 Prefix : wms .Spec .Service .Prefix ,
284274 Onlineresourceurl : wms .URL ().Scheme + "://" + wms .URL ().Host ,
285275 Path : wms .URL ().Path ,
286- Version : * serviceVersion ,
287276 },
288277 Services : capabilitiesgenerator.Services {
289278 WMS130Config : & capabilitiesgenerator.WMS130Config {
0 commit comments