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

Giving the job container from the jobs manager #315

Open
wants to merge 3 commits into
base: multiple_findings_in_subscriptions
Choose a base branch
from

Conversation

lm-sec
Copy link
Collaborator

@lm-sec lm-sec commented Nov 18, 2024

Giving the job container from the job manager is a step forward in having custom containers. It makes it much easier to support new containers.

Can be selected in the front-end:

image

@lm-sec lm-sec requested a review from Aboisier November 18, 2024 04:49
@lm-sec lm-sec self-assigned this Nov 18, 2024
Comment on lines +26 to +41
const modelUpdate: KafkaJobModelUpdate = {
_id: update._id,
name: update.name,
code: update.code,
container: update.container,
jobPodConfigId: update.jobPodConfigId,
language: update.language,
parameters: update.parameters,
type: update.type,
builtIn: update.builtIn,
category: update.category,
findingHandler: update.findingHandler,
findingHandlerEnabled: update.findingHandlerEnabled,
findingHandlerLanguage: update.findingHandlerLanguage,
image: update.container.image,
};
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Si t'as une suggestion pour faire ca mieux, je suis ouvert, j'ai perdu pas mal de temps là-dessus, for some reason faire

const modelUpdate: KafkaJobModelUpdate = {
    ...update,
    image: update.container.image,
};

ne fonctionnait pas.

@lm-sec
Copy link
Collaborator Author

lm-sec commented Nov 18, 2024

Les tests ne pourront pas passer tant que la PR pour les jobs dans l'autre repo ne sera pas appliquée

PR en question

@lm-sec lm-sec marked this pull request as ready for review November 18, 2024 23:14
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.

1 participant