securitycontext

package
v1.28.12 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// It is recommended to choose UID and GID that don't collide with existing system users and groups.
	// Non-system UID and GID range is normally from 1000 to 60000 (Debian derived systems define this
	// in /etc/login.defs). On a normal Linux host, it is unlikely to have more than 10k non-system users.
	// 10001 is chosen based on this assumption.
	RunAsUserID  int64 = 10001
	RunAsGroupID int64 = 10001
)

Functions

func NewBaseContext

func NewBaseContext(uid, gid int64) *corev1.SecurityContext

NewBaseContext returns the non root non privileged security context that most of the containers running should be using.

Types

This section is empty.

Jump to

Keyboard shortcuts

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