opencost / opencost-helm-chart

OpenCost Helm chart
Apache License 2.0
82 stars 87 forks source link

Fix support for disabledMetrics configmap #204

Closed valdisrigdon closed 6 months ago

valdisrigdon commented 6 months ago

CONFIG_PATH is a single directory where both the custom pricing (aws.json) and metrics.json need to exist.

The only way to map multiple ConfigMaps into a single folder is to use subPath, so both ConfigMap volume mounts now use subPath.

This also unifies the way the names of the custom pricing and metrics configmap names are configured to follow the way the custom pricing one works.

This is a fix for the original change in https://github.com/opencost/opencost-helm-chart/pull/183

valdisrigdon commented 6 months ago

@mattray @toscott This is ready for a review