chore: update docker and k8s
This commit is contained in:
parent
2b5c7f9e91
commit
c2d440a914
1283 changed files with 67741 additions and 27918 deletions
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue