From 61c1063225c74e94dc5d58b7e4eb13b7953ddd26 Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: Thu, 29 Sep 2022 14:47:17 -0400 Subject: [PATCH] openshift-apps/coreos-ostree-importer: more debugging This time let's see if the application can start. If it doesn't start successfully then sleep so we can debug it in the running pod. --- .../coreos-ostree-importer/templates/deploymentconfig.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/openshift-apps/coreos-ostree-importer/templates/deploymentconfig.yml b/roles/openshift-apps/coreos-ostree-importer/templates/deploymentconfig.yml index 0c3e25971c..12d6dafeb1 100644 --- a/roles/openshift-apps/coreos-ostree-importer/templates/deploymentconfig.yml +++ b/roles/openshift-apps/coreos-ostree-importer/templates/deploymentconfig.yml @@ -20,8 +20,8 @@ spec: - name: coreos-ostree-importer # sleep infinity is useful for debugging environment issues # comment out when not debugging - args: ['infinity'] - command: ['/usr/bin/sleep'] + args: ['-c', '/usr/local/bin/coreos-ostree-importer-wrapper || sleep infinity'] + command: ['/usr/bin/bash'] volumeMounts: - name: fedora-ostree-content-volume mountPath: /mnt/koji