-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add service account info into service describe #472
Conversation
/retest |
@@ -495,7 +496,7 @@ func validateServiceOutput(t *testing.T, service string, output string) { | |||
assert.Assert(t, util.ContainsAll(output, "Ready", "RoutesReady", "OK", "TYPE", "AGE", "REASON")) | |||
} | |||
|
|||
func createTestService(name string, revisionNames []string, conditions duckv1.Conditions) v1alpha1.Service { | |||
func createTestService(name string, revisionNames []string, serviceaccount string, conditions duckv1.Conditions) v1alpha1.Service { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we define createTestServiceWithServiceAccount
function and have it called createTestService
+ code for adding ServiceAccount ?
Most of the invocation to createTestService are with empty strings (serviceAccount) otherwise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*serviceAccount
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a couple feedback.
Thanks for the contribution.
@@ -546,6 +547,20 @@ func createTestService(name string, revisionNames []string, conditions duckv1.Co | |||
} | |||
service.Status.Traffic = trafficTargets | |||
} | |||
|
|||
if len(serviceaccount) > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check reads odd... if serviceaccount
is suppose to be the serviceAccountName
as it's set in the PodSpec
can we call it that and also check for != ""
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Thanks.
The following is the coverage report on the affected files.
|
@maximilien @navidshaikh It's ready for a second review. Thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/hold
/assign @rhuss
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: daisy-ycguo, navidshaikh The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold cancel |
Fixes #413
Proposed Changes
service describe
if present.Release Note:
service describe
if present.