Skip to content

Commit

Permalink
Merge pull request #1866 from enissay14/1865-sa-to-prepackaged-server…
Browse files Browse the repository at this point in the history
…-pod

attach serviceAccountName to prepackaged deployment spec
  • Loading branch information
axsaucedo authored Jul 15, 2020
2 parents 4172098 + 0adff10 commit 65c884f
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 @@ -285,6 +285,11 @@ func (pi *PrePackedInitialiser) createStandaloneModelServers(mlDep *machinelearn
deploy = createDeploymentWithoutEngine(depName, seldonId, sPodSpec, p, mlDep, podSecurityContext)
}

// apply serviceAccountName to pod to enable EKS fine-grained IAM roles
if pu.ServiceAccountName != "" {
deploy.Spec.Template.Spec.ServiceAccountName = pu.ServiceAccountName
}

serverConfig := machinelearningv1.GetPrepackServerConfig(string(*pu.Implementation))
if serverConfig != nil {
if *pu.Implementation != machinelearningv1.PrepackTensorflowName {
Expand Down

0 comments on commit 65c884f

Please sign in to comment.