Updates to review comments
This commit is contained in:
@@ -41,14 +41,14 @@ func validateObject(obj runtime.Object) (errors []error) {
|
||||
errors = append(errors, validateObject(&t.Items[i])...)
|
||||
}
|
||||
case *api.Service:
|
||||
api.ValidNamespaceOnCreateOrUpdate(ctx, &t.JSONBase)
|
||||
api.ValidNamespace(ctx, &t.JSONBase)
|
||||
errors = validation.ValidateService(t)
|
||||
case *api.ServiceList:
|
||||
for i := range t.Items {
|
||||
errors = append(errors, validateObject(&t.Items[i])...)
|
||||
}
|
||||
case *api.Pod:
|
||||
api.ValidNamespaceOnCreateOrUpdate(ctx, &t.JSONBase)
|
||||
api.ValidNamespace(ctx, &t.JSONBase)
|
||||
errors = validation.ValidateManifest(&t.DesiredState.Manifest)
|
||||
case *api.PodList:
|
||||
for i := range t.Items {
|
||||
|
Reference in New Issue
Block a user