File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -88,15 +88,21 @@ local k = import 'ksonnet-util/kausal.libsonnet';
88
88
container+:
89
89
k.core.v1.container.withVolumeMounts([
90
90
k.core.v1.volumeMount.new(
91
- 'queries-yaml' ,
91
+ 'queries-yaml-volume ' ,
92
92
'/etc/pg_exporter/queries.yaml' ,
93
93
),
94
94
])
95
- + k.core.v1.configMap.new('queries-yaml' , {
96
- 'queries.yaml' : content,
97
- })
98
95
+ k.core.v1.container.withEnvMixin([
99
96
k.core.v1.envVar.new('PG_EXPORTER_EXTEND_QUERY_PATH' , '/etc/pg_exporter/queries.yaml' ),
100
97
]),
98
+ deployment+:
99
+ k.apps.v1.deployment.spec.template.spec.withVolumesMixin([
100
+ k.core.v1.volume.fromConfigMap('queries-yaml-volume' , 'queries-yaml' ),
101
+ ]),
102
+ local configMap = k.core.v1.configMap,
103
+ configMap:
104
+ configMap.new('queries-yaml' , {
105
+ 'queries.yaml' : content,
106
+ }),
101
107
},
102
108
}
You can’t perform that action at this time.
0 commit comments