kubernetes: k8s.io/kubernetes/pkg/kubelet/sysctl Index | Files

package sysctl

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

Index

Package Files

namespace.go runtime.go whitelist.go

Constants

const (
    // the Linux IPC namespace
    IpcNamespace = Namespace("ipc")

    // the network namespace
    NetNamespace = Namespace("net")

    // the zero value if no namespace is known
    UnknownNamespace = Namespace("")
)
const (
    AnnotationInvalidReason = "InvalidSysctlAnnotation"
    ForbiddenReason         = "SysctlForbidden"
)
const (
    UnsupportedReason = "SysctlUnsupported"
)

func NewRuntimeAdmitHandler Uses

func NewRuntimeAdmitHandler(runtime container.Runtime) (*runtimeAdmitHandler, error)

NewRuntimeAdmitHandler returns a sysctlRuntimeAdmitHandler which checks whether the given runtime support sysctls.

func NewWhitelist Uses

func NewWhitelist(patterns []string) (*patternWhitelist, error)

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

type Namespace Uses

type Namespace string

Namespace represents a kernel namespace name.

func NamespacedBy Uses

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.

Package sysctl imports 6 packages (graph) and is imported by 172 packages. Updated 2018-06-14. Refresh now. Tools for package owners.