Skip to content

Commit

Permalink
Add pod annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Ali Ghanbarzadeh <[email protected]>
  • Loading branch information
binarysta committed Aug 9, 2024
1 parent 64eb2df commit a4ba334
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions charts/core-dump-handler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ Composer
* podSelectorLabel: Enable composer only if pod has label matching the specified selector. (Default "" matches all pods)
Daemonset
* podAnnotations: Annotations to be added to core-dump-handler pods (Default nil)
* hostDirectory: Maps to the HOST_DIR environment variable (Default "/var/mnt/core-dump-handler")
* coreDirectory: Maps to the CORE_DIR environment variable (Default "/var/mnt/core-dump-handler/cores")
* eventDirectory: Maps to the EVENT_DIR environment variable (Default "/var/mnt/core-dump-handler/events")
Expand Down
3 changes: 3 additions & 0 deletions charts/core-dump-handler/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ spec:
name: {{ .Values.daemonset.label }}
annotations:
kubectl.kubernetes.io/default-container: "coredump-container"
{{- with .Values.daemonset.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.image.pullSecrets }}
imagePullSecrets:
Expand Down
8 changes: 7 additions & 1 deletion charts/core-dump-handler/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,12 @@
"label": {
"type": "string"
},
"podAnnotations": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"hostDirectory": {
"type": "string"
},
Expand Down Expand Up @@ -346,4 +352,4 @@
"title": "ServiceAccount"
}
}
}
}
1 change: 1 addition & 0 deletions charts/core-dump-handler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ composer:
coreEvents: false

daemonset:
podAnnotations: {}
name: "core-dump-handler"
label: "core-dump-ds"
hostDirectory: "/var/mnt/core-dump-handler"
Expand Down

0 comments on commit a4ba334

Please sign in to comment.