forked from Ivasoft/traefik
chore: update docker and k8s
This commit is contained in:
committed by
Traefiker Bot
parent
2b5c7f9e91
commit
c2d440a914
10
vendor/github.com/docker/libcompose/config/schema_helpers.go
generated
vendored
10
vendor/github.com/docker/libcompose/config/schema_helpers.go
generated
vendored
@@ -32,15 +32,19 @@ type (
|
||||
portsFormatChecker struct{}
|
||||
)
|
||||
|
||||
func (checker environmentFormatChecker) IsFormat(input string) bool {
|
||||
func (checker environmentFormatChecker) IsFormat(input interface{}) bool {
|
||||
// If the value is a boolean, a warning should be given
|
||||
// However, we can't determine type since gojsonschema converts the value to a string
|
||||
// Adding a function with an interface{} parameter to gojsonschema is probably the best way to handle this
|
||||
return true
|
||||
}
|
||||
|
||||
func (checker portsFormatChecker) IsFormat(input string) bool {
|
||||
_, _, err := nat.ParsePortSpecs([]string{input})
|
||||
func (checker portsFormatChecker) IsFormat(input interface{}) bool {
|
||||
in, ok := input.(string)
|
||||
if !ok {
|
||||
return true
|
||||
}
|
||||
_, _, err := nat.ParsePortSpecs([]string{in})
|
||||
return err == nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user