Skip to content

Parameterize mock SMTP namespace in deployment hooks#2

Draft
Ivanmeneges wants to merge 1 commit into
masterfrom
cursor/dev0-mock-smtp-f8ab
Draft

Parameterize mock SMTP namespace in deployment hooks#2
Ivanmeneges wants to merge 1 commit into
masterfrom
cursor/dev0-mock-smtp-f8ab

Conversation

@Ivanmeneges

Copy link
Copy Markdown
Owner

Summary

Adds support for deploying mock SMTP into a custom Kubernetes namespace per environment, while keeping the default mock-smtp namespace for existing deployments.

Changes

  • msg-gateways-setup.sh accepts an optional namespace argument (defaults to mock-smtp)
  • common-labeling-istio-and-sharing-cm-secrets-among-ns.sh accepts SMTP_NAMESPACE env var or first argument

Motivation

The new dev0 environment deploys mock SMTP into a dedicated dev0-mock-smtp namespace with host smtp.dev0.mosip.net. These hook changes allow each environment branch to specify its own SMTP namespace without duplicating hook scripts.

Backward compatibility

Existing environments that do not pass a namespace continue to use mock-smtp as before.

Open in Web Open in Cursor 

Allow msg-gateways-setup.sh and common-labeling hook to accept a
custom Kubernetes namespace for mock SMTP, defaulting to mock-smtp for
backward compatibility.

Co-authored-by: Ivanmeneges <Ivanmeneges@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants