1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-11-23 21:44:44 +02:00

feat(k8s): Add a port name to service definition (#2933)

It should cover this issue:  https://github.com/woodpecker-ci/woodpecker/issues/2931

To sum up, when several ports need to be specified, they must be named
This commit is contained in:
Nikolai Rodionov
2023-12-19 02:38:18 +01:00
committed by GitHub
parent bbafe3c386
commit f7f78b2a3f
2 changed files with 6 additions and 0 deletions

View File

@@ -32,14 +32,17 @@ func TestService(t *testing.T) {
"spec": {
"ports": [
{
"name": "port-1",
"port": 1,
"targetPort": 1
},
{
"name": "port-2",
"port": 2,
"targetPort": 2
},
{
"name": "port-3",
"port": 3,
"targetPort": 3
}