Skip to content

Commit

Permalink
fix service account names for NIMCache instance (#59)
Browse files Browse the repository at this point in the history
Signed-off-by: Shiva Krishna, Merla <[email protected]>
  • Loading branch information
shivamerla authored Aug 16, 2024
1 parent cdb8b9b commit 305c478
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/controller/nimcache_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ func constructPodSpec(nimCache *appsv1alpha1.NIMCache) *corev1.Pod {
FSGroup: nimCache.GetGroupID(),
RunAsNonRoot: ptr.To[bool](true),
},
ServiceAccountName: nimCache.GetName(),
ServiceAccountName: NIMCacheServiceAccount,
Tolerations: nimCache.GetTolerations(),
NodeSelector: nimCache.GetNodeSelectors(),
},
Expand Down Expand Up @@ -922,7 +922,7 @@ func constructJob(nimCache *appsv1alpha1.NIMCache) (*batchv1.Job, error) {
},
},
ImagePullSecrets: []corev1.LocalObjectReference{},
ServiceAccountName: nimCache.GetName(),
ServiceAccountName: NIMCacheServiceAccount,
Tolerations: nimCache.GetTolerations(),
NodeSelector: nimCache.GetNodeSelectors(),
},
Expand Down

0 comments on commit 305c478

Please sign in to comment.