Skip to content

fix(service): Show URL (external) instead of Address (internal) when listing service#247

Merged
knative-prow-robot merged 4 commits intoknative:masterfrom
rhuss:pr/service-list-fix
Jul 10, 2019
Merged

fix(service): Show URL (external) instead of Address (internal) when listing service#247
knative-prow-robot merged 4 commits intoknative:masterfrom
rhuss:pr/service-list-fix

Conversation

@rhuss
Copy link
Copy Markdown
Contributor

@rhuss rhuss commented Jul 8, 2019

Starting with 0.7.0 old fields are not populated anymore. Let's switch to the new fields then.

This fix should work with 0.6.0, too as the new fields already have been populated back then.

So we can unconditionally pick status.address.url which is accordance with
our policy to support the latest release and the release before.

Fixes #246.

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Jul 8, 2019
@knative-prow-robot knative-prow-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 8, 2019
Comment thread pkg/kn/commands/service/service_list_test.go Outdated
@rhuss rhuss force-pushed the pr/service-list-fix branch from d6de493 to 5b10a2d Compare July 9, 2019 09:00
Copy link
Copy Markdown
Contributor

@navidshaikh navidshaikh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

kServiceColumnDefinitions := []metav1beta1.TableColumnDefinition{
{Name: "Name", Type: "string", Description: "Name of the knative service."},
{Name: "Domain", Type: "string", Description: "Domain name of the knative service."},
{Name: "Name", Type: "string", Description: "Name of the Knative service."},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: navidshaikh, rhuss

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mattmoor mattmoor removed their request for review July 10, 2019 00:57
@rhuss rhuss added this to the v0.2.0 milestone Jul 10, 2019
@rhuss rhuss changed the title fix(service): Pick up new field Address instead of Domain when listing service fix(service): Show URL (external) instead of Address (internal) when listing service Jul 10, 2019
@rhuss rhuss force-pushed the pr/service-list-fix branch from 5b10a2d to fb69f8d Compare July 10, 2019 07:38
@knative-prow-robot knative-prow-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 10, 2019
rhuss added 4 commits July 10, 2019 11:50
…g service

Starting with 0.7.0 old fields are not populated anymore. Let's switch to the new fields then.

This fix should work with 0.6.0, too as the new fields already have been populated back then.

So we can unconditionally pick status.address.url which is accordance with
our policy to support the latest release and the release before.

Fixes knative#246.
@rhuss rhuss force-pushed the pr/service-list-fix branch from fb69f8d to bc10bbf Compare July 10, 2019 09:52
@sixolet
Copy link
Copy Markdown
Contributor

sixolet commented Jul 10, 2019

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 10, 2019
@knative-prow-robot knative-prow-robot merged commit 26fb47c into knative:master Jul 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No domain/address for kn service list shown for serving 0.7.0

5 participants