6.5. Red Hat OpenShift Container Platform
Business Central pod fails to start when known_host file is missing from the Git hook secret [RHPAM-3056]
Issue: The Business Central pod fails to start and remains stuck at Container Creating status if the known_host file is missing from the Git hook secret.
Steps to reproduce:
Create the following post-commit script.
cat post-commit #!/usr/bin/sh echo "running post-commit git hook" git clone git@github.com:Sgitario/kjar-examples.git
Upload this post-commit file into the Openshift.
oc create configmap githook-post-commit --from-file=post-commit=post-commit
Create the Git hook secret.
oc create secret generic githook-ssh-key-secret --from-file=id_rsa=/mypath/.ssh/id_rsa
Expected result: Business Central pod does not fail even after the Git hook secret is missing some configurations.
Actual result: Business Central pod fails to start and remains stuck at Container Creating status.
Workaround: Specify the following known_host file and create the Git hook secret again.
oc create secret generic githook-ssh-key-secret --from-file=id_rsa=test_manual/.ssh/id_rsa --from-file=known_hosts=test_manual/.ssh/known_hosts