Skip to content

Commit 779cac5

Browse files
authored
Merge pull request #123 from stefangusa/custom-annotations
Added custom annotations to sensorcontainer and actionrunner Pods
2 parents dd20231 + 4aaf06b commit 779cac5

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

33
## In Development
4+
* Added custom annotations to sensorcontainer and actionrunner Pods (#123) (by @stefangusa)
45

56

67
## v0.25.0

templates/deployments.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,9 @@ spec:
831831
annotations:
832832
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") $ | sha256sum }}
833833
checksum/packs: {{ include (print $.Template.BasePath "/configmaps_packs.yaml") $ | sha256sum }}
834+
{{- if .annotations }}
835+
{{ toYaml .annotations | indent 8 }}
836+
{{- end }}
834837
spec:
835838
imagePullSecrets:
836839
{{- if $.Values.enterprise.enabled }}
@@ -976,6 +979,9 @@ spec:
976979
annotations:
977980
checksum/config: {{ include (print $.Template.BasePath "/configmaps_st2-conf.yaml") . | sha256sum }}
978981
checksum/ssh: {{ include (print $.Template.BasePath "/secrets_ssh.yaml") . | sha256sum }}
982+
{{- if .Values.st2actionrunner.annotations }}
983+
{{ toYaml .Values.st2actionrunner.annotations | indent 8 }}
984+
{{- end }}
979985
spec:
980986
{{- if .Values.st2actionrunner.hostAliases }}
981987
hostAliases:

values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ st2:
108108
- name:
109109
livenessProbe: {}
110110
readinessProbe: {}
111+
annotations: {}
111112
# TODO: Find out recommended/default resources for this specific service (#5)
112113
resources: {}
113114
# Additional advanced settings to control pod/deployment placement
@@ -340,6 +341,7 @@ st2actionrunner:
340341
replicas: 5
341342
# TODO: Find out recommended/default resources for this specific service (#5)
342343
resources: {}
344+
annotations: {}
343345
# Additional advanced settings to control pod/deployment placement
344346
nodeSelector: {}
345347
tolerations: []

0 commit comments

Comments
 (0)