-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 restartPolicy field to SparkApplication Driver/Executor initContainers CRDs #2022
Add restartPolicy field to SparkApplication Driver/Executor initContainers CRDs #2022
Conversation
Signed-off-by: Mark Schroering <mark.schroering@gmail.com>
Signed-off-by: Mark Schroering <mark.schroering@gmail.com>
Signed-off-by: Mark Schroering <mark.schroering@gmail.com>
+1 this will be very helpful. |
+1 as well, we could use this |
Good feature, would love to use it for our logging sidecar |
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.
LGTM
@yuchaoran2011 FYI
/assign mwielgus |
/assign yuchaoran2011 |
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.
LGTM
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vara-bonthu, yuchaoran2011 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 |
Purpose of this PR
InitContainers can now specify a
restartPolicy
with a value ofAlways
to make the init container act like a sidecar. This PR updates the CRDs to allow this field to be present.https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#lifecycle
https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
Proposed changes:
restartPolicy
todriver.initContainers
andexecutor.initContainers
for bothSparkApplication
andScheduledSparkApplication
.Change Category
Indicate the type of change by marking the applicable boxes:
Rationale
This allows users of the helm chart to set
restartPolicy: "Always"
for init containers on the executor and driver pods.Checklist
Before submitting your PR, please review the following: