Skip to content

Commit

Permalink
Merge pull request #987 from kubecost/kaelan-helmsharedoverhead
Browse files Browse the repository at this point in the history
Add helm config parameter for shared overhead costs
  • Loading branch information
kaelanspatel committed Aug 25, 2021
2 parents cde7978 + c848e36 commit 717d8b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cost-analyzer/templates/cost-analyzer-pricing-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ data:
{{- if .Values.kubecostProductConfigs.sharedNamespaces }}
sharedNamespaces: "{{ .Values.kubecostProductConfigs.sharedNamespaces }}"
{{- end -}}
{{- if .Values.kubecostProductConfigs.sharedOverhead }}
sharedOverhead: "{{ .Values.kubecostProductConfigs.sharedOverhead }}"
{{- end -}}
{{- if gt (len (toString .Values.kubecostProductConfigs.shareTenancyCosts)) 0 }}
{{- if eq (toString .Values.kubecostProductConfigs.shareTenancyCosts) "false" }}
shareTenancyCosts: "false"
Expand Down
1 change: 1 addition & 0 deletions cost-analyzer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@ awsstore:
# serviceKeySecretName: "" # Use an existing AWS or Azure secret with format as in aws-service-key-secret.yaml or azure-service-key-secret.yaml. Leave blank if using createServiceKeySecret
# createServiceKeySecret: true # Creates a secret representing your cloud service key based on data in values.yaml. If you are storing unencrypted values, add a secret manually
# sharedNamespaces: "" # namespaces with shared workloads, example value: "kube-system\,ingress-nginx\,kubecost\,monitoring"
# sharedOverhead: "" # value representing a fixed external cost per month to be distributed among aggregations.
# shareTenancyCosts: true # enable or disable sharing costs such as cluster management fees (defaults to "true" on Settings page)
# productKey: # apply business or enterprise product license
# key: ""
Expand Down

0 comments on commit 717d8b5

Please sign in to comment.