Matteo Scandolo | a428586 | 2020-12-01 18:10:10 -0800 | [diff] [blame] | 1 | // +build !ignore_autogenerated |
| 2 | |
| 3 | /* |
| 4 | Copyright The Kubernetes 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 | |
| 19 | // Code generated by conversion-gen. DO NOT EDIT. |
| 20 | |
| 21 | package v1 |
| 22 | |
| 23 | import ( |
| 24 | url "net/url" |
| 25 | unsafe "unsafe" |
| 26 | |
| 27 | resource "k8s.io/apimachinery/pkg/api/resource" |
| 28 | conversion "k8s.io/apimachinery/pkg/conversion" |
| 29 | fields "k8s.io/apimachinery/pkg/fields" |
| 30 | labels "k8s.io/apimachinery/pkg/labels" |
| 31 | runtime "k8s.io/apimachinery/pkg/runtime" |
| 32 | intstr "k8s.io/apimachinery/pkg/util/intstr" |
| 33 | watch "k8s.io/apimachinery/pkg/watch" |
| 34 | ) |
| 35 | |
| 36 | func init() { |
| 37 | localSchemeBuilder.Register(RegisterConversions) |
| 38 | } |
| 39 | |
| 40 | // RegisterConversions adds conversion functions to the given scheme. |
| 41 | // Public to allow building arbitrary schemes. |
| 42 | func RegisterConversions(s *runtime.Scheme) error { |
| 43 | if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*CreateOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 44 | return Convert_url_Values_To_v1_CreateOptions(a.(*url.Values), b.(*CreateOptions), scope) |
| 45 | }); err != nil { |
| 46 | return err |
| 47 | } |
| 48 | if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*DeleteOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 49 | return Convert_url_Values_To_v1_DeleteOptions(a.(*url.Values), b.(*DeleteOptions), scope) |
| 50 | }); err != nil { |
| 51 | return err |
| 52 | } |
| 53 | if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*ExportOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 54 | return Convert_url_Values_To_v1_ExportOptions(a.(*url.Values), b.(*ExportOptions), scope) |
| 55 | }); err != nil { |
| 56 | return err |
| 57 | } |
| 58 | if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*GetOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 59 | return Convert_url_Values_To_v1_GetOptions(a.(*url.Values), b.(*GetOptions), scope) |
| 60 | }); err != nil { |
| 61 | return err |
| 62 | } |
| 63 | if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*ListOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 64 | return Convert_url_Values_To_v1_ListOptions(a.(*url.Values), b.(*ListOptions), scope) |
| 65 | }); err != nil { |
| 66 | return err |
| 67 | } |
| 68 | if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*PatchOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 69 | return Convert_url_Values_To_v1_PatchOptions(a.(*url.Values), b.(*PatchOptions), scope) |
| 70 | }); err != nil { |
| 71 | return err |
| 72 | } |
| 73 | if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*TableOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 74 | return Convert_url_Values_To_v1_TableOptions(a.(*url.Values), b.(*TableOptions), scope) |
| 75 | }); err != nil { |
| 76 | return err |
| 77 | } |
| 78 | if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*UpdateOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 79 | return Convert_url_Values_To_v1_UpdateOptions(a.(*url.Values), b.(*UpdateOptions), scope) |
| 80 | }); err != nil { |
| 81 | return err |
| 82 | } |
| 83 | if err := s.AddConversionFunc((*map[string]string)(nil), (*LabelSelector)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 84 | return Convert_Map_string_To_string_To_v1_LabelSelector(a.(*map[string]string), b.(*LabelSelector), scope) |
| 85 | }); err != nil { |
| 86 | return err |
| 87 | } |
| 88 | if err := s.AddConversionFunc((**bool)(nil), (*bool)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 89 | return Convert_Pointer_bool_To_bool(a.(**bool), b.(*bool), scope) |
| 90 | }); err != nil { |
| 91 | return err |
| 92 | } |
| 93 | if err := s.AddConversionFunc((**float64)(nil), (*float64)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 94 | return Convert_Pointer_float64_To_float64(a.(**float64), b.(*float64), scope) |
| 95 | }); err != nil { |
| 96 | return err |
| 97 | } |
| 98 | if err := s.AddConversionFunc((**int32)(nil), (*int32)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 99 | return Convert_Pointer_int32_To_int32(a.(**int32), b.(*int32), scope) |
| 100 | }); err != nil { |
| 101 | return err |
| 102 | } |
| 103 | if err := s.AddConversionFunc((**int64)(nil), (*int)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 104 | return Convert_Pointer_int64_To_int(a.(**int64), b.(*int), scope) |
| 105 | }); err != nil { |
| 106 | return err |
| 107 | } |
| 108 | if err := s.AddConversionFunc((**int64)(nil), (*int64)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 109 | return Convert_Pointer_int64_To_int64(a.(**int64), b.(*int64), scope) |
| 110 | }); err != nil { |
| 111 | return err |
| 112 | } |
| 113 | if err := s.AddConversionFunc((**intstr.IntOrString)(nil), (*intstr.IntOrString)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 114 | return Convert_Pointer_intstr_IntOrString_To_intstr_IntOrString(a.(**intstr.IntOrString), b.(*intstr.IntOrString), scope) |
| 115 | }); err != nil { |
| 116 | return err |
| 117 | } |
| 118 | if err := s.AddConversionFunc((**string)(nil), (*string)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 119 | return Convert_Pointer_string_To_string(a.(**string), b.(*string), scope) |
| 120 | }); err != nil { |
| 121 | return err |
| 122 | } |
| 123 | if err := s.AddConversionFunc((**Duration)(nil), (*Duration)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 124 | return Convert_Pointer_v1_Duration_To_v1_Duration(a.(**Duration), b.(*Duration), scope) |
| 125 | }); err != nil { |
| 126 | return err |
| 127 | } |
| 128 | if err := s.AddConversionFunc((*[]string)(nil), (**DeletionPropagation)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 129 | return Convert_Slice_string_To_Pointer_v1_DeletionPropagation(a.(*[]string), b.(**DeletionPropagation), scope) |
| 130 | }); err != nil { |
| 131 | return err |
| 132 | } |
| 133 | if err := s.AddConversionFunc((*[]string)(nil), (**Time)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 134 | return Convert_Slice_string_To_Pointer_v1_Time(a.(*[]string), b.(**Time), scope) |
| 135 | }); err != nil { |
| 136 | return err |
| 137 | } |
| 138 | if err := s.AddConversionFunc((*[]string)(nil), (*[]int32)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 139 | return Convert_Slice_string_To_Slice_int32(a.(*[]string), b.(*[]int32), scope) |
| 140 | }); err != nil { |
| 141 | return err |
| 142 | } |
| 143 | if err := s.AddConversionFunc((*[]string)(nil), (*IncludeObjectPolicy)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 144 | return Convert_Slice_string_To_v1_IncludeObjectPolicy(a.(*[]string), b.(*IncludeObjectPolicy), scope) |
| 145 | }); err != nil { |
| 146 | return err |
| 147 | } |
| 148 | if err := s.AddConversionFunc((*[]string)(nil), (*ResourceVersionMatch)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 149 | return Convert_Slice_string_To_v1_ResourceVersionMatch(a.(*[]string), b.(*ResourceVersionMatch), scope) |
| 150 | }); err != nil { |
| 151 | return err |
| 152 | } |
| 153 | if err := s.AddConversionFunc((*[]string)(nil), (*Time)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 154 | return Convert_Slice_string_To_v1_Time(a.(*[]string), b.(*Time), scope) |
| 155 | }); err != nil { |
| 156 | return err |
| 157 | } |
| 158 | if err := s.AddConversionFunc((*bool)(nil), (**bool)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 159 | return Convert_bool_To_Pointer_bool(a.(*bool), b.(**bool), scope) |
| 160 | }); err != nil { |
| 161 | return err |
| 162 | } |
| 163 | if err := s.AddConversionFunc((*fields.Selector)(nil), (*string)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 164 | return Convert_fields_Selector_To_string(a.(*fields.Selector), b.(*string), scope) |
| 165 | }); err != nil { |
| 166 | return err |
| 167 | } |
| 168 | if err := s.AddConversionFunc((*float64)(nil), (**float64)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 169 | return Convert_float64_To_Pointer_float64(a.(*float64), b.(**float64), scope) |
| 170 | }); err != nil { |
| 171 | return err |
| 172 | } |
| 173 | if err := s.AddConversionFunc((*int32)(nil), (**int32)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 174 | return Convert_int32_To_Pointer_int32(a.(*int32), b.(**int32), scope) |
| 175 | }); err != nil { |
| 176 | return err |
| 177 | } |
| 178 | if err := s.AddConversionFunc((*int64)(nil), (**int64)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 179 | return Convert_int64_To_Pointer_int64(a.(*int64), b.(**int64), scope) |
| 180 | }); err != nil { |
| 181 | return err |
| 182 | } |
| 183 | if err := s.AddConversionFunc((*int)(nil), (**int64)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 184 | return Convert_int_To_Pointer_int64(a.(*int), b.(**int64), scope) |
| 185 | }); err != nil { |
| 186 | return err |
| 187 | } |
| 188 | if err := s.AddConversionFunc((*intstr.IntOrString)(nil), (**intstr.IntOrString)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 189 | return Convert_intstr_IntOrString_To_Pointer_intstr_IntOrString(a.(*intstr.IntOrString), b.(**intstr.IntOrString), scope) |
| 190 | }); err != nil { |
| 191 | return err |
| 192 | } |
| 193 | if err := s.AddConversionFunc((*intstr.IntOrString)(nil), (*intstr.IntOrString)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 194 | return Convert_intstr_IntOrString_To_intstr_IntOrString(a.(*intstr.IntOrString), b.(*intstr.IntOrString), scope) |
| 195 | }); err != nil { |
| 196 | return err |
| 197 | } |
| 198 | if err := s.AddConversionFunc((*labels.Selector)(nil), (*string)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 199 | return Convert_labels_Selector_To_string(a.(*labels.Selector), b.(*string), scope) |
| 200 | }); err != nil { |
| 201 | return err |
| 202 | } |
| 203 | if err := s.AddConversionFunc((*resource.Quantity)(nil), (*resource.Quantity)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 204 | return Convert_resource_Quantity_To_resource_Quantity(a.(*resource.Quantity), b.(*resource.Quantity), scope) |
| 205 | }); err != nil { |
| 206 | return err |
| 207 | } |
| 208 | if err := s.AddConversionFunc((*string)(nil), (**string)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 209 | return Convert_string_To_Pointer_string(a.(*string), b.(**string), scope) |
| 210 | }); err != nil { |
| 211 | return err |
| 212 | } |
| 213 | if err := s.AddConversionFunc((*string)(nil), (*fields.Selector)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 214 | return Convert_string_To_fields_Selector(a.(*string), b.(*fields.Selector), scope) |
| 215 | }); err != nil { |
| 216 | return err |
| 217 | } |
| 218 | if err := s.AddConversionFunc((*string)(nil), (*labels.Selector)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 219 | return Convert_string_To_labels_Selector(a.(*string), b.(*labels.Selector), scope) |
| 220 | }); err != nil { |
| 221 | return err |
| 222 | } |
| 223 | if err := s.AddConversionFunc((*url.Values)(nil), (*DeleteOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 224 | return Convert_url_Values_To_v1_DeleteOptions(a.(*url.Values), b.(*DeleteOptions), scope) |
| 225 | }); err != nil { |
| 226 | return err |
| 227 | } |
| 228 | if err := s.AddConversionFunc((*DeleteOptions)(nil), (*DeleteOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 229 | return Convert_v1_DeleteOptions_To_v1_DeleteOptions(a.(*DeleteOptions), b.(*DeleteOptions), scope) |
| 230 | }); err != nil { |
| 231 | return err |
| 232 | } |
| 233 | if err := s.AddConversionFunc((*Duration)(nil), (**Duration)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 234 | return Convert_v1_Duration_To_Pointer_v1_Duration(a.(*Duration), b.(**Duration), scope) |
| 235 | }); err != nil { |
| 236 | return err |
| 237 | } |
| 238 | if err := s.AddConversionFunc((*InternalEvent)(nil), (*WatchEvent)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 239 | return Convert_v1_InternalEvent_To_v1_WatchEvent(a.(*InternalEvent), b.(*WatchEvent), scope) |
| 240 | }); err != nil { |
| 241 | return err |
| 242 | } |
| 243 | if err := s.AddConversionFunc((*LabelSelector)(nil), (*map[string]string)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 244 | return Convert_v1_LabelSelector_To_Map_string_To_string(a.(*LabelSelector), b.(*map[string]string), scope) |
| 245 | }); err != nil { |
| 246 | return err |
| 247 | } |
| 248 | if err := s.AddConversionFunc((*ListMeta)(nil), (*ListMeta)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 249 | return Convert_v1_ListMeta_To_v1_ListMeta(a.(*ListMeta), b.(*ListMeta), scope) |
| 250 | }); err != nil { |
| 251 | return err |
| 252 | } |
| 253 | if err := s.AddConversionFunc((*MicroTime)(nil), (*MicroTime)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 254 | return Convert_v1_MicroTime_To_v1_MicroTime(a.(*MicroTime), b.(*MicroTime), scope) |
| 255 | }); err != nil { |
| 256 | return err |
| 257 | } |
| 258 | if err := s.AddConversionFunc((*Time)(nil), (*Time)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 259 | return Convert_v1_Time_To_v1_Time(a.(*Time), b.(*Time), scope) |
| 260 | }); err != nil { |
| 261 | return err |
| 262 | } |
| 263 | if err := s.AddConversionFunc((*TypeMeta)(nil), (*TypeMeta)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 264 | return Convert_v1_TypeMeta_To_v1_TypeMeta(a.(*TypeMeta), b.(*TypeMeta), scope) |
| 265 | }); err != nil { |
| 266 | return err |
| 267 | } |
| 268 | if err := s.AddConversionFunc((*WatchEvent)(nil), (*InternalEvent)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 269 | return Convert_v1_WatchEvent_To_v1_InternalEvent(a.(*WatchEvent), b.(*InternalEvent), scope) |
| 270 | }); err != nil { |
| 271 | return err |
| 272 | } |
| 273 | if err := s.AddConversionFunc((*WatchEvent)(nil), (*watch.Event)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 274 | return Convert_v1_WatchEvent_To_watch_Event(a.(*WatchEvent), b.(*watch.Event), scope) |
| 275 | }); err != nil { |
| 276 | return err |
| 277 | } |
| 278 | if err := s.AddConversionFunc((*watch.Event)(nil), (*WatchEvent)(nil), func(a, b interface{}, scope conversion.Scope) error { |
| 279 | return Convert_watch_Event_To_v1_WatchEvent(a.(*watch.Event), b.(*WatchEvent), scope) |
| 280 | }); err != nil { |
| 281 | return err |
| 282 | } |
| 283 | return nil |
| 284 | } |
| 285 | |
| 286 | func autoConvert_url_Values_To_v1_CreateOptions(in *url.Values, out *CreateOptions, s conversion.Scope) error { |
| 287 | // WARNING: Field TypeMeta does not have json tag, skipping. |
| 288 | |
| 289 | if values, ok := map[string][]string(*in)["dryRun"]; ok && len(values) > 0 { |
| 290 | out.DryRun = *(*[]string)(unsafe.Pointer(&values)) |
| 291 | } else { |
| 292 | out.DryRun = nil |
| 293 | } |
| 294 | if values, ok := map[string][]string(*in)["fieldManager"]; ok && len(values) > 0 { |
| 295 | if err := runtime.Convert_Slice_string_To_string(&values, &out.FieldManager, s); err != nil { |
| 296 | return err |
| 297 | } |
| 298 | } else { |
| 299 | out.FieldManager = "" |
| 300 | } |
| 301 | return nil |
| 302 | } |
| 303 | |
| 304 | // Convert_url_Values_To_v1_CreateOptions is an autogenerated conversion function. |
| 305 | func Convert_url_Values_To_v1_CreateOptions(in *url.Values, out *CreateOptions, s conversion.Scope) error { |
| 306 | return autoConvert_url_Values_To_v1_CreateOptions(in, out, s) |
| 307 | } |
| 308 | |
| 309 | func autoConvert_url_Values_To_v1_DeleteOptions(in *url.Values, out *DeleteOptions, s conversion.Scope) error { |
| 310 | // WARNING: Field TypeMeta does not have json tag, skipping. |
| 311 | |
| 312 | if values, ok := map[string][]string(*in)["gracePeriodSeconds"]; ok && len(values) > 0 { |
| 313 | if err := runtime.Convert_Slice_string_To_Pointer_int64(&values, &out.GracePeriodSeconds, s); err != nil { |
| 314 | return err |
| 315 | } |
| 316 | } else { |
| 317 | out.GracePeriodSeconds = nil |
| 318 | } |
| 319 | // INFO: in.Preconditions opted out of conversion generation |
| 320 | if values, ok := map[string][]string(*in)["orphanDependents"]; ok && len(values) > 0 { |
| 321 | if err := runtime.Convert_Slice_string_To_Pointer_bool(&values, &out.OrphanDependents, s); err != nil { |
| 322 | return err |
| 323 | } |
| 324 | } else { |
| 325 | out.OrphanDependents = nil |
| 326 | } |
| 327 | if values, ok := map[string][]string(*in)["propagationPolicy"]; ok && len(values) > 0 { |
| 328 | if err := Convert_Slice_string_To_Pointer_v1_DeletionPropagation(&values, &out.PropagationPolicy, s); err != nil { |
| 329 | return err |
| 330 | } |
| 331 | } else { |
| 332 | out.PropagationPolicy = nil |
| 333 | } |
| 334 | if values, ok := map[string][]string(*in)["dryRun"]; ok && len(values) > 0 { |
| 335 | out.DryRun = *(*[]string)(unsafe.Pointer(&values)) |
| 336 | } else { |
| 337 | out.DryRun = nil |
| 338 | } |
| 339 | return nil |
| 340 | } |
| 341 | |
| 342 | func autoConvert_url_Values_To_v1_ExportOptions(in *url.Values, out *ExportOptions, s conversion.Scope) error { |
| 343 | // WARNING: Field TypeMeta does not have json tag, skipping. |
| 344 | |
| 345 | if values, ok := map[string][]string(*in)["export"]; ok && len(values) > 0 { |
| 346 | if err := runtime.Convert_Slice_string_To_bool(&values, &out.Export, s); err != nil { |
| 347 | return err |
| 348 | } |
| 349 | } else { |
| 350 | out.Export = false |
| 351 | } |
| 352 | if values, ok := map[string][]string(*in)["exact"]; ok && len(values) > 0 { |
| 353 | if err := runtime.Convert_Slice_string_To_bool(&values, &out.Exact, s); err != nil { |
| 354 | return err |
| 355 | } |
| 356 | } else { |
| 357 | out.Exact = false |
| 358 | } |
| 359 | return nil |
| 360 | } |
| 361 | |
| 362 | // Convert_url_Values_To_v1_ExportOptions is an autogenerated conversion function. |
| 363 | func Convert_url_Values_To_v1_ExportOptions(in *url.Values, out *ExportOptions, s conversion.Scope) error { |
| 364 | return autoConvert_url_Values_To_v1_ExportOptions(in, out, s) |
| 365 | } |
| 366 | |
| 367 | func autoConvert_url_Values_To_v1_GetOptions(in *url.Values, out *GetOptions, s conversion.Scope) error { |
| 368 | // WARNING: Field TypeMeta does not have json tag, skipping. |
| 369 | |
| 370 | if values, ok := map[string][]string(*in)["resourceVersion"]; ok && len(values) > 0 { |
| 371 | if err := runtime.Convert_Slice_string_To_string(&values, &out.ResourceVersion, s); err != nil { |
| 372 | return err |
| 373 | } |
| 374 | } else { |
| 375 | out.ResourceVersion = "" |
| 376 | } |
| 377 | return nil |
| 378 | } |
| 379 | |
| 380 | // Convert_url_Values_To_v1_GetOptions is an autogenerated conversion function. |
| 381 | func Convert_url_Values_To_v1_GetOptions(in *url.Values, out *GetOptions, s conversion.Scope) error { |
| 382 | return autoConvert_url_Values_To_v1_GetOptions(in, out, s) |
| 383 | } |
| 384 | |
| 385 | func autoConvert_url_Values_To_v1_ListOptions(in *url.Values, out *ListOptions, s conversion.Scope) error { |
| 386 | // WARNING: Field TypeMeta does not have json tag, skipping. |
| 387 | |
| 388 | if values, ok := map[string][]string(*in)["labelSelector"]; ok && len(values) > 0 { |
| 389 | if err := runtime.Convert_Slice_string_To_string(&values, &out.LabelSelector, s); err != nil { |
| 390 | return err |
| 391 | } |
| 392 | } else { |
| 393 | out.LabelSelector = "" |
| 394 | } |
| 395 | if values, ok := map[string][]string(*in)["fieldSelector"]; ok && len(values) > 0 { |
| 396 | if err := runtime.Convert_Slice_string_To_string(&values, &out.FieldSelector, s); err != nil { |
| 397 | return err |
| 398 | } |
| 399 | } else { |
| 400 | out.FieldSelector = "" |
| 401 | } |
| 402 | if values, ok := map[string][]string(*in)["watch"]; ok && len(values) > 0 { |
| 403 | if err := runtime.Convert_Slice_string_To_bool(&values, &out.Watch, s); err != nil { |
| 404 | return err |
| 405 | } |
| 406 | } else { |
| 407 | out.Watch = false |
| 408 | } |
| 409 | if values, ok := map[string][]string(*in)["allowWatchBookmarks"]; ok && len(values) > 0 { |
| 410 | if err := runtime.Convert_Slice_string_To_bool(&values, &out.AllowWatchBookmarks, s); err != nil { |
| 411 | return err |
| 412 | } |
| 413 | } else { |
| 414 | out.AllowWatchBookmarks = false |
| 415 | } |
| 416 | if values, ok := map[string][]string(*in)["resourceVersion"]; ok && len(values) > 0 { |
| 417 | if err := runtime.Convert_Slice_string_To_string(&values, &out.ResourceVersion, s); err != nil { |
| 418 | return err |
| 419 | } |
| 420 | } else { |
| 421 | out.ResourceVersion = "" |
| 422 | } |
| 423 | if values, ok := map[string][]string(*in)["resourceVersionMatch"]; ok && len(values) > 0 { |
| 424 | if err := Convert_Slice_string_To_v1_ResourceVersionMatch(&values, &out.ResourceVersionMatch, s); err != nil { |
| 425 | return err |
| 426 | } |
| 427 | } else { |
| 428 | out.ResourceVersionMatch = "" |
| 429 | } |
| 430 | if values, ok := map[string][]string(*in)["timeoutSeconds"]; ok && len(values) > 0 { |
| 431 | if err := runtime.Convert_Slice_string_To_Pointer_int64(&values, &out.TimeoutSeconds, s); err != nil { |
| 432 | return err |
| 433 | } |
| 434 | } else { |
| 435 | out.TimeoutSeconds = nil |
| 436 | } |
| 437 | if values, ok := map[string][]string(*in)["limit"]; ok && len(values) > 0 { |
| 438 | if err := runtime.Convert_Slice_string_To_int64(&values, &out.Limit, s); err != nil { |
| 439 | return err |
| 440 | } |
| 441 | } else { |
| 442 | out.Limit = 0 |
| 443 | } |
| 444 | if values, ok := map[string][]string(*in)["continue"]; ok && len(values) > 0 { |
| 445 | if err := runtime.Convert_Slice_string_To_string(&values, &out.Continue, s); err != nil { |
| 446 | return err |
| 447 | } |
| 448 | } else { |
| 449 | out.Continue = "" |
| 450 | } |
| 451 | return nil |
| 452 | } |
| 453 | |
| 454 | // Convert_url_Values_To_v1_ListOptions is an autogenerated conversion function. |
| 455 | func Convert_url_Values_To_v1_ListOptions(in *url.Values, out *ListOptions, s conversion.Scope) error { |
| 456 | return autoConvert_url_Values_To_v1_ListOptions(in, out, s) |
| 457 | } |
| 458 | |
| 459 | func autoConvert_url_Values_To_v1_PatchOptions(in *url.Values, out *PatchOptions, s conversion.Scope) error { |
| 460 | // WARNING: Field TypeMeta does not have json tag, skipping. |
| 461 | |
| 462 | if values, ok := map[string][]string(*in)["dryRun"]; ok && len(values) > 0 { |
| 463 | out.DryRun = *(*[]string)(unsafe.Pointer(&values)) |
| 464 | } else { |
| 465 | out.DryRun = nil |
| 466 | } |
| 467 | if values, ok := map[string][]string(*in)["force"]; ok && len(values) > 0 { |
| 468 | if err := runtime.Convert_Slice_string_To_Pointer_bool(&values, &out.Force, s); err != nil { |
| 469 | return err |
| 470 | } |
| 471 | } else { |
| 472 | out.Force = nil |
| 473 | } |
| 474 | if values, ok := map[string][]string(*in)["fieldManager"]; ok && len(values) > 0 { |
| 475 | if err := runtime.Convert_Slice_string_To_string(&values, &out.FieldManager, s); err != nil { |
| 476 | return err |
| 477 | } |
| 478 | } else { |
| 479 | out.FieldManager = "" |
| 480 | } |
| 481 | return nil |
| 482 | } |
| 483 | |
| 484 | // Convert_url_Values_To_v1_PatchOptions is an autogenerated conversion function. |
| 485 | func Convert_url_Values_To_v1_PatchOptions(in *url.Values, out *PatchOptions, s conversion.Scope) error { |
| 486 | return autoConvert_url_Values_To_v1_PatchOptions(in, out, s) |
| 487 | } |
| 488 | |
| 489 | func autoConvert_url_Values_To_v1_TableOptions(in *url.Values, out *TableOptions, s conversion.Scope) error { |
| 490 | // WARNING: Field TypeMeta does not have json tag, skipping. |
| 491 | |
| 492 | if values, ok := map[string][]string(*in)["-"]; ok && len(values) > 0 { |
| 493 | if err := runtime.Convert_Slice_string_To_bool(&values, &out.NoHeaders, s); err != nil { |
| 494 | return err |
| 495 | } |
| 496 | } else { |
| 497 | out.NoHeaders = false |
| 498 | } |
| 499 | if values, ok := map[string][]string(*in)["includeObject"]; ok && len(values) > 0 { |
| 500 | if err := Convert_Slice_string_To_v1_IncludeObjectPolicy(&values, &out.IncludeObject, s); err != nil { |
| 501 | return err |
| 502 | } |
| 503 | } else { |
| 504 | out.IncludeObject = "" |
| 505 | } |
| 506 | return nil |
| 507 | } |
| 508 | |
| 509 | // Convert_url_Values_To_v1_TableOptions is an autogenerated conversion function. |
| 510 | func Convert_url_Values_To_v1_TableOptions(in *url.Values, out *TableOptions, s conversion.Scope) error { |
| 511 | return autoConvert_url_Values_To_v1_TableOptions(in, out, s) |
| 512 | } |
| 513 | |
| 514 | func autoConvert_url_Values_To_v1_UpdateOptions(in *url.Values, out *UpdateOptions, s conversion.Scope) error { |
| 515 | // WARNING: Field TypeMeta does not have json tag, skipping. |
| 516 | |
| 517 | if values, ok := map[string][]string(*in)["dryRun"]; ok && len(values) > 0 { |
| 518 | out.DryRun = *(*[]string)(unsafe.Pointer(&values)) |
| 519 | } else { |
| 520 | out.DryRun = nil |
| 521 | } |
| 522 | if values, ok := map[string][]string(*in)["fieldManager"]; ok && len(values) > 0 { |
| 523 | if err := runtime.Convert_Slice_string_To_string(&values, &out.FieldManager, s); err != nil { |
| 524 | return err |
| 525 | } |
| 526 | } else { |
| 527 | out.FieldManager = "" |
| 528 | } |
| 529 | return nil |
| 530 | } |
| 531 | |
| 532 | // Convert_url_Values_To_v1_UpdateOptions is an autogenerated conversion function. |
| 533 | func Convert_url_Values_To_v1_UpdateOptions(in *url.Values, out *UpdateOptions, s conversion.Scope) error { |
| 534 | return autoConvert_url_Values_To_v1_UpdateOptions(in, out, s) |
| 535 | } |