Skip to content

Commit

Permalink
update dregsy to cron manifest (deliveryhero#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyambati authored Mar 29, 2023
1 parent 7bd4dbe commit c10c214
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stable/dregsy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: dregsy
description: |-
Dregsy lets you sync Docker images between registries, public or private through defined sync tasks can be invoked as one-off or periodic task.
type: application
version: 0.1.1
version: 0.1.2
appVersion: "0.4.3"
home: https://github.com/xelalexv/dregsy
sources:
Expand Down
3 changes: 2 additions & 1 deletion stable/dregsy/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# dregsy

![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.4.3](https://img.shields.io/badge/AppVersion-0.4.3-informational?style=flat-square)
![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.4.3](https://img.shields.io/badge/AppVersion-0.4.3-informational?style=flat-square)

Dregsy lets you sync Docker images between registries, public or private through defined sync tasks can be invoked as one-off or periodic task.

Expand Down Expand Up @@ -60,6 +60,7 @@ helm install my-release deliveryhero/dregsy -f values.yaml
| dregsy.config.tasks | list | `[]` | |
| dregsy.cron.concurrencyPolicy | string | `"Forbid"` | |
| dregsy.cron.enabled | bool | `false` | |
| dregsy.cron.failedJobsHistoryLimit | int | `0` | |
| dregsy.cron.restartPolicy | string | `"OnFailure"` | |
| dregsy.cron.schedule | string | `"@daily"` | |
| dregsy.cron.successfulJobsHistoryLimit | int | `1` | |
Expand Down
3 changes: 2 additions & 1 deletion stable/dregsy/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{- if .Values.dregsy.cron.enabled }}
{{- range .Values.dregsy.config.tasks }}
---
apiVersion: batch/v1beta1
apiVersion: batch/v1
kind: CronJob
metadata:
name: {{ $fullname }}-{{ .name }}
Expand All @@ -14,6 +14,7 @@ metadata:
spec:
schedule: {{ $.Values.dregsy.cron.schedule | quote }}
successfulJobsHistoryLimit: {{ $.Values.dregsy.cron.successfulJobsHistoryLimit }}
failedJobsHistoryLimit: {{ $.Values.dregsy.cron.failedJobsHistoryLimit }}
concurrencyPolicy: {{ $.Values.dregsy.cron.concurrencyPolicy }}
jobTemplate:
spec:
Expand Down
1 change: 1 addition & 0 deletions stable/dregsy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ dregsy:
schedule: "@daily"
restartPolicy: OnFailure
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 0
concurrencyPolicy: Forbid
config:
# relay type, either 'skopeo' or 'docker'
Expand Down

0 comments on commit c10c214

Please sign in to comment.