-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding support to custom pricing configuration in helm chart (#109)
* #108: adding support to custom pricing configuration in helm chart * adding support for custom pricing configuration and bumping version * #108: update chart version and adding EOF to configmap yaml file * #108: update README file * updates the OpenCost Helm chart to include custom pricing options for on-premise setups. Closes #108 * #108: renaming configmap and resolving trailing comma issue * #108: updating docs --------- Co-authored-by: Houssem Charfeddine <[email protected]>
- Loading branch information
1 parent
0ba35f3
commit c5f41f0
Showing
5 changed files
with
76 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{- if and .Values.opencost.customPricing.createConfigmap .Values.opencost.customPricing.enabled }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ .Values.opencost.customPricing.configmapName }} | ||
data: | ||
default.json: |- | ||
{ | ||
{{- range $key, $val := .Values.opencost.customPricing.costModel }} | ||
{{ $key | quote | indent 6}}: {{ $val | quote }}, | ||
{{- end}} | ||
"provider" : "custom" | ||
} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters