-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add new API client for Waypoint. #208
Conversation
f0e1d89
to
60a2889
Compare
The new client will be used to communicate with HCP Waypoint.
60a2889
to
b17f4dd
Compare
* feat: Update Waypoint TFCConfig commands to use new client. * feat: Update Waypoint templates commands to use new client. * feat: Update Waypoint add-on definition commands to use new client. * feat: Update Waypoint application commands to use new client. * feat: Update Waypoint add-on commands to use new client.
@paladin-devops is it important? |
@pierluc-codes yes, @jfreda is working on the other part of this. |
This PR is more than 2 weeks old. Please remove the stale label, update, or comment if this PR is still valid and relevant, otherwise it will be closed in 7 days. |
* Update Waypoint actions commands to use new service * Update Waypoint agent commands to use new service * Looks like we can remove the NamespaceID now
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.
Looks great overall! I have a couple of comments/questions before I approve.
go.mod
Outdated
@@ -12,7 +12,7 @@ require ( | |||
github.com/hashicorp/go-multierror v1.1.1 | |||
github.com/hashicorp/go-version v1.7.0 | |||
github.com/hashicorp/hcl/v2 v2.23.0 | |||
github.com/hashicorp/hcp-sdk-go v0.131.0 | |||
github.com/hashicorp/hcp-sdk-go v0.131.1-0.20250115174642-56cccc8d9986 |
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.
Make this a full version please!
Profile: ctx.Profile, | ||
IO: ctx.IO, | ||
Output: ctx.Output, | ||
WS: waypoint_service.New(ctx.HCP, nil), |
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.
Should this be still creating the WS based on the 20230818 service? Do we still need anything related to the 2023 service here at all?
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.
That was kept there while the downstream PRs were in-flight so that hcp
would still compile (if you removed that and things were still using it, you'd have to update all usages right away). Now that they're merged here, I'll remove this!
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.
Updated! e2639e1
@@ -1,6 +1,8 @@ | |||
module github.com/hashicorp/hcp | |||
|
|||
go 1.22.2 | |||
go 1.23 |
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.
@pierluc-codes should we stay pinned on Go v1.22.2? If so I will roll this back.
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 think its fine
The new client will be used to communicate with HCP Waypoint.
π οΈ Description
π Additional Link
ποΈ Local Testing
π Checklist