-
Notifications
You must be signed in to change notification settings - Fork 36
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
add GenerateInitContainers function to generator #89
add GenerateInitContainers function to generator #89
Conversation
Signed-off-by: Stephanie <[email protected]>
Signed-off-by: Stephanie <[email protected]>
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.
preStart is now apply, so we should update it. Its one of the reasons why odo disabled preStart because they dont support it atm
we should also probably update odo code and remove where they call initContainers, err := utils.GetPreStartInitContainers(a.Devfile, containers)
since its never executed 🤔
@@ -50,6 +50,33 @@ func GetExecWorkingDir(dc v1.Command) string { | |||
return "" | |||
} | |||
|
|||
// GetApplyComponent returns the component of the exec command |
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.
update desc and a test case?
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.
updated
Signed-off-by: Stephanie <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: maysunfaisal, yangcao77 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Stephanie [email protected]
What does this PR do?
This PR adopts
GenerateInitContainers
and it's supporting functionsgetCommandsFromEvent
andgetCommandsMap
from odo, including the unit tests associated with those functionsWhat issues does this PR fix or reference?
devfile/api#181
Is your PR tested? Consider putting some instruction how to test your changes
add unit tests