1// +build !ignore_autogenerated
2
3/*
4Copyright The Kubernetes Authors.
5
6Licensed under the Apache License, Version 2.0 (the "License");
7you may not use this file except in compliance with the License.
8You may obtain a copy of the License at
9
10    http://www.apache.org/licenses/LICENSE-2.0
11
12Unless required by applicable law or agreed to in writing, software
13distributed under the License is distributed on an "AS IS" BASIS,
14WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15See the License for the specific language governing permissions and
16limitations under the License.
17*/
18
19// Code generated by defaulter-gen. DO NOT EDIT.
20
21package v1beta1
22
23import (
24	v1beta1 "k8s.io/api/policy/v1beta1"
25	runtime "k8s.io/apimachinery/pkg/runtime"
26)
27
28// RegisterDefaults adds defaulters functions to the given scheme.
29// Public to allow building arbitrary schemes.
30// All generated defaulters are covering - they call all nested defaulters.
31func RegisterDefaults(scheme *runtime.Scheme) error {
32	scheme.AddTypeDefaultingFunc(&v1beta1.PodSecurityPolicy{}, func(obj interface{}) { SetObjectDefaults_PodSecurityPolicy(obj.(*v1beta1.PodSecurityPolicy)) })
33	scheme.AddTypeDefaultingFunc(&v1beta1.PodSecurityPolicyList{}, func(obj interface{}) { SetObjectDefaults_PodSecurityPolicyList(obj.(*v1beta1.PodSecurityPolicyList)) })
34	return nil
35}
36
37func SetObjectDefaults_PodSecurityPolicy(in *v1beta1.PodSecurityPolicy) {
38	SetDefaults_PodSecurityPolicySpec(&in.Spec)
39}
40
41func SetObjectDefaults_PodSecurityPolicyList(in *v1beta1.PodSecurityPolicyList) {
42	for i := range in.Items {
43		a := &in.Items[i]
44		SetObjectDefaults_PodSecurityPolicy(a)
45	}
46}
47