@@ -51,6 +51,13 @@ const (
5151 WindowsOS = "Windows"
5252)
5353
54+ const (
55+ // BootstrappingExtensionLinux is the name of the Linux CAPZ bootstrapping VM extension.
56+ BootstrappingExtensionLinux = "CAPZ.Linux.Bootstrapping"
57+ // BootstrappingExtensionWindows is the name of the Windows CAPZ bootstrapping VM extension.
58+ BootstrappingExtensionWindows = "CAPZ.Windows.Bootstrapping"
59+ )
60+
5461const (
5562 // DefaultWindowsOsAndVersion is the default Windows Server version to use when
5663 // genearating default images for Windows nodes.
@@ -309,7 +316,7 @@ func GetBootstrappingVMExtension(osType string, cloud string, vmName string) *Ex
309316 if osType == LinuxOS && cloud == azureautorest .PublicCloud .Name {
310317 // The command checks for the existence of the bootstrapSentinelFile on the machine, with retries and sleep between retries.
311318 return & ExtensionSpec {
312- Name : "CAPZ.Linux.Bootstrapping" ,
319+ Name : BootstrappingExtensionLinux ,
313320 VMName : vmName ,
314321 Publisher : "Microsoft.Azure.ContainerUpstream" ,
315322 Version : "1.0" ,
@@ -321,7 +328,7 @@ func GetBootstrappingVMExtension(osType string, cloud string, vmName string) *Ex
321328 // This command for the existence of the bootstrapSentinelFile on the machine, with retries and sleep between reties.
322329 // If the file is not present after the retries are exhausted the extension fails with return code '-2' - ERROR_FILE_NOT_FOUND.
323330 return & ExtensionSpec {
324- Name : "CAPZ.Windows.Bootstrapping" ,
331+ Name : BootstrappingExtensionWindows ,
325332 VMName : vmName ,
326333 Publisher : "Microsoft.Azure.ContainerUpstream" ,
327334 Version : "1.0" ,
0 commit comments