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 5daae7f commit 3c74dbd
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-stackstate/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: steadybit-extension-stackstate
description: Steadybit stackstate extension Helm chart for Kubernetes.
version: 1.1.2
version: 1.1.3
appVersion: v1.0.8
home: https://www.steadybit.com/
icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png
Expand Down
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-stackstate/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,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 3c74dbd

Please sign in to comment.