From 329741f34050063ab4639dd3663f8413cd7c8313 Mon Sep 17 00:00:00 2001 From: Jonah Back Date: Sun, 20 Dec 2020 23:10:26 -0800 Subject: [PATCH] Add Pre/PostBootstrap for Windows Nodes Signed-off-by: Jonah Back --- controllers/provisioners/eks/helpers.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/provisioners/eks/helpers.go b/controllers/provisioners/eks/helpers.go index d2517c82..e500a80d 100644 --- a/controllers/provisioners/eks/helpers.go +++ b/controllers/provisioners/eks/helpers.go @@ -118,10 +118,12 @@ func (ctx *EksInstanceGroupContext) GetBasicUserData(clusterName, args string, k case OsFamilyWindows: UserDataTemplate = ` + {{range $pre := .PreBootstrap}}{{$pre}}{{end}} [string]$EKSBinDir = "$env:ProgramFiles\Amazon\EKS" [string]$EKSBootstrapScriptName = 'Start-EKSBootstrap.ps1' [string]$EKSBootstrapScriptFile = "$EKSBinDir\$EKSBootstrapScriptName" & $EKSBootstrapScriptFile -EKSClusterName {{ .ClusterName }} -KubeletExtraArgs '{{ .KubeletExtraArgs }}' 3>&1 4>&1 5>&1 6>&1 + {{range $post := .PostBootstrap}}{{$post}}{{end}} ` case OsFamilyBottleRocket: UserDataTemplate = `