Sha256: a7e6302219b15d0431362ebd9d6e22ccdebbb9a67e3ad398a195506856f77470

Contents?: true

Size: 734 Bytes

Versions: 8

Compression:

Stored size: 734 Bytes

Contents

{{- if .Values.leaseRelease.enabled }}
apiVersion: batch/v1beta1
kind: CronJob
metadata:
metadata:
  name: {{ include "hyrax.fullname" . }}-lease-task
  labels:
    {{- include "hyrax.labels" . | nindent 4 }}
spec:
  schedule: {{ .Values.leaseRelease.schedule | default "0 0 * * *" | quote }}
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: lease-release
            image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
            imagePullPolicy: {{ .Values.image.pullPolicy }}
            command:
            - /bin/sh
            - -c
            - bundle exec rake hyrax:lease:deactivate_expired
          restartPolicy: OnFailure
{{- end }}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hyrax-3.4.1 chart/hyrax/templates/cron-lease.yaml
hyrax-3.4.0 chart/hyrax/templates/cron-lease.yaml
hyrax-3.3.0 chart/hyrax/templates/cron-lease.yaml
hyrax-3.2.0 chart/hyrax/templates/cron-lease.yaml
hyrax-3.1.0 chart/hyrax/templates/cron-lease.yaml
hyrax-3.0.2 chart/hyrax/templates/cron-lease.yaml
hyrax-3.0.1 chart/hyrax/templates/cron-lease.yaml
hyrax-3.0.0 chart/hyrax/templates/cron-lease.yaml