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

Adding generic handling of priorityclass + namespace for flinkdeployment interpreter #5215

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,19 @@ spec:
requires.resourceRequest.memory = observedObj.spec.taskManager.resource.memory
end

-- Until multiple podTemplates are supported, interpreter will only take affinity and toleration input to common podTemplate
-- Until multiple podTemplates are supported, interpreter will only take affinity, toleration, and priorityclass input to common podTemplate

if observedObj.spec.podTemplate ~= nil and observedObj.spec.podTemplate.spec ~= nil then
requires.nodeClaim.nodeSelector = observedObj.spec.podTemplate.spec.nodeSelector
requires.nodeClaim.tolerations = observedObj.spec.podTemplate.spec.tolerations
priorityclass = observedObj.spec.podTemplate.spec.priorityClassName
if not isempty(priorityclass) then
requires.priorityClassName = priorityclass
end
end

if not isempty(observedObj.metadata.namespace) then
requires.namespace = observedObj.metadata.namespace
end

return replica, requires
Expand Down