57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
{{- if .Values.clusterController }}
|
|
{{- if .Values.clusterController.enabled }}
|
|
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 }}
|
|
{{- range .Values.clusterController.actionConfigs.clusterTurndown }}
|
|
---
|
|
apiVersion: kubecost.com/v1alpha1
|
|
kind: TurndownSchedule
|
|
metadata:
|
|
name: {{ .name }}
|
|
spec:
|
|
start: {{ .start }}
|
|
end: {{ .end }}
|
|
repeat: {{ .repeat }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|