Skip to content

Commit

Permalink
Merge pull request #29 from kubecost/AjayTripathy-support-values
Browse files Browse the repository at this point in the history
add if checks to check object existence
  • Loading branch information
dwbrown2 authored May 11, 2019
2 parents 576a133 + 875e6a4 commit fa5e3ec
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cost-analyzer/templates/cost-analyzer-checks-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ spec:
spec:
containers:
- name: cost-analyzer-checks
image: {{ .Values.kubecostChecks.image}}:prod-{{ $.Chart.Version }}
{{- if .Values.kubecostChecks }}
image: {{ .Values.kubecostChecks.image }}:prod-{{ $.Chart.Version }}
{{- else }}
image: ajaytripathy/kubecost-cost-model:prod-{{ $.Chart.Version }}
{{ end }}
args:
- node
- ./node/cron.js
Expand Down
12 changes: 12 additions & 0 deletions cost-analyzer/templates/cost-analyzer-deployment-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ spec:
persistentVolumeClaim:
claimName: {{ template "cost-analyzer.fullname" . }}
containers:
{{- if .Values.kubecostFrontend }}
- image: {{ .Values.kubecostFrontend.image }}:prod-{{ $.Chart.Version }}
{{- else }}
- image: ajaytripathy/kubecost-frontend:prod-{{ $.Chart.Version }}
{{ end }}
name: cost-analyzer-frontend
volumeMounts:
- name: nginx-conf
Expand All @@ -50,7 +54,11 @@ spec:
limits:
cpu: "100m"
memory: "256Mi"
{{- if .Values.kubecost }}
- image: {{ .Values.kubecost.image }}:prod-{{ $.Chart.Version }}
{{- else }}
- image: ajaytripathy/kubecost:prod-{{ $.Chart.Version }}
{{ end }}
resources:
requests:
cpu: "10m"
Expand All @@ -75,7 +83,11 @@ spec:
configMapKeyRef:
name: {{ template "cost-analyzer.fullname" . }}
key: kubecost-token
{{- if .Values.kubecostModel }}
- image: {{ .Values.kubecostModel.image }}:prod-{{ $.Chart.Version }}
{{- else }}
- image: ajaytripathy/kubecost-cost-model:prod-{{ $.Chart.Version }}
{{ end }}
name: cost-model
requests:
cpu: "10m"
Expand Down

0 comments on commit fa5e3ec

Please sign in to comment.