mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
FSGroup implementation
This commit is contained in:
@@ -1501,14 +1501,6 @@ func deepCopy_v1_PodProxyOptions(in PodProxyOptions, out *PodProxyOptions, c *co
|
||||
}
|
||||
|
||||
func deepCopy_v1_PodSecurityContext(in PodSecurityContext, out *PodSecurityContext, c *conversion.Cloner) error {
|
||||
if in.SupplementalGroups != nil {
|
||||
out.SupplementalGroups = make([]int64, len(in.SupplementalGroups))
|
||||
for i := range in.SupplementalGroups {
|
||||
out.SupplementalGroups[i] = in.SupplementalGroups[i]
|
||||
}
|
||||
} else {
|
||||
out.SupplementalGroups = nil
|
||||
}
|
||||
if in.SELinuxOptions != nil {
|
||||
out.SELinuxOptions = new(SELinuxOptions)
|
||||
if err := deepCopy_v1_SELinuxOptions(*in.SELinuxOptions, out.SELinuxOptions, c); err != nil {
|
||||
@@ -1529,6 +1521,20 @@ func deepCopy_v1_PodSecurityContext(in PodSecurityContext, out *PodSecurityConte
|
||||
} else {
|
||||
out.RunAsNonRoot = nil
|
||||
}
|
||||
if in.SupplementalGroups != nil {
|
||||
out.SupplementalGroups = make([]int64, len(in.SupplementalGroups))
|
||||
for i := range in.SupplementalGroups {
|
||||
out.SupplementalGroups[i] = in.SupplementalGroups[i]
|
||||
}
|
||||
} else {
|
||||
out.SupplementalGroups = nil
|
||||
}
|
||||
if in.FSGroup != nil {
|
||||
out.FSGroup = new(int64)
|
||||
*out.FSGroup = *in.FSGroup
|
||||
} else {
|
||||
out.FSGroup = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user