Commit 19c0a5b3 authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #15899 from bprashanth/ing_docs

Auto commit by PR queue bot
parents 42706903 8c758102
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: test-ingress
spec:
backend:
serviceName: testsvc
servicePort: 80
...@@ -111,6 +111,11 @@ func validateObject(obj runtime.Object) (errors []error) { ...@@ -111,6 +111,11 @@ func validateObject(obj runtime.Object) (errors []error) {
t.Namespace = api.NamespaceDefault t.Namespace = api.NamespaceDefault
} }
errors = expvalidation.ValidateJob(t) errors = expvalidation.ValidateJob(t)
case *extensions.Ingress:
if t.Namespace == "" {
t.Namespace = api.NamespaceDefault
}
errors = expvalidation.ValidateIngress(t)
case *extensions.DaemonSet: case *extensions.DaemonSet:
if t.Namespace == "" { if t.Namespace == "" {
t.Namespace = api.NamespaceDefault t.Namespace = api.NamespaceDefault
...@@ -222,6 +227,7 @@ func TestExampleObjectSchemas(t *testing.T) { ...@@ -222,6 +227,7 @@ func TestExampleObjectSchemas(t *testing.T) {
"pod": &api.Pod{}, "pod": &api.Pod{},
"replication": &api.ReplicationController{}, "replication": &api.ReplicationController{},
"job": &extensions.Job{}, "job": &extensions.Job{},
"ingress": &extensions.Ingress{},
}, },
"../docs/admin": { "../docs/admin": {
"daemon": &extensions.DaemonSet{}, "daemon": &extensions.DaemonSet{},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment