Ingress docs
This commit is contained in:
parent
f8c5a634ea
commit
d040565c3f
|
|
@ -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) {
|
||||||
"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{},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue