Skip to content

Commit 931afb7

Browse files
committed
v14
1 parent 7f8d0a3 commit 931afb7

4 files changed

Lines changed: 17 additions & 1 deletion

File tree

dist/index.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/models/component_deployment_configuration.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ export interface ComponentDeploymentConfiguration {
1313
*/
1414
count?: number
1515

16+
/**
17+
* The namespace to deploy the component into.
18+
* @type {string}
19+
* @memberof ComponentDeploymentConfiguration
20+
* @optional
21+
* @remarks If not provided, the default namespace will be used.
22+
*/
23+
namespace?: string
24+
1625
/**
1726
* The type of Nomad job.
1827
* @type {ComponentContainerDeploymentConfigurationType}

src/nomad/nomad_job.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export function generateNomadJob(
2020
jobText += ` datacenters = ${JSON.stringify(datacenters)}\n`
2121
jobText += ` type = "${configuration.type}"\n\n`
2222

23+
if (configuration.namespace !== undefined && configuration.namespace !== '') {
24+
jobText += ` namespace = "${configuration.namespace}"\n\n`
25+
}
26+
2327
if (configuration.vault_policies !== undefined) {
2428
jobText += ' vault {\n'
2529
jobText += ` policies = ${JSON.stringify(configuration.vault_policies)}\n`

0 commit comments

Comments
 (0)