Skip to content

Commit

Permalink
Merge pull request #104 from playground/oh-mesh
Browse files Browse the repository at this point in the history
expose deployment
  • Loading branch information
playground authored Feb 21, 2024
2 parents 30e0f85 + 373aa43 commit 709f467
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/common/src/hzn.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/common/src/hzn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 709f467

Please sign in to comment.