v1

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 7

Documentation

Overview

Package v1 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: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Convert_api_PodSecurityConfiguration_To_v1_PodSecurityConfiguration

func Convert_api_PodSecurityConfiguration_To_v1_PodSecurityConfiguration(in *api.PodSecurityConfiguration, out *PodSecurityConfiguration, s conversion.Scope) error

Convert_api_PodSecurityConfiguration_To_v1_PodSecurityConfiguration is an autogenerated conversion function.

func Convert_api_PodSecurityDefaults_To_v1_PodSecurityDefaults

func Convert_api_PodSecurityDefaults_To_v1_PodSecurityDefaults(in *api.PodSecurityDefaults, out *PodSecurityDefaults, s conversion.Scope) error

Convert_api_PodSecurityDefaults_To_v1_PodSecurityDefaults is an autogenerated conversion function.

func Convert_api_PodSecurityExemptions_To_v1_PodSecurityExemptions

func Convert_api_PodSecurityExemptions_To_v1_PodSecurityExemptions(in *api.PodSecurityExemptions, out *PodSecurityExemptions, s conversion.Scope) error

Convert_api_PodSecurityExemptions_To_v1_PodSecurityExemptions is an autogenerated conversion function.

func Convert_v1_PodSecurityConfiguration_To_api_PodSecurityConfiguration

func Convert_v1_PodSecurityConfiguration_To_api_PodSecurityConfiguration(in *PodSecurityConfiguration, out *api.PodSecurityConfiguration, s conversion.Scope) error

Convert_v1_PodSecurityConfiguration_To_api_PodSecurityConfiguration is an autogenerated conversion function.

func Convert_v1_PodSecurityDefaults_To_api_PodSecurityDefaults

func Convert_v1_PodSecurityDefaults_To_api_PodSecurityDefaults(in *PodSecurityDefaults, out *api.PodSecurityDefaults, s conversion.Scope) error

Convert_v1_PodSecurityDefaults_To_api_PodSecurityDefaults is an autogenerated conversion function.

func Convert_v1_PodSecurityExemptions_To_api_PodSecurityExemptions

func Convert_v1_PodSecurityExemptions_To_api_PodSecurityExemptions(in *PodSecurityExemptions, out *api.PodSecurityExemptions, s conversion.Scope) error

Convert_v1_PodSecurityExemptions_To_api_PodSecurityExemptions is an autogenerated conversion function.

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func SetDefaults_PodSecurityDefaults

func SetDefaults_PodSecurityDefaults(obj *PodSecurityDefaults)

func SetObjectDefaults_PodSecurityConfiguration

func SetObjectDefaults_PodSecurityConfiguration(in *PodSecurityConfiguration)

Types

type PodSecurityConfiguration

type PodSecurityConfiguration struct {
	metav1.TypeMeta
	Defaults   PodSecurityDefaults   `json:"defaults"`
	Exemptions PodSecurityExemptions `json:"exemptions"`
}

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 `json:"enforce,omitempty"`
	EnforceVersion string `json:"enforce-version,omitempty"`
	Audit          string `json:"audit,omitempty"`
	AuditVersion   string `json:"audit-version,omitempty"`
	Warn           string `json:"warn,omitempty"`
	WarnVersion    string `json:"warn-version,omitempty"`
}

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 `json:"usernames,omitempty"`
	Namespaces     []string `json:"namespaces,omitempty"`
	RuntimeClasses []string `json:"runtimeClasses,omitempty"`
}

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.

Jump to

Keyboard shortcuts

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