Skip to content

Commit

Permalink
move UseManagedIdentityExtension to staticNodeBootstrapVars
Browse files Browse the repository at this point in the history
  • Loading branch information
Devinwong committed May 9, 2024
1 parent 9b2886c commit 4b0bd31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/providers/imagefamily/bootstrap/aksbootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ var (
TlsBootstrappingConfig: &nbcontractv1.TLSBootstrappingConfig{
EnableSecureTlsBootstrapping: lo.ToPtr(false),
},
AuthConfig: &nbcontractv1.AuthConfig{
UseManagedIdentityExtension: true, // s
},
}
)

Expand Down Expand Up @@ -221,7 +224,6 @@ func (a AKS) applyOptions(v *nbcontractv1.Configuration) (*nbcontractv1.Configur
contractBuilder.GetNodeBootstrapConfig().AuthConfig.ServicePrincipalId = servicePrincipalClientID
contractBuilder.GetNodeBootstrapConfig().AuthConfig.ServicePrincipalSecret = servicePrincipalFileContent
contractBuilder.GetNodeBootstrapConfig().AuthConfig.AssignedIdentityId = a.UserAssignedIdentityID
contractBuilder.GetNodeBootstrapConfig().AuthConfig.UseManagedIdentityExtension = true
contractBuilder.GetNodeBootstrapConfig().NetworkConfig.NetworkPlugin = nbcontractv1.GetNetworkPluginType(a.NetworkPlugin)
contractBuilder.GetNodeBootstrapConfig().NetworkConfig.NetworkPolicy = nbcontractv1.GetNetworkPolicyType(a.NetworkPolicy)
contractBuilder.GetNodeBootstrapConfig().KubernetesVersion = a.KubernetesVersion
Expand Down

0 comments on commit 4b0bd31

Please sign in to comment.