Skip to content

Commit ed874ac

Browse files
authored
Merge pull request #23 from small-hack/allow-setting-revision-history-limit
allow setting revisionHistoryLimit for the deployment
2 parents ef97e8c + 62cbd96 commit ed874ac

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

charts/pixelfed/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.8.2
18+
version: 0.9.0
1919

2020
# This is the version number of the application being deployed.
2121
# renovate:image=ghcr.io/mattlqx/docker-pixelfed

charts/pixelfed/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pixelfed
22

3-
![Version: 0.8.2](https://img.shields.io/badge/Version-0.8.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.12.4-nginx](https://img.shields.io/badge/AppVersion-v0.12.4--nginx-informational?style=flat-square)
3+
![Version: 0.9.0](https://img.shields.io/badge/Version-0.9.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.12.4-nginx](https://img.shields.io/badge/AppVersion-v0.12.4--nginx-informational?style=flat-square)
44

55
A Helm chart for deploying Pixelfed on Kubernetes
66

@@ -48,7 +48,7 @@ A Helm chart for deploying Pixelfed on Kubernetes
4848
| externalValkey.password | string | `"null"` | |
4949
| externalValkey.port | string | `"6379"` | |
5050
| externalValkey.scheme | string | `"tcp"` | |
51-
| fullnameOverride | string | `""` | |
51+
| fullnameOverride | string | `""` | This is to override the chart name, but used in more places |
5252
| image.pullPolicy | string | `"IfNotPresent"` | This sets the pull policy for images. |
5353
| image.registry | string | `"ghcr.io"` | |
5454
| image.repository | string | `"mattlqx/docker-pixelfed"` | |
@@ -161,6 +161,7 @@ A Helm chart for deploying Pixelfed on Kubernetes
161161
| readinessProbe | object | `{}` | This is to setup the readiness probe more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ |
162162
| replicaCount | int | `1` | This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/ |
163163
| resources | object | `{}` | set resource limits and requests for cpu, memory, and ephemeral storage |
164+
| revisionHistoryLimit | int | `10` | how many revisions of the deployment to keep for rollbacks |
164165
| securityContext | object | `{}` | |
165166
| service.port | int | `80` | This sets the ports more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports |
166167
| service.targetPort | int | `80` | Port to attach to on the pods. Also sets what port nginx listens on inside the container. |

charts/pixelfed/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ spec:
1111
selector:
1212
matchLabels:
1313
{{- include "pixelfed.selectorLabels" . | nindent 6 }}
14+
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
1415
template:
1516
metadata:
1617
{{- with .Values.podAnnotations }}

charts/pixelfed/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,16 @@ image:
1616

1717
# -- This is for the secretes for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1818
imagePullSecrets: []
19+
1920
# -- This is to override the chart name.
2021
nameOverride: ""
22+
23+
# -- This is to override the chart name, but used in more places
2124
fullnameOverride: ""
2225

26+
# -- how many revisions of the deployment to keep for rollbacks
27+
revisionHistoryLimit: 10
28+
2329
# This section builds out the service account more information can be found here: https://kubernetes.io/docs/concepts/security/service-accounts/
2430
serviceAccount:
2531
# -- Specifies whether a service account should be created

0 commit comments

Comments
 (0)