summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2024-11-28 09:12:48 +0100
committerPatrick Spek <p.spek@tyil.nl>2024-11-28 09:12:48 +0100
commit8889ea6992fd9c5fa0cbc108ee824141be39628f (patch)
tree16903e359bfcf4643f07daa7db4fa31b610a3307
parentf10658156f2dc74be0250d942d2a8af322d38234 (diff)
downloadexporter-fsdir-master.tar.gz
exporter-fsdir-master.tar.bz2
Add args.labelsHEADv1.1.0master
-rw-r--r--CHANGELOG.md18
-rw-r--r--Chart.yaml4
-rw-r--r--templates/deployment.yaml4
-rw-r--r--values.yaml3
4 files changed, 26 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..f76e5cf
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,18 @@
+# Changelog
+
+All notable changes to this project will be documented in this file.
+
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
+and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+## [1.1.0] - 2024-11-28
+
+### Added
+
+- To comply with the newly introduces `-label` argument to the exporter, a new
+ dictionary has been added as `args.labels`. Labels set through this will be
+ passed to the exporter, and thus added to the exported metrics.
+
+## [1.0.0] - 2024-11-27
+
+Initial release
diff --git a/Chart.yaml b/Chart.yaml
index 53add5b..314640f 100644
--- a/Chart.yaml
+++ b/Chart.yaml
@@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
-version: 1.0.1
+version: 1.1.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
-appVersion: "1.0.1"
+appVersion: "v1.1.0"
diff --git a/templates/deployment.yaml b/templates/deployment.yaml
index 54e136e..aba658a 100644
--- a/templates/deployment.yaml
+++ b/templates/deployment.yaml
@@ -44,6 +44,10 @@ spec:
- "{{ .Values.service.port }}"
- "-path"
- "{{ .Values.args.path }}"
+ {{- range $key, $value := .Values.args.labels }}
+ - "-label"
+ - "{{ $key }}={{ $value }}"
+ {{- end }}
{{- with .Values.args.namespace }}
- "-namespace"
- "{{ . }}"
diff --git a/values.yaml b/values.yaml
index a939647..dacef5d 100644
--- a/values.yaml
+++ b/values.yaml
@@ -11,7 +11,7 @@ image:
# This sets the pull policy for images.
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
- tag: "v1.0.1"
+ tag: ""
# This is for the secretes for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
imagePullSecrets: []
@@ -139,3 +139,4 @@ args:
namespace: null
path: "/mnt"
subsystem: null
+ labels: {}