Skip to content

Commit 45b7630

Browse files
authored
move windows ps files from cse to vhd (#334)
1 parent 1fb467f commit 45b7630

File tree

3 files changed

+63
-19
lines changed

3 files changed

+63
-19
lines changed

pkg/engine/const.go

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,9 @@ const (
6464
const (
6565
kubeConfigJSON = "k8s/kubeconfig.json"
6666
// Windows custom scripts. These should all be listed in template_generator.go:func GetKubernetesWindowsAgentFunctions
67-
kubernetesWindowsAgentCustomDataPS1 = "k8s/kuberneteswindowssetup.ps1"
68-
kubernetesWindowsAgentFunctionsPS1 = "k8s/kuberneteswindowsfunctions.ps1"
69-
kubernetesWindowsConfigFunctionsPS1 = "k8s/windowsconfigfunc.ps1"
70-
kubernetesWindowsContainerdFunctionsPS1 = "k8s/windowscontainerdfunc.ps1"
71-
kubernetesWindowsCsiProxyFunctionsPS1 = "k8s/windowscsiproxyfunc.ps1"
72-
kubernetesWindowsKubeletFunctionsPS1 = "k8s/windowskubeletfunc.ps1"
73-
kubernetesWindowsCniFunctionsPS1 = "k8s/windowscnifunc.ps1"
74-
kubernetesWindowsAzureCniFunctionsPS1 = "k8s/windowsazurecnifunc.ps1"
75-
kubernetesWindowsHostsConfigAgentFunctionsPS1 = "k8s/windowshostsconfigagentfunc.ps1"
76-
kubernetesWindowsOpenSSHFunctionPS1 = "k8s/windowsinstallopensshfunc.ps1"
77-
kubernetesWindowsHypervtemplatetoml = "k8s/containerdtemplate.toml"
67+
kubernetesWindowsAgentCustomDataPS1 = "k8s/kuberneteswindowssetup.ps1"
68+
kubernetesWindowsContainerdFunctionsPS1 = "k8s/windowscontainerdfunc.ps1"
69+
kubernetesWindowsHypervtemplatetoml = "k8s/containerdtemplate.toml"
7870
)
7971

8072
// cloud-init (i.e. ARM customData) source file references

pkg/engine/template_generator.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -395,15 +395,7 @@ func getContainerServiceFuncMap(cs *api.ContainerService) template.FuncMap {
395395
"GetKubernetesWindowsAgentFunctions": func() string {
396396
// Collect all the parts into a zip
397397
var parts = []string{
398-
kubernetesWindowsAgentFunctionsPS1,
399-
kubernetesWindowsConfigFunctionsPS1,
400398
kubernetesWindowsContainerdFunctionsPS1,
401-
kubernetesWindowsCsiProxyFunctionsPS1,
402-
kubernetesWindowsKubeletFunctionsPS1,
403-
kubernetesWindowsCniFunctionsPS1,
404-
kubernetesWindowsAzureCniFunctionsPS1,
405-
kubernetesWindowsHostsConfigAgentFunctionsPS1,
406-
kubernetesWindowsOpenSSHFunctionPS1,
407399
kubernetesWindowsHypervtemplatetoml,
408400
}
409401

vhd/aib/AKSeImageTemplateWindows.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,66 @@
144144
"sourceUri": "[uri('https://raw.githubusercontent.com/Azure/aks-engine-azurestack/',concat(parameters('github_branch_name'),'/parts/k8s/cloud-init/artifacts/credential-provider-config.yaml'))]",
145145
"destination":"c:\\k\\credential-provider\\credential-provider-config.yaml"
146146
},
147+
{
148+
"type": "File",
149+
"name": "download kuberneteswindowsfunctions file",
150+
"sourceUri": "[uri('https://raw.githubusercontent.com/Azure/aks-engine-azurestack/',concat(parameters('github_branch_name'),'/parts/k8s/kuberneteswindowsfunctions.ps1'))]",
151+
"destination":"c:\\AzureData\\k8s\\kuberneteswindowsfunctions.ps1"
152+
},
153+
{
154+
"type": "File",
155+
"name": "download rotate-certs file",
156+
"sourceUri": "[uri('https://raw.githubusercontent.com/Azure/aks-engine-azurestack/',concat(parameters('github_branch_name'),'/parts/k8s/rotate-certs.ps1'))]",
157+
"destination":"c:\\AzureData\\k8s\\rotate-certs.ps1"
158+
},
159+
{
160+
"type": "File",
161+
"name": "download windowsazurecnifunc file",
162+
"sourceUri": "[uri('https://raw.githubusercontent.com/Azure/aks-engine-azurestack/',concat(parameters('github_branch_name'),'/parts/k8s/windowsazurecnifunc.ps1'))]",
163+
"destination":"c:\\AzureData\\k8s\\windowsazurecnifunc.ps1"
164+
},
165+
{
166+
"type": "File",
167+
"name": "download windowsazurecnifunc.tests file",
168+
"sourceUri": "[uri('https://raw.githubusercontent.com/Azure/aks-engine-azurestack/',concat(parameters('github_branch_name'),'/parts/k8s/windowsazurecnifunc.tests.ps1'))]",
169+
"destination":"c:\\AzureData\\k8s\\windowsazurecnifunc.tests.ps1"
170+
},
171+
{
172+
"type": "File",
173+
"name": "download windowscnifunc file",
174+
"sourceUri": "[uri('https://raw.githubusercontent.com/Azure/aks-engine-azurestack/',concat(parameters('github_branch_name'),'/parts/k8s/windowscnifunc.ps1'))]",
175+
"destination":"c:\\AzureData\\k8s\\windowscnifunc.ps1"
176+
},
177+
{
178+
"type": "File",
179+
"name": "download windowsconfigfunc file",
180+
"sourceUri": "[uri('https://raw.githubusercontent.com/Azure/aks-engine-azurestack/',concat(parameters('github_branch_name'),'/parts/k8s/windowsconfigfunc.ps1'))]",
181+
"destination":"c:\\AzureData\\k8s\\windowsconfigfunc.ps1"
182+
},
183+
{
184+
"type": "File",
185+
"name": "download windowscsiproxyfunc file",
186+
"sourceUri": "[uri('https://raw.githubusercontent.com/Azure/aks-engine-azurestack/',concat(parameters('github_branch_name'),'/parts/k8s/windowscsiproxyfunc.ps1'))]",
187+
"destination":"c:\\AzureData\\k8s\\windowscsiproxyfunc.ps1"
188+
},
189+
{
190+
"type": "File",
191+
"name": "download windowshostsconfigagentfunc file",
192+
"sourceUri": "[uri('https://raw.githubusercontent.com/Azure/aks-engine-azurestack/',concat(parameters('github_branch_name'),'/parts/k8s/windowshostsconfigagentfunc.ps1'))]",
193+
"destination":"c:\\AzureData\\k8s\\windowshostsconfigagentfunc.ps1"
194+
},
195+
{
196+
"type": "File",
197+
"name": "download windowsinstallopensshfunc file",
198+
"sourceUri": "[uri('https://raw.githubusercontent.com/Azure/aks-engine-azurestack/',concat(parameters('github_branch_name'),'/parts/k8s/windowsinstallopensshfunc.ps1'))]",
199+
"destination":"c:\\AzureData\\k8s\\windowsinstallopensshfunc.ps1"
200+
},
201+
{
202+
"type": "File",
203+
"name": "download windowskubeletfunc file",
204+
"sourceUri": "[uri('https://raw.githubusercontent.com/Azure/aks-engine-azurestack/',concat(parameters('github_branch_name'),'/parts/k8s/windowskubeletfunc.ps1'))]",
205+
"destination":"c:\\AzureData\\k8s\\windowskubeletfunc.ps1"
206+
},
147207
{
148208
"type": "File",
149209
"name": "download log collection script",

0 commit comments

Comments
 (0)