-
Notifications
You must be signed in to change notification settings - Fork 38.6k
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
test/integration/client: test exec calls metric #102152
test/integration/client: test exec calls metric #102152
Conversation
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 test the client_internal_error
case?
// use the provided token for authentication. The same can be said for when the | ||
// user specifies basic auth. | ||
if c.HasTokenAuth() || c.HasBasicAuth() { |
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.
Split this change into its own PR with matching tests like #91745.
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.
Included in 31c53024ff9c54597a7c3da511eb5e864f5e6140. PR: https://github.com/kubernetes/kubernetes/pull/102175/files.
echo "$EXEC_PLUGIN_OUTPUT" | ||
echo "${EXEC_PLUGIN_OUTPUT-""}" | ||
|
||
exit "${EXEC_PLUGIN_EXEC_CODE-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.
nit: fix missing newline
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.
Included in 31c53024ff9c54597a7c3da511eb5e864f5e6140.
previousCallsMetric := metrics.ExecPluginCalls | ||
t.Cleanup(func() { | ||
metrics.ExecPluginCalls = previousCallsMetric | ||
}) |
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.
🤮 at the global state.
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.
Same.
c7ed54b
to
d883387
Compare
14ca8ac
to
31c5302
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ankeesler, enj 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 |
/lgtm cancel |
31c5302
to
57e3221
Compare
/triage accepted |
/assign @DangerOnTheRanger |
Signed-off-by: Andrew Keesler <akeesler@vmware.com>
57e3221
to
584acb2
Compare
/lgtm |
/retest |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?
/sig auth