Skip to content

Commit

Permalink
Merge pull request #5215 from mszacillo/priorityclass-flinkdeployment
Browse files Browse the repository at this point in the history
Adding generic handling of priorityclass + namespace for flinkdeployment interpreter
  • Loading branch information
karmada-bot authored Jul 18, 2024
2 parents 871e2bf + d79c600 commit 32924ad
Showing 1 changed file with 9 additions and 1 deletion.
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

0 comments on commit 32924ad

Please sign in to comment.