Kubernetes secret getting corrupted

5/18/2020

I am trying to create a secret with a file of type Oracle wallet - cwallet.sso file. But I noticed that, the checksum of the mounted file is not same as the original file. As a result, I am unable to connect to db.

I am trying to create secret from the file itself as below: kubectl -n ${NAMESPACE} create secret generic conn-details --from-file=./sqlnet.ora --from-file=./tnsnames.ora --from-file=./cwallet.sso -o yaml | kubectl apply -f -

Is there something wrong with my approach?

Adding more details that I had missed earlier: The secret creation works manually, but via Jenkins pipeline it fails. Is the below syntax a correct way to copy sso file type? writeFile file: "cwallet.sso", text: libraryResource('adw' + '/cwallet.sso')

-- Anjana
jenkins-groovy
kubernetes-secrets
oracle

0 Answers