Skip to content
Snippets Groups Projects
Commit bed88594 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

feat: add script to add emails from Gandi

parent 561a9534
No related branches found
No related tags found
No related merge requests found
......@@ -149,3 +149,14 @@ function create_emails() {
kubectl -n ${NS} create secret generic ${CHAT_SUBDOMAIN}-${NS}-smtp --from-literal=host=mail.indie.host --from-literal=port=587 --from-literal=from_email=${chat_email} --from-literal=username=${chat_email} --from-literal=password=${chat_email_password} --from-literal=mail_from_address=${chat_local_part}
}
function create_gandi_email() {
echo ${NS}
echo ${SUBDOMAIN}
kubectl -n ${NS} create secret generic ${SUBDOMAIN}-${NS}-smtp \
--from-literal=host=mail.gandi.net \
--from-literal=port=587 \
--from-literal=from_email=${from_email} \
--from-literal=username=${from_email} \
--from-literal=password=${password} \
--from-literal=mail_from_address=${from_local_part}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment