From a73559de8d12e0729908829143b42212394416ce Mon Sep 17 00:00:00 2001 From: Adam Piasecki Date: Wed, 21 May 2025 11:52:49 +0100 Subject: [PATCH] coreos-ostree-importer: remove strategy.resources, add: image, strategy This is a follow up of the migration to Deployment. Based on learnings from a successful coreos-ostree-pruner migration, this fixes the `no image` and `unknown field \"spec.strategy.resources\` errors presented on batcave. --- .../coreos-ostree-importer/templates/deployment.yml.j2 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/roles/openshift-apps/coreos-ostree-importer/templates/deployment.yml.j2 b/roles/openshift-apps/coreos-ostree-importer/templates/deployment.yml.j2 index 5eaa4e9e68..135694c4ba 100644 --- a/roles/openshift-apps/coreos-ostree-importer/templates/deployment.yml.j2 +++ b/roles/openshift-apps/coreos-ostree-importer/templates/deployment.yml.j2 @@ -13,7 +13,7 @@ spec: matchLabels: app: coreos-ostree-importer strategy: - resources: {} + type: Recreate template: metadata: labels: @@ -44,9 +44,8 @@ spec: mountPath: "/etc/pki/fedora-messaging/{{ fedora_messaging_key_file }}" subPath: "{{ fedora_messaging_key_file }}" readOnly: true - image: "" + image: "coreos-ostree-importer-img:latest" imagePullPolicy: IfNotPresent - resources: {} # The files in the ostree volumes are created with group ownership of 263. # We need to have 263 in our supplemental groups. See https://pagure.io/releng/issue/8811#comment-629051 securityContext: