mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 14:45:28 +00:00
Ignore empty pod port spec.
This commit is contained in:
@@ -159,6 +159,9 @@ func ResizeController(ctx api.Context, name string, replicas int, client client.
|
||||
}
|
||||
|
||||
func portsFromString(spec string) []api.Port {
|
||||
if spec == "" {
|
||||
return []api.Port{}
|
||||
}
|
||||
parts := strings.Split(spec, ",")
|
||||
var result []api.Port
|
||||
for _, part := range parts {
|
||||
|
Reference in New Issue
Block a user