api

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Overview

Package api contains PodSecurity admission configuration file types

Index

Constants

View Source
const GroupName = "pod-security.admission.config.k8s.io"

GroupName is the group name use in this package

Variables

View Source
var (
	// SchemeBuilder is a pointer used to call AddToScheme
	SchemeBuilder runtime.SchemeBuilder

	// AddToScheme is used to register the types to API encoding/decoding machinery
	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

Functions

func ToPolicy

func ToPolicy(defaults PodSecurityDefaults) (policyapi.Policy, error)

TODO: deduplicate against PolicyToEvaluate

Types

type PodSecurityConfiguration

type PodSecurityConfiguration struct {
	metav1.TypeMeta
	Defaults   PodSecurityDefaults
	Exemptions PodSecurityExemptions
}

func (*PodSecurityConfiguration) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurityConfiguration.

func (*PodSecurityConfiguration) DeepCopyInto

func (in *PodSecurityConfiguration) DeepCopyInto(out *PodSecurityConfiguration)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PodSecurityConfiguration) DeepCopyObject

func (in *PodSecurityConfiguration) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PodSecurityDefaults

type PodSecurityDefaults struct {
	Enforce        string
	EnforceVersion string
	Audit          string
	AuditVersion   string
	Warn           string
	WarnVersion    string
}

func (*PodSecurityDefaults) DeepCopy

func (in *PodSecurityDefaults) DeepCopy() *PodSecurityDefaults

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurityDefaults.

func (*PodSecurityDefaults) DeepCopyInto

func (in *PodSecurityDefaults) DeepCopyInto(out *PodSecurityDefaults)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PodSecurityExemptions

type PodSecurityExemptions struct {
	Usernames      []string
	Namespaces     []string
	RuntimeClasses []string
}

func (*PodSecurityExemptions) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurityExemptions.

func (*PodSecurityExemptions) DeepCopyInto

func (in *PodSecurityExemptions) DeepCopyInto(out *PodSecurityExemptions)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Directories

Path Synopsis
Package v1 contains PodSecurity admission configuration file types
Package v1 contains PodSecurity admission configuration file types
Package v1alpha1 contains PodSecurity admission configuration file types
Package v1alpha1 contains PodSecurity admission configuration file types
Package v1beta1 contains PodSecurity admission configuration file types
Package v1beta1 contains PodSecurity admission configuration file types

Jump to

Keyboard shortcuts

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