Merge pull request #15899 from bprashanth/ing_docs
Auto commit by PR queue bot
This commit is contained in:
commit
51a67d8869
|
@ -111,6 +111,11 @@ func validateObject(obj runtime.Object) (errors []error) {
|
|||
t.Namespace = api.NamespaceDefault
|
||||
}
|
||||
errors = expvalidation.ValidateJob(t)
|
||||
case *extensions.Ingress:
|
||||
if t.Namespace == "" {
|
||||
t.Namespace = api.NamespaceDefault
|
||||
}
|
||||
errors = expvalidation.ValidateIngress(t)
|
||||
case *extensions.DaemonSet:
|
||||
if t.Namespace == "" {
|
||||
t.Namespace = api.NamespaceDefault
|
||||
|
@ -222,6 +227,7 @@ func TestExampleObjectSchemas(t *testing.T) {
|
|||
"pod": &api.Pod{},
|
||||
"replication": &api.ReplicationController{},
|
||||
"job": &extensions.Job{},
|
||||
"ingress": &extensions.Ingress{},
|
||||
},
|
||||
"../docs/admin": {
|
||||
"daemon": &extensions.DaemonSet{},
|
||||
|
|
Loading…
Reference in New Issue