Skip to content

Conversation

@sanketjadhavSF
Copy link
Contributor

This pull request introduces support for passing custom arguments to Spark EKS jobs, enhancing flexibility in job configuration. The changes allow users to specify additional arguments that will be included when the job is executed, in addition to the existing parameter options.

Enhancement to Spark EKS job configuration:

  • Added an Arguments field to the sparkEksJobContext struct, allowing users to specify a slice of custom arguments for Spark jobs.
  • Updated the applySparkOperatorConfig function to use the new Arguments field: if ReturnResult is false and Arguments are provided, the job's argument list is constructed using the app name, user, and the custom arguments.

@Copilot Copilot AI review requested due to automatic review settings October 6, 2025 17:47
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds support for custom job arguments in Spark EKS job configuration to enhance flexibility in job execution. This allows users to specify additional arguments beyond the default parameters when configuring Spark jobs.

  • Added an Arguments field to the sparkEksJobContext struct to accept custom arguments
  • Updated the argument construction logic in applySparkOperatorConfig to use custom arguments when provided
  • Enhanced the conditional logic to handle three scenarios: return result mode, custom arguments mode, and default mode

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

mainAppFile := s3aWrapperURI
if jobContext.ReturnResult {
sparkApp.Spec.Arguments = []string{execCtx.appName, s3aQueryURI, execCtx.job.User, s3aResultURI}
} else if len(jobContext.Arguments) > 0 {
Copy link
Contributor

@hladush hladush Oct 6, 2025

Choose a reason for hiding this comment

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

what if ReturnResult true and Arguments are provided? what should be happened?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Please check now

@patterninc patterninc deleted a comment from sanketjadhavSF Oct 6, 2025
@sanketjadhavSF sanketjadhavSF changed the title Add support for additional job arguments in Spark EKS job context for chipmunk jobs Add support for additional job arguments in Spark EKS job context Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants