Skip to content
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

conformance: do not use (and mutate) DefaultClient #1617

Merged

Conversation

howardjohn
Copy link
Contributor

This is a global variable. Since we import the tests and then run other tests, this broke our other tests which depend on DefaultClient.

What type of PR is this?
/kind bug

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:


This is a global variable. Since we import the tests and then run other
tests, this broke our other tests which depend on DefaultClient.
@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Dec 21, 2022
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Dec 21, 2022
howardjohn added a commit to howardjohn/istio that referenced this pull request Dec 21, 2022
Using a single shared client risks other parts of the code (or
dependencies) modifying the client and breaking things. See
kubernetes-sigs/gateway-api#1617 for an exmaple
where this happened.

Also fix up paths to avoid `//debug` requests which always get a 301.
Copy link
Member

@shaneutt shaneutt left a comment

Choose a reason for hiding this comment

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

At one point I could have sworn there was a linter for this... I'm unable to find it now 🤔

Anyhow, yes thank you. 👍

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 21, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: howardjohn, shaneutt

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 21, 2022
@robscott
Copy link
Member

Thanks!

/lgtm

@k8s-ci-robot k8s-ci-robot merged commit e097dff into kubernetes-sigs:main Dec 21, 2022
istio-testing pushed a commit to istio/istio that referenced this pull request Dec 29, 2022
* Drop `http.DefaultClient`

Using a single shared client risks other parts of the code (or
dependencies) modifying the client and breaking things. See
kubernetes-sigs/gateway-api#1617 for an exmaple
where this happened.

Also fix up paths to avoid `//debug` requests which always get a 301.

* fix test

* fix
@shaneutt shaneutt added this to the v0.6.1 milestone Feb 7, 2023
shaneutt pushed a commit that referenced this pull request Feb 7, 2023
conformance: do not use (and mutate) DefaultClient
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants