github.com/kubeflow/training-operator@v1.7.0/pkg/apis/kubeflow.org/v1/zz_generated.defaults.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 // Copyright 2023 The Kubeflow Authors 5 // 6 // Licensed under the Apache License, Version 2.0 (the "License"); 7 // you may not use this file except in compliance with the License. 8 // You may obtain a copy of the License at 9 // 10 // http://www.apache.org/licenses/LICENSE-2.0 11 // 12 // Unless required by applicable law or agreed to in writing, software 13 // distributed under the License is distributed on an "AS IS" BASIS, 14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 // See the License for the specific language governing permissions and 16 // limitations under the License. 17 18 // Code generated by defaulter-gen. DO NOT EDIT. 19 20 package v1 21 22 import ( 23 runtime "k8s.io/apimachinery/pkg/runtime" 24 ) 25 26 // RegisterDefaults adds defaulters functions to the given scheme. 27 // Public to allow building arbitrary schemes. 28 // All generated defaulters are covering - they call all nested defaulters. 29 func RegisterDefaults(scheme *runtime.Scheme) error { 30 scheme.AddTypeDefaultingFunc(&MPIJob{}, func(obj interface{}) { SetObjectDefaults_MPIJob(obj.(*MPIJob)) }) 31 scheme.AddTypeDefaultingFunc(&MPIJobList{}, func(obj interface{}) { SetObjectDefaults_MPIJobList(obj.(*MPIJobList)) }) 32 scheme.AddTypeDefaultingFunc(&MXJob{}, func(obj interface{}) { SetObjectDefaults_MXJob(obj.(*MXJob)) }) 33 scheme.AddTypeDefaultingFunc(&MXJobList{}, func(obj interface{}) { SetObjectDefaults_MXJobList(obj.(*MXJobList)) }) 34 scheme.AddTypeDefaultingFunc(&PaddleJob{}, func(obj interface{}) { SetObjectDefaults_PaddleJob(obj.(*PaddleJob)) }) 35 scheme.AddTypeDefaultingFunc(&PaddleJobList{}, func(obj interface{}) { SetObjectDefaults_PaddleJobList(obj.(*PaddleJobList)) }) 36 scheme.AddTypeDefaultingFunc(&PyTorchJob{}, func(obj interface{}) { SetObjectDefaults_PyTorchJob(obj.(*PyTorchJob)) }) 37 scheme.AddTypeDefaultingFunc(&PyTorchJobList{}, func(obj interface{}) { SetObjectDefaults_PyTorchJobList(obj.(*PyTorchJobList)) }) 38 scheme.AddTypeDefaultingFunc(&TFJob{}, func(obj interface{}) { SetObjectDefaults_TFJob(obj.(*TFJob)) }) 39 scheme.AddTypeDefaultingFunc(&TFJobList{}, func(obj interface{}) { SetObjectDefaults_TFJobList(obj.(*TFJobList)) }) 40 scheme.AddTypeDefaultingFunc(&XGBoostJob{}, func(obj interface{}) { SetObjectDefaults_XGBoostJob(obj.(*XGBoostJob)) }) 41 scheme.AddTypeDefaultingFunc(&XGBoostJobList{}, func(obj interface{}) { SetObjectDefaults_XGBoostJobList(obj.(*XGBoostJobList)) }) 42 return nil 43 } 44 45 func SetObjectDefaults_MPIJob(in *MPIJob) { 46 SetDefaults_MPIJob(in) 47 } 48 49 func SetObjectDefaults_MPIJobList(in *MPIJobList) { 50 for i := range in.Items { 51 a := &in.Items[i] 52 SetObjectDefaults_MPIJob(a) 53 } 54 } 55 56 func SetObjectDefaults_MXJob(in *MXJob) { 57 SetDefaults_MXJob(in) 58 } 59 60 func SetObjectDefaults_MXJobList(in *MXJobList) { 61 for i := range in.Items { 62 a := &in.Items[i] 63 SetObjectDefaults_MXJob(a) 64 } 65 } 66 67 func SetObjectDefaults_PaddleJob(in *PaddleJob) { 68 SetDefaults_PaddleJob(in) 69 } 70 71 func SetObjectDefaults_PaddleJobList(in *PaddleJobList) { 72 for i := range in.Items { 73 a := &in.Items[i] 74 SetObjectDefaults_PaddleJob(a) 75 } 76 } 77 78 func SetObjectDefaults_PyTorchJob(in *PyTorchJob) { 79 SetDefaults_PyTorchJob(in) 80 } 81 82 func SetObjectDefaults_PyTorchJobList(in *PyTorchJobList) { 83 for i := range in.Items { 84 a := &in.Items[i] 85 SetObjectDefaults_PyTorchJob(a) 86 } 87 } 88 89 func SetObjectDefaults_TFJob(in *TFJob) { 90 SetDefaults_TFJob(in) 91 } 92 93 func SetObjectDefaults_TFJobList(in *TFJobList) { 94 for i := range in.Items { 95 a := &in.Items[i] 96 SetObjectDefaults_TFJob(a) 97 } 98 } 99 100 func SetObjectDefaults_XGBoostJob(in *XGBoostJob) { 101 SetDefaults_XGBoostJob(in) 102 } 103 104 func SetObjectDefaults_XGBoostJobList(in *XGBoostJobList) { 105 for i := range in.Items { 106 a := &in.Items[i] 107 SetObjectDefaults_XGBoostJob(a) 108 } 109 }