Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pod annotations #162

Merged
merged 1 commit into from
Aug 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading