GetNamespaceName
Returns a Kubernetes namespace name by replacing placeholders in a user-defined template with provided organization, project, and domain values.
def GetNamespaceName(
template: string,
org: string,
project: string,
domain: string
) - > string
Returns a Kubernetes namespace name by replacing placeholders in a user-defined template with provided organization, project, and domain names. This function allows for dynamic generation of namespace names based on configuration.
Parameters
| Name | Type | Description |
|---|---|---|
| template | string | The template string containing placeholders (e.g., 'orgTemplate', 'projectTemplate', 'domainTemplate') that will be replaced. |
| org | string | The organization name to be used for replacing the 'orgTemplate' placeholder in the template. |
| project | string | The project name to be used for replacing the 'projectTemplate' placeholder in the template. |
| domain | string | The domain name to be used for replacing the 'domainTemplate' placeholder in the template. |
Returns
| Type | Description |
|---|---|
string | The formatted Kubernetes namespace name with placeholders replaced. |