Skip to content

Commit

Permalink
remove management when it is not set (#7868)
Browse files Browse the repository at this point in the history
Co-authored-by: Edward Sun <sunedward@google.com>
  • Loading branch information
edwardmedia and Edward Sun authored May 8, 2023
1 parent 26fad58 commit 94ec588
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4270,7 +4270,7 @@ func expandStandardRolloutPolicy(configured interface{}) *container.StandardRoll
func expandManagement(configured interface{}) *container.NodeManagement {
l, ok := configured.([]interface{})
if !ok || l == nil || len(l) == 0 || l[0] == nil {
return &container.NodeManagement{}
return nil
}
config := l[0].(map[string]interface{})

Expand Down

0 comments on commit 94ec588

Please sign in to comment.