securitycontext

package
v1.68.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 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 WithContainerCapabilities added in v1.41.6

func WithContainerCapabilities(capabilities []corev1.Capability) ContainerOption

func WithContainerDropAllCapabilities added in v1.31.2

func WithContainerDropAllCapabilities() ContainerOption

func WithContainerRunAsGroup added in v1.31.2

func WithContainerRunAsGroup(groupId int64) ContainerOption

func WithContainerRunAsNonRoot added in v1.41.6

func WithContainerRunAsNonRoot(runAsNonRoot *bool) ContainerOption

func WithContainerRunAsUser added in v1.31.2

func WithContainerRunAsUser(userId int64) ContainerOption

func WithContainerSeccompProfile added in v1.31.2

func WithContainerSeccompProfile(secCompProfile corev1.SeccompProfile) ContainerOption

func WithContainerSeccompProfileType added in v1.41.6

func WithContainerSeccompProfileType(secCompProfile corev1.SeccompProfileType) ContainerOption

func WithReadOnlyRootFileSystem added in v1.50.0

func WithReadOnlyRootFileSystem(readOnly *bool) 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 WithPodRunAsNonRoot added in v1.41.6

func WithPodRunAsNonRoot(runAsNonRoot *bool) 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