Skip to content

Commit

Permalink
remove unneeded removeSecurityContext
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Phelan committed Mar 5, 2021
1 parent 05b932a commit ba2be35
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pkg/apis/build/v1alpha1/build_pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func (b *Build) BuildPod(images BuildPodImages, secrets []corev1.Secret, taints
projectMetadataVolume,
),
},
ifWindows(config.OS, addNetworkWaitLauncherVolume(), removeSecurityContext())...,
ifWindows(config.OS, addNetworkWaitLauncherVolume())...,
)
step(
corev1.Container{
Expand Down Expand Up @@ -515,13 +515,6 @@ func userprofileHomeEnv() stepModifier {
}
}

func removeSecurityContext() stepModifier {
return func(container corev1.Container) corev1.Container {
container.SecurityContext = nil
return container
}
}

func noOpModifer(container corev1.Container) corev1.Container {
return container
}
Expand Down

0 comments on commit ba2be35

Please sign in to comment.