Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Conversation

@cprivitere
Copy link
Contributor

@cprivitere cprivitere commented Jul 25, 2022

Signed-off-by: Chris Privitere 23177737+cprivitere@users.noreply.github.com

What this PR does / why we need it:
The capp e2e testing useragent overrides via ldflags resulted in an akward situation. The few calls to equinix metal done by the e2e test code itself had the correct useragent, but the majority of calls via the manager did not, due to the CI framework pre-building the manager and thus not gettting any of the ldflag overrides from the E2E tests.

Current thinking is to add an Environment variable in the future which can add more UserAgent information. #385

We're going to add an env override for useragent
tracking for things like this in the future. The ldflags
method was causing problems.
Also moving the built in client and ua formatting
back to constants.

Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 25, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cprivitere

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 requested review from deitch and displague July 25, 2022 19:14
@k8s-ci-robot k8s-ci-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 25, 2022
Use packet client instead of packngo.client

Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
and clientUAFormat as vars.

Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
@cprivitere cprivitere merged commit 71172a4 into kubernetes-retired:main Jul 26, 2022
@cprivitere cprivitere deleted the remove-capp-e2e-tags branch July 26, 2022 16:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants