rancher-partner-charts/charts/kubecost/cost-analyzer/2.0.2/templates/kubecost-cluster-controller...

41 lines
1.2 KiB
YAML
Raw Normal View History

apiVersion: v1
kind: ConfigMap
metadata:
name: cluster-controller-continuous-cluster-sizing
namespace: {{ .Release.Namespace }}
labels:
{{- include "cost-analyzer.commonLabels" . | nindent 4 }}
{{- if .Values.clusterController.actionConfigs.clusterRightsize }}
binaryData:
config: |
{{- toJson .Values.clusterController.actionConfigs.clusterRightsize | b64enc | nindent 4 }}
{{- end }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: cluster-controller-nsturndown-config
namespace: {{ .Release.Namespace }}
labels:
{{- include "cost-analyzer.commonLabels" . | nindent 4 }}
{{- if .Values.clusterController.actionConfigs.namespaceTurndown }}
binaryData:
{{- range .Values.clusterController.actionConfigs.namespaceTurndown }}
{{ .name }}: |
{{- toJson . | b64enc | nindent 4 }}
{{- end }}
{{- end }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: cluster-controller-container-rightsizing-config
namespace: {{ .Release.Namespace }}
labels:
{{- include "cost-analyzer.commonLabels" . | nindent 4 }}
{{- if .Values.clusterController.actionConfigs.containerRightsize }}
binaryData:
config: |
{{- toJson .Values.clusterController.actionConfigs.containerRightsize | b64enc | nindent 4 }}
{{- end }}