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 \

-n mongodb-atlas-system

My intention is for my travis.yaml file to trigger a 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