Skip to content

Commit

Permalink
Fix port assignment in kube.service.js
Browse files Browse the repository at this point in the history
  • Loading branch information
FLYBYME committed Jan 17, 2024
1 parent 3916253 commit a256162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/kube.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ module.exports = {
hostname: svc.spec.clusterIP,
port: port == 0 ?
svc.spec.ports[0].port :
svc.spec.ports.find((item) => port == item.port)
svc.spec.ports.find((item) => port == item.port).port
}

const host = await ctx.call('v1.routes.hosts.create', hostConfig, options);
Expand Down

0 comments on commit a256162

Please sign in to comment.