Skip to content

feat: support path-style URLs for S3-compatible services#214

Open
tcsavage wants to merge 1 commit intoaws-controllers-k8s:mainfrom
tcsavage:feat/s3-path-style-url
Open

feat: support path-style URLs for S3-compatible services#214
tcsavage wants to merge 1 commit intoaws-controllers-k8s:mainfrom
tcsavage:feat/s3-path-style-url

Conversation

@tcsavage
Copy link
Copy Markdown

@tcsavage tcsavage commented Apr 2, 2026

Issue #, if available: aws-controllers-k8s/community#2237

Description of changes:

In order to support some S3-compatible APIs (e.g. LocalStack on a local dev cluster) it may be necessary to force the S3 client to use "path-style" URLs (e.g. http://host/bucket/key).

This PR registers a new new_resource_manager_client_options hook (added in the code generator) and adds a hook template that passes UsePathStyle from the controller config to the S3 SDK client, enabling path-style URL addressing required by LocalStack and other S3-compatible services.

Associated PRs:

  • runtime#233 adds a new config option to allow configuring UsePathStyle.
  • code-generator#684 adds the necessary hook used by this PR to allow configuring the service client based on the new controller config option in the runtime PR.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

…tack)

Registers the new_resource_manager_client_options hook and adds a hook
template that passes UsePathStyle from the controller config to the S3
SDK client, enabling path-style URL addressing required by LocalStack
and other S3-compatible services.
@ack-prow ack-prow bot requested review from jlbutler and knottnt April 2, 2026 07:39
@ack-prow
Copy link
Copy Markdown

ack-prow bot commented Apr 2, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: tcsavage
Once this PR has been reviewed and has the lgtm label, please assign knottnt for approval by writing /assign @knottnt in a comment. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details 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

@ack-prow ack-prow bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Apr 2, 2026
@ack-prow
Copy link
Copy Markdown

ack-prow bot commented Apr 2, 2026

Hi @tcsavage. Thanks for your PR.

I'm waiting for a aws-controllers-k8s member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@tcsavage tcsavage changed the title feat: support path-style URLs for S3-compatible services (e.g. LocalS… feat: support path-style URLs for S3-compatible services Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant