@@ -22,6 +22,7 @@ const (
2222 ConfigMapOgcWebserviceProxyVolumeName = "ogc-webservice-proxy-config"
2323 ConfigMapLegendGeneratorVolumeName = "legend-generator-config"
2424 ConfigMapFeatureinfoGeneratorVolumeName = "featureinfo-generator-config"
25+ ConfigMapStylingFilesVolumeName = "styling-files"
2526 // TODO How should we determine this boundingbox?
2627 healthCheckBbox = "190061.4619730016857,462435.5987861062749,202917.7508707302331,473761.6884966178914"
2728
@@ -89,7 +90,7 @@ func GetVolumesForDeployment[O pdoknlv3.WMSWFS](obj O, configMapNames types.Hash
8990 if mapfile := obj .Mapfile (); mapfile != nil {
9091 volumes = append (volumes , v1.Volume {
9192 Name : "mapfile" ,
92- VolumeSource : newVolumeSource (mapfile .ConfigMapKeyRef .Name ),
93+ VolumeSource : newVolumeSource (mapfile .ConfigMapKeyRef .Key ),
9394 })
9495 }
9596
@@ -102,7 +103,30 @@ func GetVolumesForDeployment[O pdoknlv3.WMSWFS](obj O, configMapNames types.Hash
102103 Name : ConfigMapFeatureinfoGeneratorVolumeName ,
103104 VolumeSource : newVolumeSource (configMapNames .FeatureInfoGenerator ),
104105 }
105- volumes = append (volumes , lgVolume , figVolume )
106+ stylingFilesVolume := v1.Volume {
107+ Name : ConfigMapStylingFilesVolumeName ,
108+ VolumeSource : v1.VolumeSource {
109+ Projected : & v1.ProjectedVolumeSource {
110+ Sources : []v1.VolumeProjection {
111+ {
112+ ConfigMap : & v1.ConfigMapProjection {
113+ LocalObjectReference : v1.LocalObjectReference {
114+ Name : "gpkg-styling" ,
115+ },
116+ },
117+ },
118+ {
119+ ConfigMap : & v1.ConfigMapProjection {
120+ LocalObjectReference : v1.LocalObjectReference {
121+ Name : "tif-styling" ,
122+ },
123+ },
124+ },
125+ },
126+ },
127+ },
128+ }
129+ volumes = append (volumes , lgVolume , figVolume , stylingFilesVolume )
106130 }
107131
108132 if options := obj .Options (); options != nil {
0 commit comments