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

Commit

Permalink
Organize templates by orchestration types and update references. (#1890)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunSun17 authored and jackfrancis committed Dec 6, 2017
1 parent ed6a196 commit 30ce15e
Show file tree
Hide file tree
Showing 72 changed files with 95 additions and 94 deletions.
6 changes: 3 additions & 3 deletions docs/contributing-dcos.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ You should now have a clean yaml.
under the `parts` directory, create a new file called `dcoscustomdataXXX.t` replacing `XXX` by the correct version number.
Paste the yaml from the previous step inside.

In the new file, under the `runcmd` section you should find 4 sucessive `curl` calls downloading some `.deb` packages followed by a bash script installing each one of them. This is handled by `parts\dcosprovision.sh` in ACS-Engine, so make sure the dependencies didn't change and replace the `curl` and `bash` calls by a link to the script.
In the new file, under the `runcmd` section you should find 4 sucessive `curl` calls downloading some `.deb` packages followed by a bash script installing each one of them. This is handled by `parts\dcos\dcosprovision.sh` in ACS-Engine, so make sure the dependencies didn't change and replace the `curl` and `bash` calls by a link to the script.

For example, in DC/OS 1.9:
```yaml
Expand Down Expand Up @@ -89,11 +89,11 @@ DCOS110BootstrapDownloadURL: fmt.Sprintf(AzureEdgeDCOSBootstrapDownloadURL, "sta
### pkg/acsengine/engine.go
- Around line 39, add `dcosCustomDataXXX = "dcoscustomdataXXX.t"` variable
- Around line 39, add `dcosCustomDataXXX = "dcos/dcoscustomdataXXX.t"` variable
Example for version 1.10:
```
dcosCustomData110 = "dcoscustomdata110.t"
dcosCustomData110 = "dcos/dcoscustomdata110.t"
```
- Around line 578, add the code case block for your version.
Expand Down
2 changes: 1 addition & 1 deletion docs/swarmmode-hybrid.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ SSH into one of the masters (`ssh [email protected]

![](images/swarmmode-hybrid-docker-node-ls.png)

> NOTE - if you only see the Linux masters and agents, a working solution is to reimage the Windows agents scale set - that is restoring the VMs to the initial state and restart them. This will reapply all the steps in the installation, [mainly this one that installs the container host and joins the Swarm](https://github.com/Azure/acs-engine/blob/master/parts/Install-ContainerHost-And-Join-Swarm.ps1).
> NOTE - if you only see the Linux masters and agents, a working solution is to reimage the Windows agents scale set - that is restoring the VMs to the initial state and restart them. This will reapply all the steps in the installation, [mainly this one that installs the container host and joins the Swarm](https://github.com/Azure/acs-engine/blob/master/parts/swarm/Install-ContainerHost-And-Join-Swarm.ps1).
Now you can inspect one of the Windows agents with `docker node inspect <hostname or id of node>`:

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 8 additions & 8 deletions parts/dcosbase.t → parts/dcos/dcosbase.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
},
{{template "windowsparams.t"}},
{{end}}
{{template "dcosparams.t" .}}
{{template "dcos/dcosparams.t" .}}
{{template "masterparams.t" .}}
},
"variables": {
{{range $index, $agent := .AgentPoolProfiles}}
"{{.Name}}Index": {{$index}},
{{template "dcosagentvars.t" .}}
{{template "dcos/dcosagentvars.t" .}}
{{if .IsStorageAccount}}
"{{.Name}}StorageAccountOffset": "[mul(variables('maxStorageAccountsPerAgent'),{{$index}})]",
"{{.Name}}AccountName": "[concat(variables('storageAccountBaseName'), 'agnt{{$index}}')]",
Expand All @@ -36,25 +36,25 @@
{{end}}
{{end}}

{{template "dcosmastervars.t" .}}
{{template "dcos/dcosmastervars.t" .}}
},
"resources": [
{{range .AgentPoolProfiles}}
{{if .IsWindows}}
{{if .IsAvailabilitySets}}
{{template "dcosWindowsAgentResourcesVmas.t" .}},
{{template "dcos/dcosWindowsAgentResourcesVmas.t" .}},
{{else}}
{{template "dcosWindowsAgentResourcesVmss.t" .}},
{{template "dcos/dcosWindowsAgentResourcesVmss.t" .}},
{{end}}
{{else}}
{{if .IsAvailabilitySets}}
{{template "dcosagentresourcesvmas.t" .}},
{{template "dcos/dcosagentresourcesvmas.t" .}},
{{else}}
{{template "dcosagentresourcesvmss.t" .}},
{{template "dcos/dcosagentresourcesvmss.t" .}},
{{end}}
{{end}}
{{end}}
{{template "dcosmasterresources.t" .}}
{{template "dcos/dcosmasterresources.t" .}}
],
"outputs": {
{{range .AgentPoolProfiles}}{{template "agentoutputs.t" .}}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions parts/kubernetesbase.t → parts/k8s/kubernetesbase.t
Original file line number Diff line number Diff line change
Expand Up @@ -28,32 +28,32 @@
{{template "windowsparams.t"}},
{{end}}
{{template "masterparams.t" .}},
{{template "kubernetesparams.t" .}}
{{template "k8s/kubernetesparams.t" .}}
},
"variables": {
{{range $index, $agent := .AgentPoolProfiles}}
"{{.Name}}Index": {{$index}},
{{template "kubernetesagentvars.t" .}}
{{template "k8s/kubernetesagentvars.t" .}}
{{if .IsStorageAccount}}
{{if .HasDisks}}
"{{.Name}}DataAccountName": "[concat(variables('storageAccountBaseName'), 'data{{$index}}')]",
{{end}}
"{{.Name}}AccountName": "[concat(variables('storageAccountBaseName'), 'agnt{{$index}}')]",
{{end}}
{{end}}
{{template "kubernetesmastervars.t" .}}
{{template "k8s/kubernetesmastervars.t" .}}
},
"resources": [
{{ range $index, $element := .AgentPoolProfiles}}
{{if $index}}, {{end}}
{{if .IsWindows}}
{{template "kuberneteswinagentresourcesvmas.t" .}}
{{template "k8s/kuberneteswinagentresourcesvmas.t" .}}
{{else}}
{{template "kubernetesagentresourcesvmas.t" .}}
{{template "k8s/kubernetesagentresourcesvmas.t" .}}
{{end}}
{{end}}
{{if not IsHostedMaster}}
,{{template "kubernetesmasterresources.t" .}}
,{{template "k8s/kubernetesmasterresources.t" .}}
{{else}}
,{
"apiVersion": "[variables('apiVersionDefault')]",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 8 additions & 8 deletions parts/swarmbase.t → parts/swarm/swarmbase.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
{{template "windowsparams.t"}},
{{end}}
{{template "masterparams.t" .}}
{{template "swarmparams.t" .}}
{{template "swarm/swarmparams.t" .}}
},
"variables": {
{{range $index, $agent := .AgentPoolProfiles}}
"{{.Name}}Index": {{$index}},
{{template "swarmagentvars.t" .}}
{{template "swarm/swarmagentvars.t" .}}
{{if .IsStorageAccount}}
"{{.Name}}StorageAccountOffset": "[mul(variables('maxStorageAccountsPerAgent'),{{$index}})]",
"{{.Name}}AccountName": "[concat(variables('storageAccountBaseName'), 'agnt{{$index}}')]",
Expand All @@ -22,25 +22,25 @@
{{end}}
{{end}}

{{template "swarmmastervars.t" .}}
{{template "swarm/swarmmastervars.t" .}}
},
"resources": [
{{range .AgentPoolProfiles}}
{{if .IsWindows}}
{{if .IsAvailabilitySets}}
{{template "swarmwinagentresourcesvmas.t" .}},
{{template "swarm/swarmwinagentresourcesvmas.t" .}},
{{else}}
{{template "swarmwinagentresourcesvmss.t" .}},
{{template "swarm/swarmwinagentresourcesvmss.t" .}},
{{end}}
{{else}}
{{if .IsAvailabilitySets}}
{{template "swarmagentresourcesvmas.t" .}},
{{template "swarm/swarmagentresourcesvmas.t" .}},
{{else}}
{{template "swarmagentresourcesvmss.t" .}},
{{template "swarm/swarmagentresourcesvmss.t" .}},
{{end}}
{{end}}
{{end}}
{{template "swarmmasterresources.t" .}}
{{template "swarm/swarmmasterresources.t" .}}
],
"outputs": {
{{range .AgentPoolProfiles}}{{template "agentoutputs.t" .}}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
135 changes: 68 additions & 67 deletions pkg/acsengine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,69 +27,69 @@ import (
)

const (
kubernetesMasterCustomDataYaml = "kubernetesmastercustomdata.yml"
kubernetesMasterCustomScript = "kubernetesmastercustomscript.sh"
kubernetesMountetcd = "kubernetes_mountetcd.sh"
kubernetesMasterGenerateProxyCertsScript = "kubernetesmastergenerateproxycertscript.sh"
kubernetesAgentCustomDataYaml = "kubernetesagentcustomdata.yml"
kubeConfigJSON = "kubeconfig.json"
kubernetesWindowsAgentCustomDataPS1 = "kuberneteswindowssetup.ps1"
kubernetesMasterCustomDataYaml = "k8s/kubernetesmastercustomdata.yml"
kubernetesMasterCustomScript = "k8s/kubernetesmastercustomscript.sh"
kubernetesMountetcd = "k8s/kubernetes_mountetcd.sh"
kubernetesMasterGenerateProxyCertsScript = "k8s/kubernetesmastergenerateproxycertscript.sh"
kubernetesAgentCustomDataYaml = "k8s/kubernetesagentcustomdata.yml"
kubeConfigJSON = "k8s/kubeconfig.json"
kubernetesWindowsAgentCustomDataPS1 = "k8s/kuberneteswindowssetup.ps1"
)

const (
dcosCustomData188 = "dcoscustomdata188.t"
dcosCustomData190 = "dcoscustomdata190.t"
dcosCustomData110 = "dcoscustomdata110.t"
dcosProvision = "dcosprovision.sh"
dcosWindowsProvision = "dcosWindowsProvision.ps1"
dcosCustomData188 = "dcos/dcoscustomdata188.t"
dcosCustomData190 = "dcos/dcoscustomdata190.t"
dcosCustomData110 = "dcos/dcoscustomdata110.t"
dcosProvision = "dcos/dcosprovision.sh"
dcosWindowsProvision = "dcos/dcosWindowsProvision.ps1"
)

const (
swarmProvision = "configure-swarm-cluster.sh"
swarmWindowsProvision = "Install-ContainerHost-And-Join-Swarm.ps1"
swarmProvision = "swarm/configure-swarm-cluster.sh"
swarmWindowsProvision = "swarm/Install-ContainerHost-And-Join-Swarm.ps1"

swarmModeProvision = "configure-swarmmode-cluster.sh"
swarmModeWindowsProvision = "Join-SwarmMode-cluster.ps1"
swarmModeProvision = "swarm/configure-swarmmode-cluster.sh"
swarmModeWindowsProvision = "swarm/Join-SwarmMode-cluster.ps1"

masterAddonAzureStorageClasses = "MASTER_ADDON_AZURE_STORAGE_CLASSES_B64_GZIP_STR"
masterAddonAzureStorageClassesFileUnmanaged = "kubernetesmasteraddons-unmanaged-azure-storage-classes.yaml"
masterAddonAzureStorageClassesFileManaged = "kubernetesmasteraddons-managed-azure-storage-classes.yaml"
masterAddonAzureStorageClassesFileUnmanaged = "k8s/kubernetesmasteraddons-unmanaged-azure-storage-classes.yaml"
masterAddonAzureStorageClassesFileManaged = "k8s/kubernetesmasteraddons-managed-azure-storage-classes.yaml"
)

const (
agentOutputs = "agentoutputs.t"
agentParams = "agentparams.t"
classicParams = "classicparams.t"
dcosAgentResourcesVMAS = "dcosagentresourcesvmas.t"
dcosWindowsAgentResourcesVMAS = "dcosWindowsAgentResourcesVmas.t"
dcosAgentResourcesVMSS = "dcosagentresourcesvmss.t"
dcosWindowsAgentResourcesVMSS = "dcosWindowsAgentResourcesVmss.t"
dcosAgentVars = "dcosagentvars.t"
dcosBaseFile = "dcosbase.t"
dcosParams = "dcosparams.t"
dcosMasterResources = "dcosmasterresources.t"
dcosMasterVars = "dcosmastervars.t"
dcosAgentResourcesVMAS = "dcos/dcosagentresourcesvmas.t"
dcosWindowsAgentResourcesVMAS = "dcos/dcosWindowsAgentResourcesVmas.t"
dcosAgentResourcesVMSS = "dcos/dcosagentresourcesvmss.t"
dcosWindowsAgentResourcesVMSS = "dcos/dcosWindowsAgentResourcesVmss.t"
dcosAgentVars = "dcos/dcosagentvars.t"
dcosBaseFile = "dcos/dcosbase.t"
dcosParams = "dcos/dcosparams.t"
dcosMasterResources = "dcos/dcosmasterresources.t"
dcosMasterVars = "dcos/dcosmastervars.t"
iaasOutputs = "iaasoutputs.t"
kubernetesBaseFile = "kubernetesbase.t"
kubernetesAgentResourcesVMAS = "kubernetesagentresourcesvmas.t"
kubernetesAgentVars = "kubernetesagentvars.t"
kubernetesMasterResources = "kubernetesmasterresources.t"
kubernetesMasterVars = "kubernetesmastervars.t"
kubernetesParams = "kubernetesparams.t"
kubernetesWinAgentVars = "kuberneteswinagentresourcesvmas.t"
kubernetesKubeletService = "kuberneteskubelet.service"
kubernetesBaseFile = "k8s/kubernetesbase.t"
kubernetesAgentResourcesVMAS = "k8s/kubernetesagentresourcesvmas.t"
kubernetesAgentVars = "k8s/kubernetesagentvars.t"
kubernetesMasterResources = "k8s/kubernetesmasterresources.t"
kubernetesMasterVars = "k8s/kubernetesmastervars.t"
kubernetesParams = "k8s/kubernetesparams.t"
kubernetesWinAgentVars = "k8s/kuberneteswinagentresourcesvmas.t"
kubernetesKubeletService = "k8s/kuberneteskubelet.service"
masterOutputs = "masteroutputs.t"
masterParams = "masterparams.t"
swarmBaseFile = "swarmbase.t"
swarmParams = "swarmparams.t"
swarmAgentResourcesVMAS = "swarmagentresourcesvmas.t"
swarmAgentResourcesVMSS = "swarmagentresourcesvmss.t"
swarmAgentResourcesClassic = "swarmagentresourcesclassic.t"
swarmAgentVars = "swarmagentvars.t"
swarmMasterResources = "swarmmasterresources.t"
swarmMasterVars = "swarmmastervars.t"
swarmWinAgentResourcesVMAS = "swarmwinagentresourcesvmas.t"
swarmWinAgentResourcesVMSS = "swarmwinagentresourcesvmss.t"
swarmBaseFile = "swarm/swarmbase.t"
swarmParams = "swarm/swarmparams.t"
swarmAgentResourcesVMAS = "swarm/swarmagentresourcesvmas.t"
swarmAgentResourcesVMSS = "swarm/swarmagentresourcesvmss.t"
swarmAgentResourcesClassic = "swarm/swarmagentresourcesclassic.t"
swarmAgentVars = "swarm/swarmagentvars.t"
swarmMasterResources = "swarm/swarmmasterresources.t"
swarmMasterVars = "swarm/swarmmastervars.t"
swarmWinAgentResourcesVMAS = "swarm/swarmwinagentresourcesvmas.t"
swarmWinAgentResourcesVMSS = "swarm/swarmwinagentresourcesvmss.t"
windowsParams = "windowsparams.t"
)

Expand All @@ -101,11 +101,11 @@ const (
)

var kubernetesManifestYamls = map[string]string{
"MASTER_KUBERNETES_SCHEDULER_B64_GZIP_STR": "kubernetesmaster-kube-scheduler.yaml",
"MASTER_KUBERNETES_CONTROLLER_MANAGER_B64_GZIP_STR": "kubernetesmaster-kube-controller-manager.yaml",
"MASTER_KUBERNETES_CLOUD_CONTROLLER_MANAGER_B64_GZIP_STR": "kubernetesmaster-cloud-controller-manager.yaml",
"MASTER_KUBERNETES_APISERVER_B64_GZIP_STR": "kubernetesmaster-kube-apiserver.yaml",
"MASTER_KUBERNETES_ADDON_MANAGER_B64_GZIP_STR": "kubernetesmaster-kube-addon-manager.yaml",
"MASTER_KUBERNETES_SCHEDULER_B64_GZIP_STR": "k8s/kubernetesmaster-kube-scheduler.yaml",
"MASTER_KUBERNETES_CONTROLLER_MANAGER_B64_GZIP_STR": "k8s/kubernetesmaster-kube-controller-manager.yaml",
"MASTER_KUBERNETES_CLOUD_CONTROLLER_MANAGER_B64_GZIP_STR": "k8s/kubernetesmaster-cloud-controller-manager.yaml",
"MASTER_KUBERNETES_APISERVER_B64_GZIP_STR": "k8s/kubernetesmaster-kube-apiserver.yaml",
"MASTER_KUBERNETES_ADDON_MANAGER_B64_GZIP_STR": "k8s/kubernetesmaster-kube-addon-manager.yaml",
}

var kubernetesAritfacts = map[string]string{
Expand All @@ -117,36 +117,36 @@ var kubernetesAritfacts = map[string]string{
var kubernetesAritfacts15 = map[string]string{
"MASTER_PROVISION_B64_GZIP_STR": kubernetesMasterCustomScript,
"MASTER_GENERATE_PROXY_CERTS_B64_GZIP_STR": kubernetesMasterGenerateProxyCertsScript,
"KUBELET_SERVICE_B64_GZIP_STR": "kuberneteskubelet1.5.service",
"KUBELET_SERVICE_B64_GZIP_STR": "k8s/kuberneteskubelet1.5.service",
}

var kubernetesAddonYamls = map[string]string{
"MASTER_ADDON_HEAPSTER_DEPLOYMENT_B64_GZIP_STR": "kubernetesmasteraddons-heapster-deployment.yaml",
"MASTER_ADDON_KUBE_DNS_DEPLOYMENT_B64_GZIP_STR": "kubernetesmasteraddons-kube-dns-deployment.yaml",
"MASTER_ADDON_KUBE_PROXY_DAEMONSET_B64_GZIP_STR": "kubernetesmasteraddons-kube-proxy-daemonset.yaml",
"MASTER_ADDON_KUBERNETES_DASHBOARD_DEPLOYMENT_B64_GZIP_STR": "kubernetesmasteraddons-kubernetes-dashboard-deployment.yaml",
"MASTER_ADDON_HEAPSTER_DEPLOYMENT_B64_GZIP_STR": "k8s/kubernetesmasteraddons-heapster-deployment.yaml",
"MASTER_ADDON_KUBE_DNS_DEPLOYMENT_B64_GZIP_STR": "k8s/kubernetesmasteraddons-kube-dns-deployment.yaml",
"MASTER_ADDON_KUBE_PROXY_DAEMONSET_B64_GZIP_STR": "k8s/kubernetesmasteraddons-kube-proxy-daemonset.yaml",
"MASTER_ADDON_KUBERNETES_DASHBOARD_DEPLOYMENT_B64_GZIP_STR": "k8s/kubernetesmasteraddons-kubernetes-dashboard-deployment.yaml",
masterAddonAzureStorageClasses: masterAddonAzureStorageClassesFileUnmanaged,
"MASTER_ADDON_TILLER_DEPLOYMENT_B64_GZIP_STR": "kubernetesmasteraddons-tiller-deployment.yaml",
"MASTER_ADDON_ACI_CONNECTOR_DEPLOYMENT_B64_GZIP_STR": "kubernetesmasteraddons-aci-connector-deployment.yaml",
"MASTER_ADDON_RESCHEDULER_DEPLOYMENT_B64_GZIP_STR": "kubernetesmasteraddons-kube-rescheduler-deployment.yaml",
"MASTER_ADDON_TILLER_DEPLOYMENT_B64_GZIP_STR": "k8s/kubernetesmasteraddons-tiller-deployment.yaml",
"MASTER_ADDON_ACI_CONNECTOR_DEPLOYMENT_B64_GZIP_STR": "k8s/kubernetesmasteraddons-aci-connector-deployment.yaml",
"MASTER_ADDON_RESCHEDULER_DEPLOYMENT_B64_GZIP_STR": "k8s/kubernetesmasteraddons-kube-rescheduler-deployment.yaml",
}

var kubernetesAddonYamls15 = map[string]string{
"MASTER_ADDON_HEAPSTER_DEPLOYMENT_B64_GZIP_STR": "kubernetesmasteraddons-heapster-deployment1.5.yaml",
"MASTER_ADDON_KUBE_DNS_DEPLOYMENT_B64_GZIP_STR": "kubernetesmasteraddons-kube-dns-deployment1.5.yaml",
"MASTER_ADDON_KUBE_PROXY_DAEMONSET_B64_GZIP_STR": "kubernetesmasteraddons-kube-proxy-daemonset1.5.yaml",
"MASTER_ADDON_KUBERNETES_DASHBOARD_DEPLOYMENT_B64_GZIP_STR": "kubernetesmasteraddons-kubernetes-dashboard-deployment1.5.yaml",
"MASTER_ADDON_HEAPSTER_DEPLOYMENT_B64_GZIP_STR": "k8s/kubernetesmasteraddons-heapster-deployment1.5.yaml",
"MASTER_ADDON_KUBE_DNS_DEPLOYMENT_B64_GZIP_STR": "k8s/kubernetesmasteraddons-kube-dns-deployment1.5.yaml",
"MASTER_ADDON_KUBE_PROXY_DAEMONSET_B64_GZIP_STR": "k8s/kubernetesmasteraddons-kube-proxy-daemonset1.5.yaml",
"MASTER_ADDON_KUBERNETES_DASHBOARD_DEPLOYMENT_B64_GZIP_STR": "k8s/kubernetesmasteraddons-kubernetes-dashboard-deployment1.5.yaml",
masterAddonAzureStorageClasses: masterAddonAzureStorageClassesFileUnmanaged,
"MASTER_ADDON_TILLER_DEPLOYMENT_B64_GZIP_STR": "kubernetesmasteraddons-tiller-deployment1.5.yaml",
"MASTER_ADDON_ACI_CONNECTOR_DEPLOYMENT_B64_GZIP_STR": "kubernetesmasteraddons-aci-connector-deployment1.5.yaml",
"MASTER_ADDON_TILLER_DEPLOYMENT_B64_GZIP_STR": "k8s/kubernetesmasteraddons-tiller-deployment1.5.yaml",
"MASTER_ADDON_ACI_CONNECTOR_DEPLOYMENT_B64_GZIP_STR": "k8s/kubernetesmasteraddons-aci-connector-deployment1.5.yaml",
}

var calicoAddonYamls = map[string]string{
"MASTER_ADDON_CALICO_DAEMONSET_B64_GZIP_STR": "kubernetesmasteraddons-calico-daemonset.yaml",
"MASTER_ADDON_CALICO_DAEMONSET_B64_GZIP_STR": "k8s/kubernetesmasteraddons-calico-daemonset.yaml",
}

var calicoAddonYamls15 = map[string]string{
"MASTER_ADDON_CALICO_DAEMONSET_B64_GZIP_STR": "kubernetesmasteraddons-calico-daemonset1.5.yaml",
"MASTER_ADDON_CALICO_DAEMONSET_B64_GZIP_STR": "k8s/kubernetesmasteraddons-calico-daemonset1.5.yaml",
}

var commonTemplateFiles = []string{agentOutputs, agentParams, classicParams, masterOutputs, iaasOutputs, masterParams, windowsParams}
Expand Down Expand Up @@ -2095,7 +2095,8 @@ write_files:
filelines := ""
for _, file := range files {
b64GzipString := getBase64CustomScript(file)
filelines = filelines + fmt.Sprintf(writeFileBlock, b64GzipString, file)
fileNoPath := strings.TrimPrefix(file, "swarm/")
filelines = filelines + fmt.Sprintf(writeFileBlock, b64GzipString, fileNoPath)
}
return fmt.Sprintf(clusterYamlFile, filelines)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/acsengine/fileloader.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package acsengine

//go:generate go-bindata -nometadata -pkg $GOPACKAGE -prefix ../../parts/ -o templates.go ../../parts/
//go:generate go-bindata -nometadata -pkg $GOPACKAGE -prefix ../../parts/ -o templates.go ../../parts/...
//go:generate gofmt -s -l -w templates.go
// fileloader use go-bindata (https://github.com/jteeuwen/go-bindata)
// go-bindata is the way we handle embedded files, like binary, template, etc.

0 comments on commit 30ce15e

Please sign in to comment.