chore: added s3 flag - #1061
Open
saksham-datazip wants to merge 25 commits into
Open
Conversation
saksham-datazip
temporarily deployed
to
integration_tests
August 1, 2026 14:24 — with
GitHub Actions
Inactive
saksham-datazip
temporarily deployed
to
integration_tests
August 1, 2026 14:24 — with
GitHub Actions
Inactive
saksham-datazip
had a problem deploying
to
integration_tests
August 1, 2026 14:24 — with
GitHub Actions
Failure
saksham-datazip
temporarily deployed
to
integration_tests
August 1, 2026 14:33 — with
GitHub Actions
Inactive
saksham-datazip
temporarily deployed
to
integration_tests
August 1, 2026 14:33 — with
GitHub Actions
Inactive
saksham-datazip
had a problem deploying
to
integration_tests
August 1, 2026 14:33 — with
GitHub Actions
Failure
saksham-datazip
temporarily deployed
to
integration_tests
August 1, 2026 14:50 — with
GitHub Actions
Inactive
saksham-datazip
temporarily deployed
to
integration_tests
August 2, 2026 13:57 — with
GitHub Actions
Inactive
saksham-datazip
temporarily deployed
to
integration_tests
August 2, 2026 13:57 — with
GitHub Actions
Inactive
saksham-datazip
temporarily deployed
to
integration_tests
August 2, 2026 13:57 — with
GitHub Actions
Inactive
saksham-datazip
temporarily deployed
to
integration_tests
August 2, 2026 16:15 — with
GitHub Actions
Inactive
saksham-datazip
temporarily deployed
to
integration_tests
August 2, 2026 16:15 — with
GitHub Actions
Inactive
saksham-datazip
temporarily deployed
to
integration_tests
August 2, 2026 16:15 — with
GitHub Actions
Inactive
saksham-datazip
temporarily deployed
to
integration_tests
August 3, 2026 16:58 — with
GitHub Actions
Inactive
saksham-datazip
temporarily deployed
to
integration_tests
August 3, 2026 16:58 — with
GitHub Actions
Inactive
saksham-datazip
temporarily deployed
to
integration_tests
August 3, 2026 16:58 — with
GitHub Actions
Inactive
vikaxsh
reviewed
Aug 5, 2026
| }, | ||
| RunE: func(cmd *cobra.Command, _ []string) error { | ||
| RunE: func(cmd *cobra.Command, _ []string) (err error) { | ||
| defer func() { |
Collaborator
There was a problem hiding this comment.
what if we wrap this in a common fn and eliminate 3x defer
Comment on lines
+21
to
+33
| if err := resolveS3PathFlag(ctx, &configPath); err != nil { | ||
| return err | ||
| } | ||
| if err := resolveS3PathFlag(ctx, &destinationConfigPath); err != nil { | ||
| return err | ||
| } | ||
| if err := resolveS3PathFlag(ctx, &streamsPath); err != nil { | ||
| return err | ||
| } | ||
| if err := resolveS3PathFlag(ctx, &statePath); err != nil { | ||
| return err | ||
| } | ||
| if err := resolveS3PathFlag(ctx, &differencePath); err != nil { |
| local string | ||
| name string | ||
| }{ | ||
| {filepath.Join(configFolder, "streams.json"), "streams.json"}, |
Collaborator
There was a problem hiding this comment.
wee can use constants.StreamsPath instead of rebuilding
| @@ -0,0 +1,101 @@ | |||
| package protocol | |||
Collaborator
There was a problem hiding this comment.
Can we move these to utils? Since these aren't commands, it would be better to keep the protocol layer thin and shift as much of this logic as possible into utils
Comment on lines
+37
to
+41
| accessKey := envFirst("OLAKE_S3_ACCESS_KEY_ID", "AWS_ACCESS_KEY_ID") | ||
| secretKey := envFirst("OLAKE_S3_SECRET_ACCESS_KEY", "AWS_SECRET_ACCESS_KEY") | ||
| if accessKey != "" && secretKey != "" { | ||
| sessionToken := envFirst("OLAKE_S3_SESSION_TOKEN", "AWS_SESSION_TOKEN") | ||
| configOpts = append(configOpts, config.WithCredentialsProvider( |
Collaborator
There was a problem hiding this comment.
for using s3 a remote fs we should follow strict protocol for env vars
| } | ||
|
|
||
| // newS3Client creates a new S3 client. | ||
| func newS3Client(ctx context.Context) (*s3.Client, error) { |
Collaborator
There was a problem hiding this comment.
Can we avoid creating the S3 client separately for upload and resolve? We can create it once and reuse it
saksham-datazip
requested a deployment
to
integration_tests
August 10, 2026 07:49 — with
GitHub Actions
Waiting
saksham-datazip
requested a deployment
to
integration_tests
August 10, 2026 07:49 — with
GitHub Actions
Waiting
saksham-datazip
requested a deployment
to
integration_tests
August 10, 2026 07:49 — with
GitHub Actions
Waiting
saksham-datazip
requested a deployment
to
integration_tests
August 11, 2026 06:54 — with
GitHub Actions
Waiting
saksham-datazip
requested a deployment
to
integration_tests
August 11, 2026 06:54 — with
GitHub Actions
Waiting
saksham-datazip
requested a deployment
to
integration_tests
August 11, 2026 06:54 — with
GitHub Actions
Waiting
saksham-datazip
temporarily deployed
to
integration_tests
August 15, 2026 21:00 — with
GitHub Actions
Inactive
saksham-datazip
requested a deployment
to
integration_tests
August 15, 2026 21:09 — with
GitHub Actions
Waiting
saksham-datazip
requested a deployment
to
integration_tests
August 15, 2026 21:09 — with
GitHub Actions
Waiting
saksham-datazip
requested a deployment
to
integration_tests
August 15, 2026 21:09 — with
GitHub Actions
Waiting
saksham-datazip
requested a deployment
to
integration_tests
August 15, 2026 21:09 — with
GitHub Actions
Waiting
saksham-datazip
requested a deployment
to
integration_tests
August 15, 2026 21:09 — with
GitHub Actions
Waiting
saksham-datazip
requested a deployment
to
integration_tests
August 15, 2026 21:09 — with
GitHub Actions
Waiting
saksham-datazip
requested a deployment
to
integration_tests
August 15, 2026 21:09 — with
GitHub Actions
Waiting
saksham-datazip
requested a deployment
to
integration_tests
August 15, 2026 21:09 — with
GitHub Actions
Waiting
saksham-datazip
temporarily deployed
to
integration_tests
August 16, 2026 19:22 — with
GitHub Actions
Inactive
saksham-datazip
temporarily deployed
to
integration_tests
August 16, 2026 19:22 — with
GitHub Actions
Inactive
saksham-datazip
temporarily deployed
to
integration_tests
August 16, 2026 19:22 — with
GitHub Actions
Inactive
saksham-datazip
temporarily deployed
to
integration_tests
August 16, 2026 19:22 — with
GitHub Actions
Inactive
saksham-datazip
temporarily deployed
to
integration_tests
August 16, 2026 19:22 — with
GitHub Actions
Inactive
saksham-datazip
temporarily deployed
to
integration_tests
August 16, 2026 19:22 — with
GitHub Actions
Inactive
saksham-datazip
temporarily deployed
to
integration_tests
August 16, 2026 19:22 — with
GitHub Actions
Inactive
saksham-datazip
temporarily deployed
to
integration_tests
August 16, 2026 19:22 — with
GitHub Actions
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR makes NFS optional for the UI/Helm workflow by adding S3-backed configuration handling for CLI commands.
When a command receives an
s3://path, the CLI now:streams.json,state.json,stats.json, anddifference_streams.json) back to the corresponding S3 job folder after successful execution.This allows the UI and Helm deployment to use S3 as the shared storage backend instead of requiring NFS while keeping the connector execution flow unchanged.
Fixes # (issue)
Type of change
How Has This Been Tested?
Screenshots or Recordings
N/A
Documentation
Related PR's (If Any):
N/A