Skip to content

Commit

Permalink
remove aks assigned identity check
Browse files Browse the repository at this point in the history
  • Loading branch information
willie-yao committed Jan 12, 2024
1 parent 0b1ad6f commit 38eb084
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions azure/services/aksextensions/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ func (s *AKSExtensionSpec) Parameters(ctx context.Context, existingAKSExtension
}
if s.ExtensionIdentity != "" {
aksExtension.Spec.Identity = &asokubernetesconfigurationv1.Identity{
Type: (*asokubernetesconfigurationv1.Identity_Type)(&s.ExtensionIdentity),
Type: (*asokubernetesconfigurationv1.Identity_Type)(ptr.To(s.ExtensionIdentity)),
}
}
if s.AKSAssignedIdentityType != "" {
aksExtension.Spec.AksAssignedIdentity = &asokubernetesconfigurationv1.Extension_Properties_AksAssignedIdentity_Spec{
Type: (*asokubernetesconfigurationv1.Extension_Properties_AksAssignedIdentity_Type_Spec)(&s.AKSAssignedIdentityType),
Type: (*asokubernetesconfigurationv1.Extension_Properties_AksAssignedIdentity_Type_Spec)(ptr.To(s.AKSAssignedIdentityType)),
}
}
if s.Scope.ScopeType == infrav1.ExtensionScopeCluster {
Expand Down
7 changes: 2 additions & 5 deletions test/e2e/aks_marketplace.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,8 @@ func AKSMarketplaceExtensionSpec(ctx context.Context, inputGetter func() AKSMark
g.Expect(err).NotTo(HaveOccurred())
infraControlPlane.Spec.MarketplaceExtensions = []infrav1.MarketplaceExtension{
{
Name: extensionName,
ExtensionType: ptr.To("TraefikLabs.TraefikProxy"),
AKSAssignedIdentityType: infrav1.AKSAssignedIdentitySystemAssigned,
Name: extensionName,
ExtensionType: ptr.To("TraefikLabs.TraefikProxy"),
Plan: &infrav1.MarketplacePlan{
Name: "traefik-proxy",
Product: "traefik-proxy",
Expand All @@ -165,8 +164,6 @@ func AKSMarketplaceExtensionSpec(ctx context.Context, inputGetter func() AKSMark
extension := resp.Extension
g.Expect(extension.Properties).NotTo(BeNil())
g.Expect(extension.Name).To(Equal(ptr.To(extensionName)))
g.Expect(extension.Properties.AksAssignedIdentity).NotTo(BeNil())
g.Expect(extension.Properties.AksAssignedIdentity.Type).To(Equal(ptr.To(armkubernetesconfiguration.AKSIdentityTypeSystemAssigned)))
g.Expect(extension.Properties.AutoUpgradeMinorVersion).To(Equal(ptr.To(true)))
g.Expect(extension.Properties.ExtensionType).To(Equal(ptr.To("TraefikLabs.TraefikProxy")))
}, input.WaitIntervals...).Should(Succeed())
Expand Down

0 comments on commit 38eb084

Please sign in to comment.