@@ -177,20 +177,24 @@ func TestGetResources(t *testing.T) {
177177 }, {
178178 name : "Azure resources returned as expected" ,
179179 testPlatform : platformsMap [string (configv1 .AzurePlatformType )],
180- expectedResourceCount : 3 ,
180+ expectedResourceCount : 5 ,
181181 expectedResourcesKindName : []string {
182182 "Deployment/azure-cloud-controller-manager" ,
183183 "DaemonSet/azure-cloud-node-manager" ,
184+ "ClusterRole/azure-cloud-controller-manager" ,
185+ "ClusterRoleBinding/cloud-controller-manager:azure-cloud-controller-manager" ,
184186 "PodDisruptionBudget/azure-cloud-controller-manager" ,
185187 },
186188 }, {
187189 name : "Azure resources returned as expected with single node cluster" ,
188190 testPlatform : platformsMap [string (configv1 .AzurePlatformType )],
189- expectedResourceCount : 2 ,
191+ expectedResourceCount : 4 ,
190192 singleReplica : true ,
191193 expectedResourcesKindName : []string {
192194 "Deployment/azure-cloud-controller-manager" ,
193195 "DaemonSet/azure-cloud-node-manager" ,
196+ "ClusterRole/azure-cloud-controller-manager" ,
197+ "ClusterRoleBinding/cloud-controller-manager:azure-cloud-controller-manager" ,
194198 },
195199 }, {
196200 name : "Azure Stack resources returned as expected" ,
0 commit comments