Skip to content

Commit

Permalink
fix: forget to add SecurityContext (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyy17 authored Nov 11, 2024
1 parent fb1137f commit a9b24e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ func GeneratePodTemplateSpec(kind v1alpha1.ComponentKind, template *v1alpha1.Pod
Lifecycle: template.MainContainer.Lifecycle,
ImagePullPolicy: template.MainContainer.ImagePullPolicy,
VolumeMounts: template.MainContainer.VolumeMounts,
SecurityContext: template.MainContainer.SecurityContext,
},
},
NodeSelector: template.NodeSelector,
Expand All @@ -163,6 +164,7 @@ func GeneratePodTemplateSpec(kind v1alpha1.ComponentKind, template *v1alpha1.Pod
SchedulerName: template.SchedulerName,
Volumes: template.Volumes,
Tolerations: template.Tolerations,
SecurityContext: template.SecurityContext,
},
}

Expand Down

0 comments on commit a9b24e7

Please sign in to comment.