openscanhub: fix mountpath for private key

Signed-off-by: Siteshwar Vashisht <svashisht@redhat.com>
This commit is contained in:
Siteshwar Vashisht 2024-03-12 17:17:47 +01:00
parent 28d3c54056
commit 94acd9516b
2 changed files with 2 additions and 1 deletions

View file

@ -64,6 +64,7 @@ spec:
subPath: credentials
- mountPath: /var/lib/resallocserver/.ssh/id_rsa
name: aws-openscanhub-key
subPath: id_rsa
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler

View file

@ -4,4 +4,4 @@ kind: Secret
metadata:
name: aws-openscanhub-key
data:
aws-openscanhub-key: {{ lookup('file', private+'/files/openscanhub/openscanhub.key') | b64encode }}
id_rsa: {{ lookup('file', private+'/files/openscanhub/openscanhub.key') | b64encode }}