kubernetesk8s.io/kubernetes/pkg/kubelet/sysctl Index | Files

package sysctl

import "k8s.io/kubernetes/pkg/kubelet/sysctl"

Index

Constants

const (
	AnnotationInvalidReason = "InvalidSysctlAnnotation"
	ForbiddenReason         = "SysctlForbidden"
)

Functions

func NewAllowlist

func NewAllowlist(patterns []string) (*patternAllowlist, error)

NewAllowlist creates a new Allowlist from a list of sysctls and sysctl pattern (ending in *).

Types

type Namespace

type Namespace string

Namespace represents a kernel namespace name.

func NamespacedBy

func NamespacedBy(val string) Namespace

NamespacedBy returns the namespace of the Linux kernel for a sysctl, or unknownNamespace if the sysctl is not known to be namespaced.

Source Files

allowlist.go namespace.go

Version
v1.23.0-alpha.4
Published
Nov 2, 2021
Platform
js/wasm
Imports
5 packages
Last checked
2 minutes ago

Tools for package owners.