Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement fix for failing AKS acceptance/mock test #377

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions internal/resources/akscluster/resource_akscluster_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@ func testAKSCluster(fn *aksmodel.VmwareTanzuManageV1alpha1AksclusterFullName) st
enable_disk_csi_driver = false
enable_file_csi_driver = false
}
identity_config {
type = "IDENTITY_TYPE_SYSTEM_ASSIGNED"
}
}
nodepool {
name = "systemnp"
Expand Down Expand Up @@ -433,6 +436,9 @@ func testAKSClusterEnableCSI(fn *aksmodel.VmwareTanzuManageV1alpha1AksclusterFul
enable_disk_csi_driver = true
enable_file_csi_driver = true
}
identity_config {
type = "IDENTITY_TYPE_SYSTEM_ASSIGNED"
}
}
nodepool {
name = "systemnp"
Expand Down Expand Up @@ -464,6 +470,9 @@ func testAKSClusterAddUserNodepool(fn *aksmodel.VmwareTanzuManageV1alpha1Aksclus
enable_disk_csi_driver = true
enable_file_csi_driver = true
}
identity_config {
type = "IDENTITY_TYPE_SYSTEM_ASSIGNED"
}
}
nodepool {
name = "systemnp"
Expand Down Expand Up @@ -508,6 +517,9 @@ func mockCluster(w ...clusterWither) *aksmodel.VmwareTanzuManageV1alpha1AksClust
EnableDiskCsiDriver: false,
EnableFileCsiDriver: false,
},
IdentityConfig: &aksmodel.VmwareTanzuManageV1alpha1AksclusterManagedIdentityConfig{
Type: aksmodel.VmwareTanzuManageV1alpha1AksclusterManagedIdentityTypeSYSTEMASSIGNED.Pointer(),
},
Version: "1.26.6",
},
},
Expand Down
Loading