Skip to content

Commit 4071afe

Browse files
Updating filter to add CA certs which .pem extension (NVIDIA#497)
Signed-off-by: Vishesh Tanksale <vtanksale@nvidia.com>
1 parent 927e686 commit 4071afe

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internal/k8sutil/k8sutil.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,10 @@ func GetUpdateCaCertInitContainerCommand() []string {
212212
"/bin/sh",
213213
"-c",
214214
"echo 'Copying CA certs from Config Map'; " +
215+
"ls -l /custom; " +
215216
"cp /custom/*.crt /usr/local/share/ca-certificates/; " +
217+
"for f in /custom/*.pem; do cp \"$f\" \"/usr/local/share/ca-certificates/$(basename \"${f%.pem}\")-pem.crt\"; done;" +
218+
"ls -l /usr/local/share/ca-certificates/;" +
216219
"echo 'Updating CA certs'; " +
217220
"update-ca-certificates; " +
218221
"echo 'CA certs updated'; " +

0 commit comments

Comments
 (0)