Documentation ¶
Index ¶
- func Container(options ...ContainerOption) *corev1.SecurityContext
- func Pod(options ...PodOption) *corev1.PodSecurityContext
- type ContainerOption
- func WithContainerCapabilities(capabilities []corev1.Capability) ContainerOption
- func WithContainerDropAllCapabilities() ContainerOption
- func WithContainerRunAsGroup(groupId int64) ContainerOption
- func WithContainerRunAsNonRoot(runAsNonRoot *bool) ContainerOption
- func WithContainerRunAsUser(userId int64) ContainerOption
- func WithContainerSeccompProfile(secCompProfile corev1.SeccompProfile) ContainerOption
- func WithContainerSeccompProfileType(secCompProfile corev1.SeccompProfileType) ContainerOption
- func WithReadOnlyRootFileSystem(readOnly *bool) ContainerOption
- type PodOption
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 WithPodRunAsNonRoot ¶ added in v1.41.6
func WithPodSeccompProfile ¶ added in v1.31.2
func WithPodSeccompProfile(secCompProfile corev1.SeccompProfileType) PodOption
Click to show internal directories.
Click to hide internal directories.