Skip to content

Commit 9361d0c

Browse files
authored
Merge pull request #162 from binarysta/pod_annotations
Add pod annotations Thanks again for coming back so quickly
2 parents 64eb2df + a4ba334 commit 9361d0c

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

charts/core-dump-handler/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ Composer
311311
* podSelectorLabel: Enable composer only if pod has label matching the specified selector. (Default "" matches all pods)
312312
313313
Daemonset
314+
* podAnnotations: Annotations to be added to core-dump-handler pods (Default nil)
314315
* hostDirectory: Maps to the HOST_DIR environment variable (Default "/var/mnt/core-dump-handler")
315316
* coreDirectory: Maps to the CORE_DIR environment variable (Default "/var/mnt/core-dump-handler/cores")
316317
* eventDirectory: Maps to the EVENT_DIR environment variable (Default "/var/mnt/core-dump-handler/events")

charts/core-dump-handler/templates/daemonset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ spec:
1616
name: {{ .Values.daemonset.label }}
1717
annotations:
1818
kubectl.kubernetes.io/default-container: "coredump-container"
19+
{{- with .Values.daemonset.podAnnotations }}
20+
{{- toYaml . | nindent 8 }}
21+
{{- end }}
1922
spec:
2023
{{- with .Values.image.pullSecrets }}
2124
imagePullSecrets:

charts/core-dump-handler/values.schema.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,12 @@
209209
"label": {
210210
"type": "string"
211211
},
212+
"podAnnotations": {
213+
"type": "object",
214+
"additionalProperties": {
215+
"type": "string"
216+
}
217+
},
212218
"hostDirectory": {
213219
"type": "string"
214220
},
@@ -346,4 +352,4 @@
346352
"title": "ServiceAccount"
347353
}
348354
}
349-
}
355+
}

charts/core-dump-handler/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ composer:
3434
coreEvents: false
3535

3636
daemonset:
37+
podAnnotations: {}
3738
name: "core-dump-handler"
3839
label: "core-dump-ds"
3940
hostDirectory: "/var/mnt/core-dump-handler"

0 commit comments

Comments
 (0)