Skip to content

Commit c467426

Browse files
authored
Merge pull request #19 from bryopsida/10-backoff-updatesrestarts
Add backoff check
2 parents a4405ec + 3486d74 commit c467426

15 files changed

+849
-19
lines changed

charts/patchwork/Chart.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
apiVersion: v2
22
name: patchwork
3-
description: A Helm chart for Kubernetes
3+
description: Watches deployments, daemonsets, and statefulsets for image updates and will automatically trigger rollouts to pull in updates
44
type: application
5-
version: 0.4.0
6-
appVersion: '0.2.0'
5+
version: 0.5.0
6+
appVersion: '0.3.0'
77
dependencies:
88
- name: redis
99
repository: https://groundhog2k.github.io/helm-charts/

charts/patchwork/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# patchwork
22

3-
![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.2.0](https://img.shields.io/badge/AppVersion-0.2.0-informational?style=flat-square)
3+
![Version: 0.5.0](https://img.shields.io/badge/Version-0.5.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.3.0](https://img.shields.io/badge/AppVersion-0.3.0-informational?style=flat-square)
44

5-
A Helm chart for Kubernetes
5+
Watches deployments, daemonsets, and statefulsets for image updates and will automatically trigger rollouts to pull in updates
66

77
## Maintainers
88

@@ -65,6 +65,7 @@ A Helm chart for Kubernetes
6565
| serviceAccount.name | string | `""` | |
6666
| tolerations | list | `[]` | |
6767
| updateCron | string | `"*/30 * * * *"` | |
68+
| updateGracePeriod | int | `3600` | |
6869

6970
----------------------------------------------
7071
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)

charts/patchwork/templates/dotenv.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ stringData:
99
PATCHWORK_REDIS_HOST={{ default (printf "%s-redis.%s.svc" .Release.Name .Release.Namespace) .Values.redis.host }}
1010
PATCHWORK_REDIS_PORT={{ default "6379" .Values.redis.port | int }}
1111
PATCHWORK_UPDATE_CRON={{ .Values.updateCron }}
12+
PATCHWORK_RESTART_GRACE_PERIOD_SECONDS={{ .Values.updateGracePeriod }}
1213
1314
{{- end }}

charts/patchwork/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ fullnameOverride: ''
1515

1616
# - The cron string for update check frequency
1717
updateCron: '*/30 * * * *'
18+
# - The amount of time after a resource is restarted where further updates will be skipped untill the period has expired
19+
updateGracePeriod: 3600
1820
rbac:
1921
# - if set, the chart will create a clusterrole and rolebinding to give it the permissions its needs
2022
create: truewq

0 commit comments

Comments
 (0)