From c3998cececc084d2883e32b1d2e5f0f7efb26d68 Mon Sep 17 00:00:00 2001 From: Matt Ray Date: Fri, 3 Nov 2023 18:53:07 +1100 Subject: [PATCH 1/3] Add support for opencost.cloudIntegrationSecret Signed-off-by: Matt Ray --- charts/opencost/README.md | 1 + charts/opencost/values.yaml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/charts/opencost/README.md b/charts/opencost/README.md index 8f568d9..59e611c 100644 --- a/charts/opencost/README.md +++ b/charts/opencost/README.md @@ -31,6 +31,7 @@ $ helm install opencost opencost/opencost | imagePullSecrets | list | `[]` | List of secret names to use for pulling the images | | nameOverride | string | `""` | Overwrite the default name of the chart | | opencost.affinity | object | `{}` | Affinity settings for pod assignment | +| opencost.cloudIntegrationSecret | string | `""` | for the secret containing the [Cloud Costs `cloud-integration.json`](https://www.opencost.io/docs/configuration/#cloud-costs) | | opencost.customPricing.configPath | string | `"/tmp/custom-config"` | Path for the pricing configuration. | | opencost.customPricing.configmapName | string | `"custom-pricing-model"` | Customize the configmap name used for custom pricing | | opencost.customPricing.costModel | object | `{"CPU":1.25,"GPU":0.95,"RAM":0.5,"description":"Modified pricing configuration.","internetNetworkEgress":0.12,"regionNetworkEgress":0.01,"spotCPU":0.006655,"spotRAM":0.000892,"storage":0.25,"zoneNetworkEgress":0.01}` | More information about these values here: https://www.opencost.io/docs/configuration/on-prem#custom-pricing-using-the-opencost-helm-chart | diff --git a/charts/opencost/values.yaml b/charts/opencost/values.yaml index ca379f2..64f47ae 100644 --- a/charts/opencost/values.yaml +++ b/charts/opencost/values.yaml @@ -61,6 +61,9 @@ rbac: enabled: true opencost: + # -- for the secret containing the Cloud Costs cloud-integration.json https://www.opencost.io/docs/configuration/#cloud-costs + # -- kubectl create secret generic --from-file=cloud-integration.json -n opencost + cloudIntegrationSecret: "" exporter: # -- The GCP Pricing API requires a key. This is supplied just for evaluation. cloudProviderApiKey: "" From 187a43f891ce18dc5cacb515376347e78f4e86f2 Mon Sep 17 00:00:00 2001 From: Matt Ray Date: Sat, 4 Nov 2023 10:49:20 +1100 Subject: [PATCH 2/3] Chart version bump Signed-off-by: Matt Ray --- charts/opencost/Chart.yaml | 2 +- charts/opencost/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/opencost/Chart.yaml b/charts/opencost/Chart.yaml index 38d99d3..2110c79 100755 --- a/charts/opencost/Chart.yaml +++ b/charts/opencost/Chart.yaml @@ -9,7 +9,7 @@ keywords: - kubecost - opencost - monitoring -version: 1.26.1 +version: 1.26.2 maintainers: - name: mattray url: https://mattray.dev diff --git a/charts/opencost/README.md b/charts/opencost/README.md index 59e611c..6624520 100644 --- a/charts/opencost/README.md +++ b/charts/opencost/README.md @@ -2,7 +2,7 @@ OpenCost and OpenCost UI -![Version: 1.26.1](https://img.shields.io/badge/Version-1.26.1-informational?style=flat-square) +![Version: 1.26.2](https://img.shields.io/badge/Version-1.26.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.107.0](https://img.shields.io/badge/AppVersion-1.107.0-informational?style=flat-square) From 12fadb3214b48d19ab6d901959be65a6c240a9ef Mon Sep 17 00:00:00 2001 From: Matt Ray Date: Thu, 11 Jan 2024 16:23:04 +1100 Subject: [PATCH 3/3] Restored missing blank line Signed-off-by: Matt Ray --- charts/opencost/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/opencost/Chart.yaml b/charts/opencost/Chart.yaml index b0fe71c..5463aa5 100755 --- a/charts/opencost/Chart.yaml +++ b/charts/opencost/Chart.yaml @@ -14,4 +14,4 @@ maintainers: - name: mattray url: https://mattray.dev - name: toscott -home: https://github.com/opencost/opencost-helm-chart \ No newline at end of file +home: https://github.com/opencost/opencost-helm-chart