From c76d6348e3bd4f29bf51b85ae577c377a4ea12e7 Mon Sep 17 00:00:00 2001 From: Marian Soltys <41568766+maso7@users.noreply.github.com> Date: Fri, 26 May 2023 13:46:24 +0200 Subject: [PATCH] chart: add support for saving plans --- charts/ec2-price-exporter/Chart.yaml | 4 ++-- charts/ec2-price-exporter/templates/deployment.yaml | 1 + charts/ec2-price-exporter/values.yaml | 5 ++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/charts/ec2-price-exporter/Chart.yaml b/charts/ec2-price-exporter/Chart.yaml index 5343735..998fd61 100644 --- a/charts/ec2-price-exporter/Chart.yaml +++ b/charts/ec2-price-exporter/Chart.yaml @@ -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 diff --git a/charts/ec2-price-exporter/templates/deployment.yaml b/charts/ec2-price-exporter/templates/deployment.yaml index c11fd8b..72cca43 100644 --- a/charts/ec2-price-exporter/templates/deployment.yaml +++ b/charts/ec2-price-exporter/templates/deployment.yaml @@ -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 }} diff --git a/charts/ec2-price-exporter/values.yaml b/charts/ec2-price-exporter/values.yaml index 7c62ab8..ac32385 100644 --- a/charts/ec2-price-exporter/values.yaml +++ b/charts/ec2-price-exporter/values.yaml @@ -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: "" @@ -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: