Skip to content

Commit

Permalink
Merge pull request #803 from kubecost/mmd-cost-model-full-image
Browse files Browse the repository at this point in the history
Add a "hidden" value option to specify full image names
  • Loading branch information
michaelmdresser authored Mar 8, 2021
2 parents ea46f3c + b8088f2 commit 5b4caf8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
4 changes: 4 additions & 0 deletions cost-analyzer/templates/cost-analyzer-checks-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ spec:
containers:
- name: cost-analyzer-checks
{{- if .Values.kubecostChecks }}
{{- if .Values.kubecostChecks.fullImageName }}
image: {{ .Values.kubecostChecks.fullImageName }}
{{- else }}
image: {{ .Values.kubecostChecks.image }}:prod-{{ $.Chart.AppVersion }}
{{ end }}
{{- else }}
image: gcr.io/kubecost1/checks:prod-{{ $.Chart.AppVersion }}
{{ end }}
Expand Down
12 changes: 9 additions & 3 deletions cost-analyzer/templates/cost-analyzer-deployment-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ spec:
{{ end }}
containers:
{{- if .Values.kubecostModel }}
{{- if .Values.imageVersion}}
{{- if .Values.kubecostModel.fullImageName }}
- image: {{ .Values.kubecostModel.fullImageName }}
{{- else if .Values.imageVersion }}
- image: {{ .Values.kubecostModel.image }}:{{ .Values.imageVersion }}
{{- else }}
- image: {{ .Values.kubecostModel.image }}:prod-{{ $.Chart.AppVersion }}
Expand Down Expand Up @@ -546,7 +548,9 @@ spec:
- name: CUSTOM_ALERTS_ENABLED
value: {{ (quote .Values.global.notifications.alertConfigs.enabled) | default (quote false) }}
{{- if .Values.kubecostFrontend }}
{{- if .Values.imageVersion}}
{{- if .Values.kubecostFrontend.fullImageName }}
- image: {{ .Values.kubecostFrontend.fullImageName }}
{{- else if .Values.imageVersion }}
- image: {{ .Values.kubecostFrontend.image }}:{{ .Values.imageVersion }}
{{- else }}
- image: {{ .Values.kubecostFrontend.image }}:prod-{{ $.Chart.AppVersion }}
Expand Down Expand Up @@ -589,7 +593,9 @@ spec:
periodSeconds: 10
failureThreshold: 200
{{- if .Values.kubecost }}
{{- if .Values.imageVersion}}
{{- if .Values.kubecost.fullImageName }}
- image: {{ .Values.kubecost.fullImageName }}
{{- else if .Values.imageVersion}}
- image: {{ .Values.kubecost.image }}:{{ .Values.imageVersion }}
{{- else }}
- image: {{ .Values.kubecost.image }}:prod-{{ $.Chart.AppVersion }}
Expand Down

0 comments on commit 5b4caf8

Please sign in to comment.