-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: add symlink support, exception handling, version bump, and httpd image update #46
Conversation
Changes made in this commit include: - new api for symlink and related dataclasses - support for command execution in pod
…pd image - Handled the exception related to the symlink feature, for proper error reporting and system stability during symlink processing. - Bumped up the application version following standard semantic versioning due to changes and improvements. - Updated the httpd container image version for enhanced security and performance.
Update Handling of Symlink Feature Exception and Version Bump
…PR review fo the new image is not done.
Tuple2<String, String> sourceTargetTuple = Tuple2.of(form.metadata().get("source"), | ||
form.metadata().get("target")); | ||
boolean isCreated = exec.createSymlink(form.environment(), sourceTargetTuple); | ||
return "{\"created\":"+isCreated+"}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enhancement: This is a very generic response, Specific Response to be created for the symlink operations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, we should make this change in the next iteration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public class CommandExecutionService { | ||
|
||
|
||
// todo :scope of improvement: read these two vars from the config map |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linked issue is #38
}); | ||
} | ||
|
||
// todo :must do: 1. check both source and destination exists 2. Validate and sanitize the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linked issue #38
.inContainer(CONTAINER_NAME).readingInput(System.in). //TODO replace the deprecated method | ||
// with the new method |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be formatted #38
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arkaprovob it looks good to me. I've added couple of enhancements, we can discuss on these separately
}).exec(command)) { | ||
latch.await(); | ||
} catch (Exception e) { | ||
throw new CommandExecutionException("Error while executing command in container", e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enhancement: In case of exception a proper message should be communicated to the user (via API response/SSE events). To be discussed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arkaprovob please do the |
Description:
This pull request introduces changes related to Symlink support
Commit 1 - Feature: Add support for symlinks at the SPAship operator level
Commit 2 - Chore: Handle symlink feature exception, bump version, and update httpd image