-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat*kumactl) show the effective Dataplane address (#2977)
Show the effective Dataplane address in the Dataplanes listing output. The effective address is the advertised address if it is present, otherwise the networking address. The address is one of the most important properties of the Dataplane, so it's useful to make it more accessible here. Signed-off-by: James Peach <james.peach@konghq.com>
- Loading branch information
Showing
7 changed files
with
81 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
MESH NAME TAGS AGE | ||
default dataplane-1 service=metrics,mobile version=v1 292y | ||
MESH NAME TAGS ADDRESS AGE | ||
default dataplane-1 service=metrics,mobile version=v1 127.0.0.1 292y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
{ | ||
"total": 2, | ||
"items": [ | ||
{ | ||
"mesh": "default", | ||
"name": "experiment", | ||
"creationTime": "0001-01-01T00:00:00Z", | ||
"modificationTime": "0001-01-01T00:00:00Z", | ||
"networking": { | ||
"address": "127.0.0.1", | ||
"inbound": [ | ||
{ | ||
"port": 8080, | ||
"servicePort": 80, | ||
"tags": { | ||
"service": "mobile", | ||
"version": "v1" | ||
} | ||
}, | ||
{ | ||
"port": 8090, | ||
"servicePort": 90, | ||
"tags": { | ||
"service": "metrics", | ||
"version": "v1" | ||
} | ||
"total": 2, | ||
"items": [ | ||
{ | ||
"type": "Dataplane", | ||
"mesh": "default", | ||
"name": "experiment", | ||
"creationTime": "0001-01-01T00:00:00Z", | ||
"modificationTime": "0001-01-01T00:00:00Z", | ||
"networking": { | ||
"address": "127.0.0.1", | ||
"inbound": [ | ||
{ | ||
"port": 8080, | ||
"servicePort": 80, | ||
"tags": { | ||
"service": "mobile", | ||
"version": "v1" | ||
} | ||
] | ||
}, | ||
"type": "Dataplane" | ||
}, | ||
{ | ||
"mesh": "default", | ||
"name": "example", | ||
"creationTime": "0001-01-01T00:00:00Z", | ||
"modificationTime": "0001-01-01T00:00:00Z", | ||
"networking": { | ||
"address": "127.0.0.2", | ||
"inbound": [ | ||
{ | ||
"port": 8080, | ||
"servicePort": 80, | ||
"tags": { | ||
"service": "web", | ||
"version": "v2" | ||
} | ||
}, | ||
{ | ||
"port": 8090, | ||
"servicePort": 90, | ||
"tags": { | ||
"service": "metrics", | ||
"version": "v1" | ||
} | ||
] | ||
}, | ||
"type": "Dataplane" | ||
} | ||
] | ||
} | ||
], | ||
"next": null | ||
}, | ||
{ | ||
"type": "Dataplane", | ||
"mesh": "default", | ||
"name": "example", | ||
"creationTime": "0001-01-01T00:00:00Z", | ||
"modificationTime": "0001-01-01T00:00:00Z", | ||
"networking": { | ||
"address": "127.0.0.2", | ||
"inbound": [ | ||
{ | ||
"port": 8080, | ||
"servicePort": 80, | ||
"tags": { | ||
"service": "web", | ||
"version": "v2" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"next": null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
MESH NAME TAGS AGE | ||
default experiment service=metrics,mobile version=v1 292y | ||
default example service=web version=v2 292y | ||
MESH NAME TAGS ADDRESS AGE | ||
default experiment service=metrics,mobile version=v1 127.0.0.1 292y | ||
default example service=web version=v2 127.0.0.2 292y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
app/kumactl/cmd/get/testdata/get-dataplanes.pagination.golden.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
MESH NAME TAGS AGE | ||
default example service=web version=v2 292y | ||
MESH NAME TAGS ADDRESS AGE | ||
default example service=web version=v2 127.0.0.2 292y | ||
|
||
Rerun command with --offset=1 argument to retrieve more resources |