Skip to content

Commit 209b22d

Browse files
committed
PDOK-17792 Unit tests uitwerken voor WMS Kind in mapserver-operator conform ansible-operator. review punten
1 parent 5d44e5f commit 209b22d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

internal/controller/mapfilegenerator/mapfile_generator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func GetMapfileGeneratorInitContainer[O pdoknlv3.WMSWFS](obj O, image, postgisCo
3131
}
3232

3333
if obj.Type() == pdoknlv3.ServiceTypeWMS {
34-
stylingFilesVolAm := corev1.VolumeMount{Name: "styling-files", MountPath: "/styling", ReadOnly: true}
34+
stylingFilesVolAm := corev1.VolumeMount{Name: mapserver.ConfigMapStylingFilesVolumeName, MountPath: "/styling", ReadOnly: true}
3535
initContainer.VolumeMounts = append(initContainer.VolumeMounts, stylingFilesVolAm)
3636
}
3737
// Additional mapfile-generator configuration

internal/controller/mapserver/deployment.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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
)
@@ -118,7 +119,7 @@ func GetVolumesForDeployment[O pdoknlv3.WMSWFS](obj O, configMapNames types.Hash
118119
},
119120
}
120121
stylingFilesVolume := v1.Volume{
121-
Name: "styling-files",
122+
Name: ConfigMapStylingFilesVolumeName,
122123
VolumeSource: v1.VolumeSource{
123124
Projected: &v1.ProjectedVolumeSource{
124125
Sources: []v1.VolumeProjection{

0 commit comments

Comments
 (0)