64 lines
1.6 KiB
YAML
64 lines
1.6 KiB
YAML
#
|
|
# Copyright (c) 2012-2020 Red Hat, Inc.
|
|
# This program and the accompanying materials are made
|
|
# available under the terms of the Eclipse Public License 2.0
|
|
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
#
|
|
# SPDX-License-Identifier: EPL-2.0
|
|
#
|
|
# Contributors:
|
|
# Red Hat, Inc. - initial API and implementation
|
|
|
|
kind: Job
|
|
apiVersion: batch/v1
|
|
metadata:
|
|
name: force-pulling-olm-images-job
|
|
spec:
|
|
parallelism: 1
|
|
completions: 1
|
|
backoffLimit: 6
|
|
template:
|
|
metadata:
|
|
name: force-pulling-olm-images-job
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: 'myregistrykey'
|
|
volumes:
|
|
- name: util
|
|
emptyDir: {}
|
|
initContainers:
|
|
|
|
- name: util
|
|
image: >-
|
|
busybox
|
|
command:
|
|
- /bin/cp
|
|
- '-Rv'
|
|
- /bin/echo
|
|
- /util/echo
|
|
volumeMounts:
|
|
- name: util
|
|
mountPath: /util
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
containers:
|
|
|
|
- name: pull-bundle-image
|
|
image: "${BUNDLE_IMAGE_NAME}"
|
|
command:
|
|
- /util/echo
|
|
- "Pull completed"
|
|
volumeMounts:
|
|
- name: util
|
|
mountPath: /util
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
imagePullPolicy: Always
|
|
|
|
restartPolicy: OnFailure
|
|
terminationGracePeriodSeconds: 30
|
|
dnsPolicy: ClusterFirst
|
|
schedulerName: default-scheduler
|