package sysctl

import "k8s.io/kubernetes/pkg/security/podsecuritypolicy/sysctl"

Index

Types

type SysctlsStrategy

type SysctlsStrategy interface {
	// Validate ensures that the specified values fall within the range of the strategy.
	Validate(pod *api.Pod) field.ErrorList
}

SysctlsStrategy defines the interface for all sysctl strategies.

func NewMustMatchPatterns

func NewMustMatchPatterns(patterns []string) (SysctlsStrategy, error)

NewMustMatchPatterns creates a new mustMatchPattern strategy that will provide validation. Passing nil means the default pattern, passing an empty list means to disallow all sysctls.

Source Files

mustmatchpatterns.go types.go

Version
v1.4.0-beta.5
Published
Sep 15, 2016
Platform
js/wasm
Imports
4 packages
Last checked
7 minutes ago

Tools for package owners.