mirror of https://github.com/knative/func.git
fix: mismatched container fs permissions (#2946)
This commit is contained in:
parent
e06397d5c7
commit
d04ff0a378
|
|
@ -14,11 +14,12 @@ func defaultPodSecurityContext() *corev1.PodSecurityContext {
|
|||
return nil
|
||||
}
|
||||
runAsUser := int64(1001)
|
||||
runAsGroup := int64(1002)
|
||||
runAsGroup := int64(0) // Match Tekton buildpack task group
|
||||
fsGroup := int64(1002) // Keep FSGroup for volume ownership
|
||||
return &corev1.PodSecurityContext{
|
||||
RunAsUser: &runAsUser,
|
||||
RunAsGroup: &runAsGroup,
|
||||
FSGroup: &runAsGroup,
|
||||
FSGroup: &fsGroup,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue