Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Container ¶ added in v1.31.2
func Container(options ...ContainerOption) *corev1.SecurityContext
func Pod ¶ added in v1.31.2
func Pod(options ...PodOption) *corev1.PodSecurityContext
Types ¶
type ContainerOption ¶ added in v1.31.2
type ContainerOption func(securityContext *corev1.SecurityContext)
func WithContainerDropAllCapabilities ¶ added in v1.31.2
func WithContainerDropAllCapabilities() ContainerOption
func WithContainerRunAsGroup ¶ added in v1.31.2
func WithContainerRunAsGroup(groupId int64) ContainerOption
func WithContainerRunAsUser ¶ added in v1.31.2
func WithContainerRunAsUser(userId int64) ContainerOption
func WithContainerSeccompProfile ¶ added in v1.31.2
func WithContainerSeccompProfile(secCompProfile corev1.SeccompProfileType) ContainerOption
type PodOption ¶ added in v1.31.2
type PodOption func(securityContext *corev1.PodSecurityContext)
func WithPodFSGroup ¶ added in v1.31.2
func WithPodSeccompProfile ¶ added in v1.31.2
func WithPodSeccompProfile(secCompProfile corev1.SeccompProfileType) PodOption
Click to show internal directories.
Click to hide internal directories.