Skip to content

Commit

Permalink
fix warning when overlaying profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
nkubala committed Aug 15, 2019
1 parent 4e5d426 commit 83b0f45
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/skaffold/schema/profiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,11 @@ func overlayProfileField(config interface{}, profile interface{}) interface{} {
return config
}
return v.Interface()
case reflect.Int:
if v.Interface() == reflect.Zero(v.Type()).Interface() {
return config
}
return v.Interface()
default:
logrus.Warnf("unknown field type in profile overlay: %s. falling back to original config values", v.Kind())
return config
Expand Down

0 comments on commit 83b0f45

Please sign in to comment.