Skip to content

Commit

Permalink
add support for multiple simultaneous plugins (#3709)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Meijer <[email protected]>
  • Loading branch information
ameijer authored Oct 11, 2024
1 parent 21c25be commit 6760640
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
12 changes: 8 additions & 4 deletions cost-analyzer/templates/aggregator-cloud-cost-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,20 @@ spec:
secret:
secretName: {{ .Values.kubecostModel.plugins.secretName }}
items:
- key: datadog_config.json
path: datadog_config.json
{{- range $key, $config := .Values.kubecostModel.plugins.enabledPlugins }}
- key: {{ $config }}_config.json
path: {{ $config }}_config.json
{{- end }}
{{- end }}
{{- if .Values.kubecostModel.plugins.existingCustomSecret.enabled }}
- name: plugins-config
secret:
secretName: {{ .Values.kubecostModel.plugins.existingCustomSecret.name }}
items:
- key: datadog_config.json
path: datadog_config.json
{{- range $key, $config := .Values.kubecostModel.plugins.enabledPlugins }}
- key: {{ $config }}_config.json
path: {{ $config }}_config.json
{{- end }}
{{- end }}
- name: tmp
emptyDir: {}
Expand Down
12 changes: 8 additions & 4 deletions cost-analyzer/templates/cost-analyzer-deployment-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,20 @@ spec:
secret:
secretName: {{ .Values.kubecostModel.plugins.secretName }}
items:
- key: datadog_config.json
path: datadog_config.json
{{- range $key, $config := .Values.kubecostModel.plugins.enabledPlugins}}
- key: {{ $config }}_config.json
path: {{ $config }}_config.json
{{- end }}
{{- end }}
{{- if .Values.kubecostModel.plugins.existingCustomSecret.enabled }}
- name: plugins-config
secret:
secretName: {{ .Values.kubecostModel.plugins.existingCustomSecret.name }}
items:
- key: datadog_config.json
path: datadog_config.json
{{- range $key, $config := .Values.kubecostModel.plugins.enabledPlugins }}
- key: {{ $config }}_config.json
path: {{ $config }}_config.json
{{- end }}
{{- end }}
{{- if .Values.kubecostModel.plugins.install.enabled}}
- name: install-script
Expand Down

0 comments on commit 6760640

Please sign in to comment.