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

Added API Action Request #951

Merged
merged 37 commits into from
Dec 19, 2024
Merged

Added API Action Request #951

merged 37 commits into from
Dec 19, 2024

Conversation

aphralG
Copy link
Contributor

@aphralG aphralG commented Dec 16, 2024

Proposed changes

Added API Action Request ManagementPlaneRequest

  • UpdateHTTPUpstreamServers
  • GetHTTPUpstreamServers

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING document
  • I have run make install-tools and have attached any dependency changes to this pull request
  • If applicable, I have added tests that prove my fix is effective or that my feature works
  • If applicable, I have checked that any relevant tests pass after adding my changes
  • If applicable, I have updated any relevant documentation (README.md)
  • If applicable, I have tested my cross-platform changes on Ubuntu 22, Redhat 8, SUSE 15 and FreeBSD 13

@aphralG aphralG self-assigned this Dec 16, 2024
@aphralG aphralG requested a review from a team as a code owner December 16, 2024 14:31
@github-actions github-actions bot added chore Pull requests for routine tasks documentation Improvements or additions to documentation labels Dec 16, 2024
@@ -191,7 +191,28 @@ message ConfigUploadRequest {
}

// Perform an associated API action on an instance
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add comments to the fields in the new proto messages?

Copy link
Collaborator

@dhurley dhurley Dec 19, 2024

Choose a reason for hiding this comment

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

Can you add comments to all the fields like instance_id, http_upstream_name, servers, etc.

internal/resource/resource_plugin.go Outdated Show resolved Hide resolved
internal/resource/resource_plugin.go Outdated Show resolved Hide resolved
internal/resource/resource_plugin.go Outdated Show resolved Hide resolved
internal/resource/resource_plugin.go Outdated Show resolved Hide resolved
internal/resource/resource_plugin_test.go Outdated Show resolved Hide resolved
internal/resource/resource_service.go Outdated Show resolved Hide resolved
internal/resource/resource_service.go Outdated Show resolved Hide resolved
internal/resource/resource_service.go Outdated Show resolved Hide resolved
internal/resource/resource_service.go Outdated Show resolved Hide resolved
@@ -191,7 +191,28 @@ message ConfigUploadRequest {
}

// Perform an associated API action on an instance
Copy link
Collaborator

@dhurley dhurley Dec 19, 2024

Choose a reason for hiding this comment

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

Can you add comments to all the fields like instance_id, http_upstream_name, servers, etc.

internal/resource/resource_plugin.go Show resolved Hide resolved
internal/resource/resource_service.go Outdated Show resolved Hide resolved
var servers []client.UpstreamServer
res, err := json.Marshal(upstreams)
if err != nil {
slog.Error("Failed to marshal upstreams", "error", err, "servers", servers)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
slog.Error("Failed to marshal upstreams", "error", err, "servers", servers)
slog.Error("Failed to marshal upstreams", "error", err, "upstreams", upstreams)

@aphralG aphralG merged commit c2b2966 into v3 Dec 19, 2024
20 checks passed
@aphralG aphralG deleted the api-action-request branch December 19, 2024 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Pull requests for routine tasks documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants