@@ -89,6 +89,7 @@ func setDefaults_Volume(obj *v1.Volume) {
8989 }
9090 }
9191}
92+
9293func setDefaults_Container (obj * v1.Container ) {
9394 if obj .ImagePullPolicy == "" {
9495 // Ignore error and assume it has been validated elsewhere
@@ -135,6 +136,7 @@ func setDefaults_PodSpec(obj *v1.PodSpec) {
135136 obj .SchedulerName = v1 .DefaultSchedulerName
136137 }
137138}
139+
138140func setDefaults_Probe (obj * v1.Probe ) {
139141 if obj .TimeoutSeconds == 0 {
140142 obj .TimeoutSeconds = 1
@@ -149,52 +151,55 @@ func setDefaults_Probe(obj *v1.Probe) {
149151 obj .FailureThreshold = 3
150152 }
151153}
154+
152155func setDefaults_SecretVolumeSource (obj * v1.SecretVolumeSource ) {
153156 if obj .DefaultMode == nil {
154157 perm := int32 (v1 .SecretVolumeSourceDefaultMode )
155158 obj .DefaultMode = & perm
156159 }
157160}
161+
158162func setDefaults_ConfigMapVolumeSource (obj * v1.ConfigMapVolumeSource ) {
159163 if obj .DefaultMode == nil {
160164 perm := int32 (v1 .ConfigMapVolumeSourceDefaultMode )
161165 obj .DefaultMode = & perm
162166 }
163167}
168+
164169func setDefaults_DownwardAPIVolumeSource (obj * v1.DownwardAPIVolumeSource ) {
165170 if obj .DefaultMode == nil {
166171 perm := int32 (v1 .DownwardAPIVolumeSourceDefaultMode )
167172 obj .DefaultMode = & perm
168173 }
169174}
175+
170176func setDefaults_ProjectedVolumeSource (obj * v1.ProjectedVolumeSource ) {
171177 if obj .DefaultMode == nil {
172178 perm := int32 (v1 .ProjectedVolumeSourceDefaultMode )
173179 obj .DefaultMode = & perm
174180 }
175181}
182+
176183func setDefaults_ServiceAccountTokenProjection (obj * v1.ServiceAccountTokenProjection ) {
177184 hour := int64 (time .Hour .Seconds ())
178185 if obj .ExpirationSeconds == nil {
179186 obj .ExpirationSeconds = & hour
180187 }
181188}
182- func setDefaults_PersistentVolumeClaim (obj * v1.PersistentVolumeClaim ) {
183- if obj .Status .Phase == "" {
184- obj .Status .Phase = v1 .ClaimPending
185- }
186- }
189+
187190func setDefaults_PersistentVolumeClaimSpec (obj * v1.PersistentVolumeClaimSpec ) {
188191 if obj .VolumeMode == nil {
189192 obj .VolumeMode = new (v1.PersistentVolumeMode )
190193 * obj .VolumeMode = v1 .PersistentVolumeFilesystem
191194 }
192195}
196+
193197func setDefaults_ISCSIVolumeSource (obj * v1.ISCSIVolumeSource ) {
194198 if obj .ISCSIInterface == "" {
195199 obj .ISCSIInterface = "default"
196200 }
197201}
202+
198203func setDefaults_AzureDiskVolumeSource (obj * v1.AzureDiskVolumeSource ) {
199204 if obj .CachingMode == nil {
200205 obj .CachingMode = new (v1.AzureDataDiskCachingMode )
@@ -213,6 +218,7 @@ func setDefaults_AzureDiskVolumeSource(obj *v1.AzureDiskVolumeSource) {
213218 * obj .ReadOnly = false
214219 }
215220}
221+
216222func setDefaults_HTTPGetAction (obj * v1.HTTPGetAction ) {
217223 if obj .Path == "" {
218224 obj .Path = "/"
0 commit comments