Skip to content

Commit

Permalink
Make sure TerminationMessagePolicy/Path are set when creating cdi-api…
Browse files Browse the repository at this point in the history
…server

Fixing regression introduced in kubevirt#3465

Signed-off-by: Michael Henriksen <[email protected]>
  • Loading branch information
mhenriks authored and kubevirt-bot committed Oct 31, 2024
1 parent 83cc3e3 commit e040c25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/operator/resources/utils/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ func CreateContainer(name, image, verbosity, pullPolicy string) corev1.Container
// CreatePortsContainer creates container with ports
func CreatePortsContainer(name, image, pullPolicy string, ports []corev1.ContainerPort) corev1.Container {
container := ResourceBuilder.CreatePortsContainer(name, image, pullPolicy, ports)
container.TerminationMessagePolicy = corev1.TerminationMessageReadFile
container.TerminationMessagePath = corev1.TerminationMessagePathDefault
container.SecurityContext = &corev1.SecurityContext{
Capabilities: &corev1.Capabilities{
Drop: []corev1.Capability{
Expand Down

0 comments on commit e040c25

Please sign in to comment.