Skip to content

Commit

Permalink
storage-scrubber: add ability to set pod labels (#117)
Browse files Browse the repository at this point in the history
Required for setting labels on pods without modifying other labels.
  • Loading branch information
fcdm authored Dec 10, 2024
1 parent 2bfde8d commit 10a466e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/neon-storage-scrubber/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: neon-storage-scrubber
description: neon-storage-scrubber
type: application
version: 1.3.1
version: 1.4.0
appVersion: "v0.1.0"
sources:
- https://github.com/neondatabase/neon/tree/main/storage_scrubber
3 changes: 2 additions & 1 deletion charts/neon-storage-scrubber/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# neon-storage-scrubber

![Version: 1.3.1](https://img.shields.io/badge/Version-1.3.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) [![Lint and Test Charts](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml/badge.svg)](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml)
![Version: 1.4.0](https://img.shields.io/badge/Version-1.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) [![Lint and Test Charts](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml/badge.svg)](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml)

neon-storage-scrubber

Expand Down Expand Up @@ -32,6 +32,7 @@ $ helm install neon-storage-scrubber neondatabase/neon-storage-scrubber
| nameOverride | string | `""` | String to partially override neon-storage-scrubber.fullname template (will maintain the release name) |
| nodeSelector | object | `{}` | Node labels for pod assignment. |
| podAnnotations | object | `{}` | Annotations for neon-storage-scrubber pods |
| podLabels | object | `{}` | Labels for neon-storage-scrubber pods |
| podSecurityContext | object | `{}` | neon-storage-scrubber's pods Security Context |
| resources.limits.cpu | string | `"200m"` | |
| resources.limits.memory | string | `"2Gi"` | |
Expand Down
3 changes: 3 additions & 0 deletions charts/neon-storage-scrubber/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ spec:
{{- end }}
labels:
{{- include "neon-storage-scrubber.selectorLabels" . | nindent 12 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 12 }}
{{- end }}
spec:
restartPolicy: Never # Do not restart if the task fails
{{- with .Values.imagePullSecrets }}
Expand Down
3 changes: 3 additions & 0 deletions charts/neon-storage-scrubber/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ storageScrubber:
# -- Annotations for neon-storage-scrubber pods
podAnnotations: {}

# -- Labels for neon-storage-scrubber pods
podLabels: {}

# -- neon-storage-scrubber's pods Security Context
podSecurityContext:
{}
Expand Down

0 comments on commit 10a466e

Please sign in to comment.