Rename JSONBase -> TypeMeta in preparation for v1beta3
Will make subsequent refactor much easier
This commit is contained in:
parent
cb1d0ff965
commit
7a472bc380
|
|
@ -41,14 +41,14 @@ func validateObject(obj runtime.Object) (errors []error) {
|
|||
errors = append(errors, validateObject(&t.Items[i])...)
|
||||
}
|
||||
case *api.Service:
|
||||
api.ValidNamespace(ctx, &t.JSONBase)
|
||||
api.ValidNamespace(ctx, &t.TypeMeta)
|
||||
errors = validation.ValidateService(t)
|
||||
case *api.ServiceList:
|
||||
for i := range t.Items {
|
||||
errors = append(errors, validateObject(&t.Items[i])...)
|
||||
}
|
||||
case *api.Pod:
|
||||
api.ValidNamespace(ctx, &t.JSONBase)
|
||||
api.ValidNamespace(ctx, &t.TypeMeta)
|
||||
errors = validation.ValidateManifest(&t.DesiredState.Manifest)
|
||||
case *api.PodList:
|
||||
for i := range t.Items {
|
||||
|
|
|
|||
Loading…
Reference in New Issue