Skip to content

Commit

Permalink
DBZ-7749 Add pod securityContext from templates
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisrecalis committed Apr 6, 2024
1 parent c1b8f5a commit 802cf1d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ private void addTemplateConfigurationToPod(PodTemplate template, PodTemplateSpec
var podSpec = pod.getSpec();
var podMeta = pod.getMetadata();

podSpec.setSecurityContext(template.getSecurityContext());
podSpec.setAffinity(template.getAffinity());
podSpec.setImagePullSecrets(template.getImagePullSecrets());
podMeta.getLabels().putAll(templateMeta.getLabels());
Expand Down

0 comments on commit 802cf1d

Please sign in to comment.