Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
set addon enabled value if nil (#2254)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfrancis authored Feb 12, 2018
1 parent 720ce3c commit 0a44bb7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/acsengine/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,9 @@ func getAddonContainersIndexByName(containers []api.KubernetesContainerSpec, nam

// assignDefaultAddonVals will assign default values to addon from defaults, for each property in addon that has a zero value
func assignDefaultAddonVals(addon, defaults api.KubernetesAddon) api.KubernetesAddon {
if addon.Enabled == nil {
addon.Enabled = defaults.Enabled
}
for i := range defaults.Containers {
c := getAddonContainersIndexByName(addon.Containers, defaults.Containers[i].Name)
if c < 0 {
Expand Down

0 comments on commit 0a44bb7

Please sign in to comment.