Skip to content

Commit 9d5c429

Browse files
committed
Include withSubPath mixin volumeMount mixin
1 parent 2eb7200 commit 9d5c429

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

static-exporter/main.libsonnet

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ local k = import 'ksonnet-util/kausal.libsonnet';
2323
,
2424

2525
local deployment = k.apps.v1.deployment,
26+
local volumeMount = k.core.v1.volumeMount,
2627
deployment:
2728
deployment.new(name, replicas=1, containers=[self.container])
2829
+ k.util.configMapVolumeMount(self.configmap, '/usr/local/apache2/htdocs')
29-
+ k.util.configMapVolumeMount(self.httpdConfig, '/usr/local/apache2/conf'),
30+
+ k.util.configMapVolumeMount(self.httpdConfig, '/usr/local/apache2/conf/httpd.conf', volumeMount.withSubPath('httpd.conf')),
31+
3032
},
3133

3234
withData(data):: { data: data },

0 commit comments

Comments
 (0)