From 29d03f92a3ff18ea0c934b7af485f655f4d254a7 Mon Sep 17 00:00:00 2001 From: Yann Soubeyrand Date: Wed, 13 Mar 2024 16:29:07 +0100 Subject: [PATCH] feat(yace): allow overriding image registry (#52) Signed-off-by: Yann Soubeyrand --- charts/yet-another-cloudwatch-exporter/Chart.yaml | 2 +- charts/yet-another-cloudwatch-exporter/README.md | 5 +++-- .../templates/deployment.yaml | 4 ++-- charts/yet-another-cloudwatch-exporter/values.yaml | 3 ++- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/charts/yet-another-cloudwatch-exporter/Chart.yaml b/charts/yet-another-cloudwatch-exporter/Chart.yaml index 532ed40..41163fc 100644 --- a/charts/yet-another-cloudwatch-exporter/Chart.yaml +++ b/charts/yet-another-cloudwatch-exporter/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: yet-another-cloudwatch-exporter description: Yace - Yet Another CloudWatch Exporter type: application -version: 0.29.0 +version: 0.30.0 appVersion: "v0.57.1" home: https://github.com/nerdswords/helm-charts sources: diff --git a/charts/yet-another-cloudwatch-exporter/README.md b/charts/yet-another-cloudwatch-exporter/README.md index 7ac0b65..17ac7cd 100644 --- a/charts/yet-another-cloudwatch-exporter/README.md +++ b/charts/yet-another-cloudwatch-exporter/README.md @@ -1,6 +1,6 @@ # yet-another-cloudwatch-exporter -![Version: 0.29.0](https://img.shields.io/badge/Version-0.29.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.57.1](https://img.shields.io/badge/AppVersion-v0.57.1-informational?style=flat-square) +![Version: 0.30.0](https://img.shields.io/badge/Version-0.30.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.57.1](https://img.shields.io/badge/AppVersion-v0.57.1-informational?style=flat-square) Yace - Yet Another CloudWatch Exporter @@ -35,7 +35,8 @@ helm install nerdswords/yet-another-cloudwatch-exporter | extraVolumes | list | `[]` | | | fullnameOverride | string | `""` | | | image.pullPolicy | string | `"IfNotPresent"` | | -| image.repository | string | `"ghcr.io/nerdswords/yet-another-cloudwatch-exporter"` | | +| image.registry | string | `"ghcr.io"` | | +| image.repository | string | `"nerdswords/yet-another-cloudwatch-exporter"` | | | image.tag | string | `""` | | | imagePullSecrets | list | `[]` | | | ingress.annotations | object | `{}` | | diff --git a/charts/yet-another-cloudwatch-exporter/templates/deployment.yaml b/charts/yet-another-cloudwatch-exporter/templates/deployment.yaml index 8718828..76c8d72 100644 --- a/charts/yet-another-cloudwatch-exporter/templates/deployment.yaml +++ b/charts/yet-another-cloudwatch-exporter/templates/deployment.yaml @@ -35,7 +35,7 @@ spec: - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} command: - "yace" @@ -125,4 +125,4 @@ spec: name: vol-yet-another-cloudwatch-exporter {{- if .Values.extraVolumes }} {{- toYaml .Values.extraVolumes | nindent 8}} - {{- end }} \ No newline at end of file + {{- end }} diff --git a/charts/yet-another-cloudwatch-exporter/values.yaml b/charts/yet-another-cloudwatch-exporter/values.yaml index 3c1ee34..88f2747 100644 --- a/charts/yet-another-cloudwatch-exporter/values.yaml +++ b/charts/yet-another-cloudwatch-exporter/values.yaml @@ -5,7 +5,8 @@ replicaCount: 1 image: - repository: ghcr.io/nerdswords/yet-another-cloudwatch-exporter + registry: ghcr.io + repository: nerdswords/yet-another-cloudwatch-exporter pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. tag: ""