-
Notifications
You must be signed in to change notification settings - Fork 40
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
🐛 Update packngo calls #377
Conversation
Add default gitversion to version.go Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
I see that there is a pattern of calling We can use this pattern to avoid using different call patterns for interacting with the Equinix Metal API. For E2E tests, by passing Gingko, called in the Makefile task |
Looks like the -ldflags strategy won't work as you can't use them on constants, only variables. |
Ok, actually I moved the constants into variables and now I'm getting the following: So i'm...50% successful at overriding the variables? |
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
Our repo has locked this branch as protected again and I can no longer push updates to it. |
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
I re-deleted the branch protection rule. Try again. |
use packet.newclient in suite_test use ldflags to get capp-e2e clientname instead of explicitly calling it Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
@@ -148,6 +148,7 @@ E2E_DIR ?= $(REPO_ROOT)/test/e2e | |||
KUBETEST_CONF_PATH ?= $(abspath $(E2E_DIR)/data/kubetest/conformance.yaml) | |||
E2E_CONF_FILE_SOURCE ?= $(E2E_DIR)/config/packet-ci.yaml | |||
E2E_CONF_FILE ?= $(E2E_DIR)/config/packet-ci-envsubst.yaml | |||
E2E_LD_FLAGS ?= "-X 'sigs.k8s.io/cluster-api-provider-packet/pkg/cloud/packet.clientName=capp-e2e' -X 'sigs.k8s.io/cluster-api-provider-packet/pkg/cloud/packet.clientUAFormat=capp-e2e/%s %s'" |
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.
I wonder if we could use GINKGO_ADDITIONAL_ARGS for this.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cprivitere, displague 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 |
Add default gitversion to version.go
Signed-off-by: Chris Privitere 23177737+cprivitere@users.noreply.github.com
What this PR does / why we need it:
Fix the useragent code added in the last PR.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):