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

🏃 Adopt metal-go #527

Merged
merged 2 commits into from
Aug 3, 2023
Merged

🏃 Adopt metal-go #527

merged 2 commits into from
Aug 3, 2023

Conversation

ctreatma
Copy link
Contributor

What this PR does / why we need it:

This PR replaces packngo with metal-go for all interactions with the Equinix Metal API. The metal-go SDK is generated from the Equinix Metal API spec, and we will gradually replace all usage of packngo with metal-go to streamline support.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 21, 2023
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 21, 2023
@k8s-ci-robot
Copy link
Contributor

Welcome @ctreatma!

It looks like this is your first PR to kubernetes-sigs/cluster-api-provider-packet 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/cluster-api-provider-packet has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 21, 2023
@ctreatma ctreatma force-pushed the metal-go branch 2 times, most recently from 8aaa3ef to 0dc788e Compare March 22, 2023 19:59
cmd/ci-clean/main.go Outdated Show resolved Hide resolved
@ctreatma ctreatma force-pushed the metal-go branch 2 times, most recently from 0dd1f56 to 088e8bd Compare March 22, 2023 20:28
cmd/ci-clean/main.go Outdated Show resolved Hide resolved
@ctreatma ctreatma force-pushed the metal-go branch 2 times, most recently from bf6831a to 46d2667 Compare March 23, 2023 21:07
pkg/cloud/packet/client.go Outdated Show resolved Hide resolved
@ctreatma
Copy link
Contributor Author

ctreatma commented Mar 24, 2023

With the latest metal-go that includes the facility input fix, I'm able to run at least part of make test-e2e-local successfully ("part of" because that task runs a long time and I'm on vacation as of a little bit ago).

As of August 2, 2023 I ran the full make test-e2e-local task successfully.

@ctreatma ctreatma marked this pull request as ready for review May 2, 2023 19:01
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 2, 2023
@ctreatma ctreatma changed the title 🏃 [WIP] Adopt metal-go 🏃 Adopt metal-go May 2, 2023
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 2, 2023
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 2, 2023
@cprivitere
Copy link
Member

/hold Setting a hold to be sure we don't commit before all conversations are resolved.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 2, 2023
This updates CAPP to use metal-go for all Equinix Metal API interactions.
Since metal-go does not support the `PACKNGO_DEBUG` environment variable
for debugging, that behavior is introduced within CAPP for backwards
compatibility.
@ctreatma
Copy link
Contributor Author

ctreatma commented Jun 26, 2023

I believe all of the blocker issues on this PR have been addressed, however I want to get out a metal-go release that replicates the sunset/deprecation header logging and upgrade this PR to use that before this gets merged. (Also, other issues may be identified in this PR as y'all go through it again.)

As of August 2, 2023 this PR has been updated to a version of metal-go that logs Sunset and Deprecation headers.

@cprivitere
Copy link
Member

@displague just waiting for you to confirm your conversations are resolved.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ctreatma, 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 /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 Aug 3, 2023
@cprivitere
Copy link
Member

/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 3, 2023
@cprivitere
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 3, 2023
@k8s-ci-robot k8s-ci-robot merged commit e9c2ee0 into kubernetes-sigs:main Aug 3, 2023
5 checks passed
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. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants