fix Type transform panic

This commit is contained in:
hzxuzhonghu 2017-08-28 14:49:13 +08:00
parent 69c89ccfdd
commit af6a7f6d17
3 changed files with 30 additions and 4 deletions

View file

@ -38,4 +38,4 @@ func NewParser() parser.IngressAnnotation {
// used to add an alias to the provided hosts
func (a alias) Parse(ing *extensions.Ingress) (interface{}, error) {
return parser.GetStringAnnotation(annotation, ing)
}
}

View file

@ -38,4 +38,4 @@ func NewParser() parser.IngressAnnotation {
// used to add an client-body-buffer-size to the provided locations
func (a clientBodyBufferSize) Parse(ing *extensions.Ingress) (interface{}, error) {
return parser.GetStringAnnotation(annotation, ing)
}
}