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

Add new API client for Waypoint. #208

Merged
merged 7 commits into from
Mar 6, 2025
Merged

Conversation

paladin-devops
Copy link
Contributor

The new client will be used to communicate with HCP Waypoint.

πŸ› οΈ Description

πŸ”— Additional Link

πŸ—οΈ Local Testing

πŸ‘ Checklist

  • The PR has a descriptive title.
  • Input validation updated
  • Unit tests updated
  • Documentation updated
  • Major architecture changes have a corresponding RFC
  • Tests added if applicable
  • CHANGELOG entry added or label 'pr/no-changelog' added to PR

    Run CHANGELOG_PR=<PR number> make changelog/new-entry for guidance
    in authoring a changelog entry, and commit the resulting file, which should
    have a name matching your PR number. Entries should use imperative present
    tense (e.g. Add support for...)

Sorry, something went wrong.

@paladin-devops paladin-devops force-pushed the WAYP-3243-add-new-client branch 2 times, most recently from f0e1d89 to 60a2889 Compare January 16, 2025 18:22
The new client will be used to communicate with HCP Waypoint.
@paladin-devops paladin-devops force-pushed the WAYP-3243-add-new-client branch from 60a2889 to b17f4dd Compare January 16, 2025 19:00
* 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 paladin-devops added the pr/no-changelog Disable enforcement of changelog entry label Feb 4, 2025
@pierluc-codes
Copy link
Contributor

@paladin-devops is it important?

@paladin-devops
Copy link
Contributor Author

@pierluc-codes yes, @jfreda is working on the other part of this.

Copy link

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.

jfreda added 2 commits March 4, 2025 14:17
* Update Waypoint actions commands to use new service

* Update Waypoint agent commands to use new service

* Looks like we can remove the NamespaceID now
@paladin-devops paladin-devops changed the title WIP: Add new API client for Waypoint. Add new API client for Waypoint. Mar 5, 2025
@paladin-devops paladin-devops marked this pull request as ready for review March 5, 2025 19:04
@paladin-devops paladin-devops requested a review from a team as a code owner March 5, 2025 19:04
Copy link
Contributor

@HenryEstberg HenryEstberg left a 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
Copy link
Contributor

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),
Copy link
Contributor

@HenryEstberg HenryEstberg Mar 5, 2025 β€’

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?

Copy link
Contributor Author

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!

Copy link
Contributor Author

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
Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

i think its fine

@paladin-devops paladin-devops merged commit 22ad6d0 into main Mar 6, 2025
4 checks passed
@paladin-devops paladin-devops deleted the WAYP-3243-add-new-client branch March 6, 2025 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/no-changelog Disable enforcement of changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants