Skip to content

Commit 35a483d

Browse files
committed
Add reference to name that can be called elsewhere
1 parent 97b0792 commit 35a483d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

static-exporter/main.libsonnet

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ local k = import 'ksonnet-util/kausal.libsonnet';
22

33
{
44
new(name, image='httpd:2.4-alpine'):: {
5+
name:: name,
56
data:: { metrics: '' },
67

78
local configMap = k.core.v1.configMap,
@@ -51,7 +52,7 @@ local k = import 'ksonnet-util/kausal.libsonnet';
5152
local configMap = k.core.v1.configMap,
5253
local volumeMount = k.core.v1.volumeMount,
5354
httpdConfig:
54-
configMap.new('httpd-config')
55+
configMap.new(self.name, 'httpd-config')
5556
+ configMap.withData({
5657
'httpd.conf': importstr 'httpd.conf',
5758
}),

0 commit comments

Comments
 (0)