зеркало из https://github.com/Azure/ARO-RP.git
Ensure MSI readonly fields are set to '' in ExternalNoReadOnly converters (#3962)
This commit is contained in:
Родитель
f8133771c5
Коммит
65499d78a3
|
@ -441,6 +441,8 @@ func (c openShiftClusterConverter) ExternalNoReadOnly(_oc interface{}) {
|
|||
}
|
||||
}
|
||||
if oc.Identity != nil {
|
||||
oc.Identity.PrincipalID = ""
|
||||
oc.Identity.TenantID = ""
|
||||
for i := range oc.Identity.UserAssignedIdentities {
|
||||
if entry, ok := oc.Identity.UserAssignedIdentities[i]; ok {
|
||||
entry.ClientID = ""
|
||||
|
|
|
@ -385,6 +385,8 @@ func (c openShiftClusterConverter) ExternalNoReadOnly(_oc interface{}) {
|
|||
}
|
||||
}
|
||||
if oc.Identity != nil {
|
||||
oc.Identity.PrincipalID = ""
|
||||
oc.Identity.TenantID = ""
|
||||
for i := range oc.Identity.UserAssignedIdentities {
|
||||
if entry, ok := oc.Identity.UserAssignedIdentities[i]; ok {
|
||||
entry.ClientID = ""
|
||||
|
|
Загрузка…
Ссылка в новой задаче