-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ingestion config for standard discount (#3591)
* Add ingestion config for standard discount * Remove statefulset check in ingestionconfig * Fix nil in ingestion config * Fix nil in _helpers.tpl for standard discount * Re-add statefulset check in ingestionconfig
- Loading branch information
1 parent
1f90cfc
commit d55de59
Showing
4 changed files
with
37 additions
and
0 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
14 changes: 14 additions & 0 deletions
14
cost-analyzer/templates/cost-analyzer-ingestion-configmap.yaml
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 eq (include "aggregator.deployMethod" .) "statefulset" }} | ||
{{- if (.Values.kubecostProductConfigs).standardDiscount }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ default "ingestion-configs" .Values.ingestionConfigmapName }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{ include "cost-analyzer.commonLabels" . | nindent 4 }} | ||
data: | ||
standardDiscount: "{{ .Values.kubecostProductConfigs.standardDiscount }}" | ||
helmConfig: "true" | ||
{{- end -}} | ||
{{- 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