Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
common
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libre.sh
kubernetes
common
Commits
bed88594
Commit
bed88594
authored
1 year ago
by
Pierre Ozoux
Browse files
Options
Downloads
Patches
Plain Diff
feat: add script to add emails from Gandi
parent
561a9534
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/functions.sh
+11
-0
11 additions, 0 deletions
scripts/functions.sh
with
11 additions
and
0 deletions
scripts/functions.sh
+
11
−
0
View file @
bed88594
...
...
@@ -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
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment