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

refactor(core-app-plane)!: replace BashJobRunner with ScriptJob #79

Merged
merged 3 commits into from
Aug 2, 2024

Conversation

suhussai
Copy link
Contributor

Issue # (if applicable)

Closes #73

Reason for this change

#73

Description of changes

This commit refactors the BashJobRunner construct into a more generic ScriptJob construct. It also introduces two new constructs, ProvisioningScriptJob and DeprovisioningScriptJob, which are wrappers around ScriptJob with predefined configurations for tenant provisioning and deprovisioning scenarios.

The main changes include:

  • Rename BashJobRunner to ScriptJob and update related interfaces and properties
  • Add OutgoingEventDetailTypes interface to represent success and failure detail types
  • Introduce ProvisioningScriptJob and DeprovisioningScriptJob constructs
  • Update CoreApplicationPlane to use scriptJobs instead of jobRunnersList
  • Update integration tests and documentation accordingly

This refactoring provides a more flexible and extensible approach for running arbitrary scripts in the application plane, while also simplifying the configuration for common tenant lifecycle management scenarios.

Description of how you validated changes

Checklist

  • My code adheres to the CONTRIBUTING GUIDE
  • I have updated the relevant documentation (if applicable).

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.

Copy link
Contributor

@tobuck-aws tobuck-aws left a comment

Choose a reason for hiding this comment

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

Just a question or two..

.projenrc.ts Show resolved Hide resolved
scripts/sbt-aws.sh Show resolved Hide resolved
This commit refactors the BashJobRunner construct into a more generic
ScriptJob construct. It also introduces two new constructs,
ProvisioningScriptJob and DeprovisioningScriptJob, which are wrappers
around ScriptJob with predefined configurations for tenant provisioning
and deprovisioning scenarios.

The main changes include:

- Rename BashJobRunner to ScriptJob and update related interfaces and
  properties
- Add OutgoingEventDetailTypes interface to represent success and
  failure detail types
- Introduce ProvisioningScriptJob and DeprovisioningScriptJob constructs
- Update CoreApplicationPlane to use scriptJobs instead of
  jobRunnersList
- Update integration tests and documentation accordingly

This refactoring provides a more flexible and extensible approach for
running arbitrary scripts in the application plane, while also
simplifying the configuration for common tenant lifecycle management
scenarios.
@suhussai suhussai merged commit 82f60f2 into main Aug 2, 2024
8 checks passed
@suhussai suhussai deleted the issue-73 branch August 2, 2024 02:13
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.

TenentOnboarding: Unable to handle failure from onboarding script while handling onboardingRequest event
3 participants