-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[minor] Add support for SMTP disabledTemplates in gitops
- Loading branch information
1 parent
26cf380
commit c1326a9
Showing
5 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,9 @@ spec: | |
type: string | ||
- name: avp_aws_secret_region | ||
type: string | ||
- name: smtp_disabled_templates | ||
type: string | ||
default: "" | ||
- name: mas_smtpcfg_pod_template_yaml | ||
type: string | ||
default: "" | ||
|
@@ -56,6 +59,8 @@ spec: | |
value: $(params.github_repo) | ||
- name: SM_AWS_REGION | ||
value: $(params.avp_aws_secret_region) | ||
- name: SMTP_DISABLED_TEMPLATES | ||
value: $(params.smtp_disabled_templates) | ||
- name: MAS_SMTPCFG_POD_TEMPLATE_YAML | ||
value: $(params.mas_smtpcfg_pod_template_yaml) | ||
|
||
|
@@ -208,6 +213,7 @@ spec: | |
export SMTP_DEFAULT_SENDER_NAME="MASAdmin" | ||
export SMTP_DEFAULT_RECIPIENT_EMAIL="[email protected]" | ||
export SMTP_DEFAULT_SHOULD_EMAIL_PASSWORDS="true" | ||
export SMTP_DISABLED_TEMPLATES # set in task env vars | ||
|
||
# Ensure any SMTP_USERNAME/SMTP_PASSWORD values set in pipeline context properties | ||
# are not used by the gitops-mas-config script to override the values in the AWS SM Secret | ||
|
@@ -237,6 +243,7 @@ spec: | |
--smtp-default-sender-name "${SMTP_DEFAULT_SENDER_NAME}" \ | ||
--smtp-default-recipient-email "${SMTP_DEFAULT_RECIPIENT_EMAIL}" \ | ||
--smtp-default-should-email-passwords "${SMTP_DEFAULT_SHOULD_EMAIL_PASSWORDS}" \ | ||
--smtp-disabled-templates "${SMTP_DISABLED_TEMPLATES}" \ | ||
--mas-smtpcfg-pod-template-yaml "${MAS_SMTPCFG_POD_TEMPLATE_YAML}" | ||
|
||
exit $? | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters