ci: update mirroring container-images job for new OCP

The new OpenShift cluster complained about deprecated types and missing
options in the yaml files.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
Niels de Vos 2023-03-20 11:41:53 +01:00 committed by mergify[bot]
parent b0e9eeba36
commit 8181d13313
2 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,5 @@
--- ---
apiVersion: v1 apiVersion: image.openshift.io/v1
kind: ImageStream kind: ImageStream
metadata: metadata:
name: mirror-images name: mirror-images
@ -9,7 +9,7 @@ spec:
tags: tags:
- name: latest - name: latest
--- ---
apiVersion: v1 apiVersion: build.openshift.io/v1
kind: BuildConfig kind: BuildConfig
metadata: metadata:
name: mirror-images name: mirror-images

View File

@ -1,5 +1,5 @@
--- ---
apiVersion: batch/v1beta1 apiVersion: batch/v1
kind: CronJob kind: CronJob
metadata: metadata:
name: mirror-images name: mirror-images
@ -33,4 +33,11 @@ spec:
secretKeyRef: secretKeyRef:
name: container-registry-auth name: container-registry-auth
key: passwd key: passwd
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
capabilities:
drop: ["ALL"]
seccompProfile:
type: RuntimeDefault
restartPolicy: OnFailure restartPolicy: OnFailure