securitycontext

package
v1.34.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 2 Imported by: 0

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 WithPodFSGroup(fsGroup int64) PodOption

func WithPodSeccompProfile added in v1.31.2

func WithPodSeccompProfile(secCompProfile corev1.SeccompProfileType) PodOption

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL