- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NewPodSecurityContextAccessor (0.26 sec)
-
pkg/securitycontext/accessors_test.go
{SupplementalGroups: []int64{1, 2, 3}}, } for i, tc := range testcases { expected := tc if expected == nil { expected = &api.PodSecurityContext{} } a := NewPodSecurityContextAccessor(tc) if v := a.FSGroup(); !reflect.DeepEqual(expected.FSGroup, v) { t.Errorf("%d: expected %#v, got %#v", i, expected.FSGroup, v) } if v := a.HostIPC(); !reflect.DeepEqual(expected.HostIPC, v) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 22 16:15:27 UTC 2023 - 27.8K bytes - Viewed (0) -
pkg/securitycontext/accessors.go
// PodSecurityContext returns the current PodSecurityContext object PodSecurityContext() *api.PodSecurityContext } // NewPodSecurityContextAccessor returns an accessor for the given pod security context. // May be initialized with a nil PodSecurityContext. func NewPodSecurityContextAccessor(podSC *api.PodSecurityContext) PodSecurityContextAccessor { return &podSecurityContextWrapper{podSC: podSC} }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 22 16:15:27 UTC 2023 - 14.4K bytes - Viewed (0)