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

Commit

Permalink
refactor: standardize to "addons", deprecate "containeraddons"
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfrancis committed Jan 7, 2020
1 parent 8fc6daa commit 21e1f7e
Show file tree
Hide file tree
Showing 130 changed files with 23,918 additions and 23,918 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/engine/artifacts.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type kubernetesComponentFileSpec struct {
isEnabled bool // is this spec enabled?
}

func kubernetesContainerAddonSettingsInit(p *api.Properties) map[string]kubernetesComponentFileSpec {
func kubernetesAddonSettingsInit(p *api.Properties) map[string]kubernetesComponentFileSpec {
if p.OrchestratorProfile == nil {
p.OrchestratorProfile = &api.OrchestratorProfile{}
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/engine/artifacts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/Azure/go-autorest/autorest/to"
)

func TestKubernetesContainerAddonSettingsInit(t *testing.T) {
func TestKubernetesAddonSettingsInit(t *testing.T) {
/*
$ echo "Hello, World\!" | base64
SGVsbG8sIFdvcmxkXCEK
Expand Down Expand Up @@ -818,7 +818,7 @@ func TestKubernetesContainerAddonSettingsInit(t *testing.T) {
c := c
t.Run(c.name, func(t *testing.T) {
t.Parallel()
componentFileSpec := kubernetesContainerAddonSettingsInit(c.p)
componentFileSpec := kubernetesAddonSettingsInit(c.p)
for addon := range componentFileSpec {
switch addon {
case common.HeapsterAddonName:
Expand Down
4 changes: 2 additions & 2 deletions pkg/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -766,10 +766,10 @@ func getClusterAutoscalerAddonFuncMap(addon api.KubernetesAddon, cs *api.Contain
}
}

func getContainerAddonsString(cs *api.ContainerService, sourcePath string) string {
func getAddonsString(cs *api.ContainerService, sourcePath string) string {
properties := cs.Properties
var result string
settingsMap := kubernetesContainerAddonSettingsInit(properties)
settingsMap := kubernetesAddonSettingsInit(properties)

var addonNames []string

Expand Down
2 changes: 1 addition & 1 deletion pkg/engine/template_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func (t *TemplateGenerator) GetMasterCustomDataJSONObject(cs *api.ContainerServi
customFilesReader,
"MASTER_CUSTOM_FILES_PLACEHOLDER")

addonStr := getContainerAddonsString(cs, "k8s/containeraddons")
addonStr := getAddonsString(cs, "k8s/addons")

str = strings.Replace(str, "MASTER_CONTAINER_ADDONS_PLACEHOLDER", addonStr, -1)

Expand Down
47,824 changes: 23,912 additions & 23,912 deletions pkg/engine/templates_generated.go

Large diffs are not rendered by default.

0 comments on commit 21e1f7e

Please sign in to comment.