Connecting travis to atlas operator with kubernetes using travis secrets

I want to connect my kubernetes project to mongo atlas using atlas operator and I’m not sure how to get environment variables from travis into this piece of code?

kubectl create secret generic mongodb-atlas-operator-api-key \

–from-literal=“orgId=<the_atlas_organization_id>”
–from-literal=“publicApiKey=<the_atlas_api_public_key>”
–from-literal=“privateApiKey=<the_atlas_api_private_key>”
-n mongodb-atlas-system

My intention is for my travis.yaml file to trigger a deploy.sh script which executes the above code. The idea is to put the quickstart setup here quickstart setup into kubernetes deployment config files.

See also thie SO question: SO