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 values. This function is used to dynamically generate namespace names based on configuration.
Parameters
| Name | Type | Description |
|---|---|---|
| template | string | The template string containing placeholders for organization, project, and domain that will be replaced to form the namespace name. |
| org | string | The organization name to be used for replacing the organization placeholder in the template. |
| project | string | The project name to be used for replacing the project placeholder in the template. |
| domain | string | The domain name to be used for replacing the domain placeholder in the template. |
Returns
| Type | Description |
|---|---|
string | The formatted Kubernetes namespace name with placeholders replaced. |