Skip to content

Commit

Permalink
chart: add support for saving plans
Browse files Browse the repository at this point in the history
  • Loading branch information
maso7 committed May 26, 2023
1 parent 33cc2c6 commit c76d634
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/ec2-price-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: ec2-price-exporter
description: Prometheus exporter for spot and on-demand instance prices
type: application
version: 0.2.0
appVersion: "0.2.2"
version: 0.3.0
appVersion: "0.3.0"
sources:
- https://github.com/pixelfederation/ec2-price-exporter
- https://github.com/AndreZiviani/ec2-price-exporter
Expand Down
1 change: 1 addition & 0 deletions charts/ec2-price-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ spec:
{{ with .Values.instanceRegexes}}
- -instance-regexes={{- join "," . }}
{{- end}}
- -saving-plan-types={{ .Values.savingPlanTypes }}
{{- range $key, $value := .Values.extraArgs }}
- --{{ $key }}={{ $value }}
{{- end }}
Expand Down
5 changes: 4 additions & 1 deletion charts/ec2-price-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ image:
repository: ghcr.io/pixelfederation/ec2-price-exporter
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "v0.2.2"
tag: "v0.3.0"

imagePullSecrets: []
nameOverride: ""
Expand All @@ -31,6 +31,9 @@ instanceRegexes: {}
# - "^(r(5|6|7|8))([a-z]+)\\.(large|xlarge|2xlarge|4xlarge)$"
# - "^(t(4|5|6|7|8))([a-z]+)\\.(large|xlarge|2xlarge|4xlarge)$"

# Comma separated list of saving plans types (Accepted values: Compute, EC2Instance, SageMaker)
savingPlanTypes: ""

extraArgs: {}

serviceAccount:
Expand Down

0 comments on commit c76d634

Please sign in to comment.