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

Commit

Permalink
correct typo: kubernetesAritfacts/15 to kubernetesArtifacts/15 (#1898)
Browse files Browse the repository at this point in the history
Thanks @zqingqing1 !
  • Loading branch information
zqingqing1 authored and jackfrancis committed Dec 8, 2017
1 parent 709e301 commit fc50839
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/acsengine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ var kubernetesManifestYamls = map[string]string{
"MASTER_KUBERNETES_ADDON_MANAGER_B64_GZIP_STR": "k8s/kubernetesmaster-kube-addon-manager.yaml",
}

var kubernetesAritfacts = map[string]string{
var kubernetesArtifacts = map[string]string{
"MASTER_PROVISION_B64_GZIP_STR": kubernetesMasterCustomScript,
"MASTER_GENERATE_PROXY_CERTS_B64_GZIP_STR": kubernetesMasterGenerateProxyCertsScript,
"KUBELET_SERVICE_B64_GZIP_STR": kubernetesKubeletService,
}

var kubernetesAritfacts15 = map[string]string{
var kubernetesArtifacts15 = map[string]string{
"MASTER_PROVISION_B64_GZIP_STR": kubernetesMasterCustomScript,
"MASTER_GENERATE_PROXY_CERTS_B64_GZIP_STR": kubernetesMasterGenerateProxyCertsScript,
"KUBELET_SERVICE_B64_GZIP_STR": "k8s/kuberneteskubelet1.5.service",
Expand Down Expand Up @@ -1012,9 +1012,9 @@ func (t *TemplateGenerator) getTemplateFuncMap(cs *api.ContainerService) templat
// add artifacts and addons
var artifiacts map[string]string
if strings.HasPrefix(profile.OrchestratorProfile.OrchestratorVersion, "1.5.") {
artifiacts = kubernetesAritfacts15
artifiacts = kubernetesArtifacts15
} else {
artifiacts = kubernetesAritfacts
artifiacts = kubernetesArtifacts
}
for placeholder, filename := range artifiacts {
addonTextContents := getBase64CustomScript(filename)
Expand Down Expand Up @@ -1069,9 +1069,9 @@ func (t *TemplateGenerator) getTemplateFuncMap(cs *api.ContainerService) templat
// add artifacts
var artifiacts map[string]string
if strings.HasPrefix(cs.Properties.OrchestratorProfile.OrchestratorVersion, "1.5.") {
artifiacts = kubernetesAritfacts15
artifiacts = kubernetesArtifacts15
} else {
artifiacts = kubernetesAritfacts
artifiacts = kubernetesArtifacts
}
for placeholder, filename := range artifiacts {
addonTextContents := getBase64CustomScript(filename)
Expand Down

0 comments on commit fc50839

Please sign in to comment.