You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| opencost.cloudIntegrationSecret | string |`""`| Existing secret name containing `cloud-integration.json` for Cloud Costs. Mutually exclusive with `opencost.cloudIntegrationJSON`. |
54
+
| opencost.cloudIntegrationJSON | string |`""`| Raw JSON string for `cloud-integration.json`. Creates `<fullname>-cloud-integration` in the release namespace. Mutually exclusive with `opencost.cloudIntegrationSecret`. |
54
55
| opencost.customPricing.configPath | string |`"/tmp/custom-config"`| Path for the pricing configuration. |
55
56
| opencost.customPricing.configmapName | string |`"custom-pricing-model"`| Customize the configmap name used for custom pricing |
56
57
| 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|
Copy file name to clipboardExpand all lines: charts/opencost/templates/deployment.yaml
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
{{- include "isPrometheusConfigValid" . }}
2
2
{{- include "kubeRBACProxyBearerTokenCheck" . }}
3
3
{{ include "opencost.caCertsSecretConfig.check" . }}
4
+
{{ include "opencost.cloudIntegration.secretConfigCheck" . }}
5
+
{{- $cloudIntegrationSecretName := include "opencost.cloudIntegration.secretName" . -}}
4
6
apiVersion: apps/v1
5
7
kind: Deployment
6
8
metadata:
@@ -331,7 +333,7 @@ spec:
331
333
- name: MCP_SERVER_ENABLED
332
334
value: "false"
333
335
{{- end }}
334
-
{{- if or .Values.plugins.enabled .Values.opencost.exporter.persistence.enabled .Values.opencost.exporter.extraVolumeMounts .Values.opencost.customPricing.enabled .Values.opencost.cloudIntegrationSecret .Values.opencost.updateCaTrust.enabled}}
336
+
{{- if or .Values.plugins.enabled .Values.opencost.exporter.persistence.enabled .Values.opencost.exporter.extraVolumeMounts .Values.opencost.customPricing.enabled .Values.opencost.metrics.config.enabled $cloudIntegrationSecretName .Values.opencost.updateCaTrust.enabled}}
0 commit comments