Skip to content

Commit

Permalink
Merge pull request #17 from yellowhat/main
Browse files Browse the repository at this point in the history
Use appVersion as image.tag
  • Loading branch information
rootfs authored May 1, 2023
2 parents 440b066 + 756b71c commit f4769b7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions chart/kepler/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: kepler
description: A Helm chart for kepler
type: application
version: 0.3.2
appVersion: 0.4.0
version: 0.3.3
appVersion: latest
home: https://sustainable-computing.io/html/index.html
sources:
- https://github.com/sustainable-computing-io/kepler
2 changes: 1 addition & 1 deletion chart/kepler/templates/server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
serviceAccountName: {{ include "kepler.serviceAccountName" . }}
containers:
- name: kepler-exporter
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
Expand Down
8 changes: 5 additions & 3 deletions chart/kepler/values.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
---
image:
repository: quay.io/sustainable_computing_io/kepler
# -- Repository to pull the image from
repository: "quay.io/sustainable_computing_io/kepler"
# -- Image tag, if empty it will get it from the chart's appVersion
tag: ""
# -- Pull policy
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: "latest"

imagePullSecrets: []
nameOverride: ""
Expand Down

0 comments on commit f4769b7

Please sign in to comment.