Skip to content

Commit

Permalink
Merge pull request #375 from mjhuber/pod-annotations
Browse files Browse the repository at this point in the history
Support for pod labels and annotations
  • Loading branch information
mergify[bot] authored May 8, 2023
2 parents edfb266 + 65cbc8a commit bbc0bb8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helm/snapscheduler/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
apiVersion: v2
name: snapscheduler
# Chart version: Incremented during chart, template, or appVersion changes.
version: "3.2.0"
version: "3.3.0"
description: >-
An operator to take scheduled snapshots of Kubernetes persistent volumes
An operator to take scheduled snapshots of Kubernetes persistent volumes
type: application
# Adding "-0" at the end of the version string permits pre-release kube versions
# to match. See https://github.com/helm/helm/issues/6190
Expand Down
4 changes: 4 additions & 0 deletions helm/snapscheduler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,7 @@ case, the defaults, shown below, should be sufficient.
topology domain(s) that each Node is in.
- `affinity`: node-level anti-affinity
- Allows setting the operator pod's affinity
- `podLabels`: `{}`
- map of additional labels to add to pods
- `podAnnotations`: `{}`
- map of additional annotations to add to pods
7 changes: 7 additions & 0 deletions helm/snapscheduler/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ spec:
labels:
backube/snapscheduler-affinity: manager
{{- include "snapscheduler.selectorLabels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
6 changes: 6 additions & 0 deletions helm/snapscheduler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ podSecurityContext:
# seccompProfile:
# type: RuntimeDefault

# additional annotations to add to pods
podAnnotations: {}

# additional labels to add to pods
podLabels: {}

securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down

0 comments on commit bbc0bb8

Please sign in to comment.