mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 06:46:36 +01:00
Check whether the user has explicitly configured bootDiagnostics in the mpool's bootDiagnostics field. If not configured, the Azure Stack Hub default is applied
This commit is contained in:
@@ -204,13 +204,16 @@ func GenerateMachines(clusterID, resourceGroup, subscriptionID string, session *
|
|||||||
}
|
}
|
||||||
|
|
||||||
if in.Platform.CloudName == aztypes.StackCloud {
|
if in.Platform.CloudName == aztypes.StackCloud {
|
||||||
azureMachine.Spec.Diagnostics = &capz.Diagnostics{
|
// For Azure Stack Cloud, apply default diagnostics only if user hasn't specified bootDiagnostics
|
||||||
Boot: &capz.BootDiagnostics{
|
if mpool.BootDiagnostics == nil {
|
||||||
StorageAccountType: capz.UserManagedDiagnosticsStorage,
|
azureMachine.Spec.Diagnostics = &capz.Diagnostics{
|
||||||
UserManaged: &capz.UserManagedBootDiagnostics{
|
Boot: &capz.BootDiagnostics{
|
||||||
StorageAccountURI: fmt.Sprintf("https://%s.blob.%s", storageAccountName, in.StorageSuffix),
|
StorageAccountType: capz.UserManagedDiagnosticsStorage,
|
||||||
|
UserManaged: &capz.UserManagedBootDiagnostics{
|
||||||
|
StorageAccountURI: fmt.Sprintf("https://%s.blob.%s", storageAccountName, in.StorageSuffix),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -278,13 +281,16 @@ func GenerateMachines(clusterID, resourceGroup, subscriptionID string, session *
|
|||||||
}
|
}
|
||||||
|
|
||||||
if in.Platform.CloudName == aztypes.StackCloud {
|
if in.Platform.CloudName == aztypes.StackCloud {
|
||||||
bootstrapAzureMachine.Spec.Diagnostics = &capz.Diagnostics{
|
// For Azure Stack Cloud, apply default diagnostics only if user hasn't specified bootDiagnostics
|
||||||
Boot: &capz.BootDiagnostics{
|
if mpool.BootDiagnostics == nil {
|
||||||
StorageAccountType: capz.UserManagedDiagnosticsStorage,
|
bootstrapAzureMachine.Spec.Diagnostics = &capz.Diagnostics{
|
||||||
UserManaged: &capz.UserManagedBootDiagnostics{
|
Boot: &capz.BootDiagnostics{
|
||||||
StorageAccountURI: fmt.Sprintf("https://%s.blob.%s", storageAccountName, in.StorageSuffix),
|
StorageAccountType: capz.UserManagedDiagnosticsStorage,
|
||||||
|
UserManaged: &capz.UserManagedBootDiagnostics{
|
||||||
|
StorageAccountURI: fmt.Sprintf("https://%s.blob.%s", storageAccountName, in.StorageSuffix),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user