Skip to content

Commit

Permalink
feat(buildkitd): customize pod annotations (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilpianista authored Dec 30, 2024
1 parent b7008cd commit 2798efe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/buildkitd/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A Helm chart for https://github.com/moby/buildkit (rootless)
type: application
appVersion: 0.18.2
kubeVersion: ">=1.19.0-0"
version: 0.18.2
version: 0.19.0
maintainers:
- name: Wiremind
url: https://github.com/wiremind/wiremind-helm-charts
5 changes: 3 additions & 2 deletions charts/buildkitd/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ spec:
labels:
{{- include "buildkitd.selectorLabels" . | nindent 8 }}
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: {{ .Values.config.debugPort | quote }}
container.apparmor.security.beta.kubernetes.io/buildkitd: unconfined
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- if .Values.podAnnotations }}
{{- toYaml .Values.podAnnotations | nindent 8 }}
{{- end }}
spec:
securityContext:
# To change UID/GID, you need to rebuild the image
Expand Down
4 changes: 4 additions & 0 deletions charts/buildkitd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,7 @@ extraSecurityContext: {}
lifecycle: {}

terminationGracePeriodSeconds: 30

podAnnotations:
prometheus.io/scrape: "true"
prometheus.io/port: "6060"

0 comments on commit 2798efe

Please sign in to comment.