diff --git a/build/common/src/hzn.js b/build/common/src/hzn.js index cc7f49d..bdfa4fd 100644 --- a/build/common/src/hzn.js +++ b/build/common/src/hzn.js @@ -199,7 +199,7 @@ class Hzn { } exposeDeployment() { return this.param.name.length > 0 && this.param.type.length > 0 && this.param.port.length > 0 ? - exports.utils.shell(`kubectl create deployment ${this.param.name} --port ${this.param.port} --type ${this.param.type} -n $AGENT_NAMESPACE`) : + exports.utils.shell(`kubectl expose deployment ${this.param.name} --port ${this.param.port} --type ${this.param.type} -n $AGENT_NAMESPACE`) : (0, rxjs_1.of)('Please specify deploment --name, --port and --type'); } meshNodeList() { diff --git a/package.json b/package.json index dd06a98..407e0ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hzn-cli", - "version": "0.7.8", + "version": "0.7.9", "description": "Open Horizon CLI toolkit helps streamline the process of preparing node agents and perform tasks between orgs environments", "main": "./build/index.js", "bin": { diff --git a/src/common/src/hzn.ts b/src/common/src/hzn.ts index 8cb4f21..5d5582b 100644 --- a/src/common/src/hzn.ts +++ b/src/common/src/hzn.ts @@ -219,7 +219,7 @@ export class Hzn { } exposeDeployment() { return this.param.name.length > 0 && this.param.type.length > 0 && this.param.port.length > 0 ? - utils.shell(`kubectl create deployment ${this.param.name} --port ${this.param.port} --type ${this.param.type} -n $AGENT_NAMESPACE`) : + utils.shell(`kubectl expose deployment ${this.param.name} --port ${this.param.port} --type ${this.param.type} -n $AGENT_NAMESPACE`) : of('Please specify deploment --name, --port and --type') } meshNodeList() {