Sha256: 9bc11ee19d167dca6f85ad7276e92db9ce6eabd65113f015d6c8b2974678dad6

Contents?: true

Size: 884 Bytes

Versions: 13

Compression:

Stored size: 884 Bytes

Contents

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
hyrax-5.1.0.pre.beta1 chart/hyrax/templates/cron-embargo.yaml
hyrax-5.0.4 chart/hyrax/templates/cron-embargo.yaml
hyrax-5.0.3 chart/hyrax/templates/cron-embargo.yaml
hyrax-5.0.2 chart/hyrax/templates/cron-embargo.yaml
hyrax-5.0.1 chart/hyrax/templates/cron-embargo.yaml
hyrax-5.0.0 chart/hyrax/templates/cron-embargo.yaml
hyrax-5.0.0.rc3 chart/hyrax/templates/cron-embargo.yaml
hyrax-5.0.0.rc2 chart/hyrax/templates/cron-embargo.yaml
hyrax-5.0.0.rc1 chart/hyrax/templates/cron-embargo.yaml
hyrax-4.0.0 chart/hyrax/templates/cron-embargo.yaml
hyrax-4.0.0.rc3 chart/hyrax/templates/cron-embargo.yaml
hyrax-4.0.0.rc2 chart/hyrax/templates/cron-embargo.yaml
hyrax-4.0.0.rc1 chart/hyrax/templates/cron-embargo.yaml