Skip to content

Commit

Permalink
add custom args
Browse files Browse the repository at this point in the history
  • Loading branch information
slamdev committed Jan 7, 2021
1 parent d2a7d36 commit 186a09e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/kube-resource-report/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: kube-resource-report
description: |-
Helm chart to deploy [kube-resource-report](https://codeberg.org/hjacobs/kube-resource-report).
type: application
version: 0.0.3
version: 0.0.4
appVersion: "20.10.0"
home: https://github.com/slamdev/helm-charts/tree/master/charts/kube-resource-report
icon: https://i.stack.imgur.com/mwFzF.png
Expand Down
3 changes: 2 additions & 1 deletion charts/kube-resource-report/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# kube-resource-report

![Version: 0.0.3](https://img.shields.io/badge/Version-0.0.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 20.10.0](https://img.shields.io/badge/AppVersion-20.10.0-informational?style=flat-square)
![Version: 0.0.4](https://img.shields.io/badge/Version-0.0.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 20.10.0](https://img.shields.io/badge/AppVersion-20.10.0-informational?style=flat-square)

Helm chart to deploy [kube-resource-report](https://codeberg.org/hjacobs/kube-resource-report).

Expand All @@ -18,6 +18,7 @@ Helm chart to deploy [kube-resource-report](https://codeberg.org/hjacobs/kube-re
|-----|------|---------|-------------|
| affinity | object | `{}` | affinity for scheduler pod assignment |
| app.resources | object | `{}` | custom resource configuration |
| args | list | `[]` | extra args to pass to container |
| env | string | `nil` | environment variables for the deployment |
| fullnameOverride | string | `""` | full name of the chart. |
| image.pullPolicy | string | `"IfNotPresent"` | image pull policy |
Expand Down
3 changes: 3 additions & 0 deletions charts/kube-resource-report/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ spec:
- --update-interval-minutes=1
- --additional-cost-per-cluster=0
- --pricing-file=/config/pricing.csv
{{- range .Values.args }}
- {{ . | quote }}
{{- end }}
- /output
resources:
{{- toYaml .Values.app.resources | nindent 12 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/kube-resource-report/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ env:
# - name: NODE_LABEL_INSTANCE_TYPE
# value: "beta.kubernetes.io/instance-type"

# args -- extra args to pass to container
args: []

# pricingData -- CSV with columns region,instance-type,monthly-price-usd
pricingData: |-
dc-1,master,30.000
Expand Down

0 comments on commit 186a09e

Please sign in to comment.