Skip to content

Commit

Permalink
feat: helm: add the ability to add additional annotations to the depl…
Browse files Browse the repository at this point in the history
…oyment.
  • Loading branch information
ansgarschulte committed Mar 21, 2024
1 parent 99868fa commit 771ac84
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ charttesting:
@set -e; \
for dir in charts/steadybit-extension-*; do \
echo "Unit Testing $$dir"; \
helm unittest $$dir; \
helm unittest -u $$dir; \
done

## chartlint: Lint charts
Expand Down
2 changes: 1 addition & 1 deletion charts/steadybit-extension-k6/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: steadybit-extension-k6
description: Steadybit k6 extension Helm chart for Kubernetes.
version: 1.2.2
version: 1.2.3
appVersion: v1.0.12
home: https://www.steadybit.com/
icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png
Expand Down
6 changes: 6 additions & 0 deletions charts/steadybit-extension-k6/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ kind: Deployment
metadata:
name: {{ include "extensionlib.names.fullname" . }}
namespace: {{ .Release.Namespace }}
{{ if .Values.deploymentAnnotations }}
annotations:
{{- with .Values.deploymentAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
labels:
{{- range $key, $value := .Values.extraLabels }}
{{ $key }}: {{ $value }}
Expand Down
2 changes: 2 additions & 0 deletions charts/steadybit-extension-k6/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ serviceAccount:
# extra labels to apply to the Kubernetes resources
extraLabels: {}

# deploymentAnnotations -- Additional annotations to be added to the deployment.
deploymentAnnotations: {}

# podAnnotations -- Additional annotations to be added to the pods.
podAnnotations: {}
Expand Down

0 comments on commit 771ac84

Please sign in to comment.