Skip to content

Commit

Permalink
attach serviceAccountName to prepackaged deployment spec
Browse files Browse the repository at this point in the history
  • Loading branch information
enissay14 committed May 22, 2020
1 parent 9889b46 commit 44ea8a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions operator/controllers/seldondeployment_prepackaged_servers.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,11 @@ func createStandaloneModelServers(r *SeldonDeploymentReconciler, mlDep *machinel
deploy = createDeploymentWithoutEngine(depName, seldonId, sPodSpec, p, mlDep, podSecurityContext)
}

// apply serviceAccountName defined in predictors to prepackaged containers
if pu.ServiceAccountName != "" {
deploy.Spec.Template.Spec.ServiceAccountName = pu.ServiceAccountName
}

ServerConfig := machinelearningv1.GetPrepackServerConfig(string(*pu.Implementation))

if err := addModelDefaultServers(r, pu, p, deploy, ServerConfig); err != nil {
Expand Down

0 comments on commit 44ea8a6

Please sign in to comment.