Skip to content

Commit b2eb908

Browse files
comtalystclaude
andcommitted
fix: resolve stale test references from rebase onto main
Remove tests and assertions that were invalidated by recently merged PRs but survived the rebase because the conflict resolution didn't catch them: - Remove 7 stale GC tests referencing creationtimestamp tag deleted by #1468 (MachineStatus migration). These tests called the non-existent instance.AKSMachineTimestampToTag function, causing compile failure. - Remove duplicate E2E tests from instancetype/suite_test.go (Zone-aware, CloudProvider Create Error Cases, Unavailable Offerings) that are already covered by shared tests in cloudprovider/suite_offerings_test.go. These duplicates referenced the removed nodePool variable. - Add missing Azure test/expectations dot-import to suite_test.go for ExpectProvisionedAndWaitForPromises (used by test added in #1538). - Remove stale creationtimestamp tag assertion from suite_features_test.go (tag removed by #1468). - Restore ScaleSetPrioritySpot assertion from #1546 (allocationstrategy provider) by adding priority field to creationResult struct, preserving the test's intention in the reunified framework. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c9872fb commit b2eb908

6 files changed

Lines changed: 11 additions & 643 deletions

File tree

pkg/cloudprovider/suite_features_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ func runCommonAdditionalTagsTests() {
301301
Expect(*nic.Interface.Tags["karpenter.sh_nodepool"]).To(Equal(nodePool.Name))
302302
} else {
303303
Expect(result.tags).To(HaveKey("karpenter.azure.com_aksmachine_nodeclaim"))
304-
Expect(result.tags).To(HaveKey("karpenter.azure.com_aksmachine_creationtimestamp"))
305304
}
306305
})
307306
})

pkg/cloudprovider/suite_offerings_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import (
3434
. "sigs.k8s.io/karpenter/pkg/test/expectations"
3535

3636
"github.com/Azure/azure-sdk-for-go/profiles/latest/compute/mgmt/compute"
37+
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerservice/armcontainerservice/v8"
3738
"github.com/Azure/karpenter-provider-azure/pkg/controllers/nodeclass/status"
3839
"github.com/Azure/karpenter-provider-azure/pkg/fake"
3940
. "github.com/Azure/karpenter-provider-azure/pkg/test/expectations"
@@ -65,6 +66,11 @@ var _ = Describe("CloudProvider - Offerings", func() {
6566

6667
Expect(getCreateCallCount()).To(BeNumerically(">=", 1))
6768
result := popCreationResult()
69+
// Verify the failed creation was for a Spot instance (AKS Machine mode exposes priority)
70+
if isAKSMachineMode() {
71+
Expect(result.priority).ToNot(BeNil())
72+
Expect(*result.priority).To(Equal(armcontainerservice.ScaleSetPrioritySpot))
73+
}
6874
testSKU := &skewer.SKU{Name: lo.ToPtr(result.vmSize)}
6975
Expect(result.zoneErr).ToNot(HaveOccurred())
7076
ExpectUnavailable(azureEnv, testSKU, result.zone, karpv1.CapacityTypeSpot)

pkg/cloudprovider/suite_shared_provision_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ type creationResult struct {
6969
diskSizeGB *int32
7070
imageRef string
7171
osDiskType string // AKS Machine: OSDiskType value ("Managed"/"Ephemeral"); VM: empty (use isEphemeral/diffDiskOption instead)
72+
priority *armcontainerservice.ScaleSetPriority // AKS Machine only: the priority (Spot/Regular) of the creation request
7273
// VM-specific fields (populated only for AKSScriptless/BootstrappingClient mode)
7374
customData string // decoded base64 custom data from OSProfile
7475
diffDiskOption string // DiffDiskSettings.Option value (e.g. "Local")
@@ -323,6 +324,7 @@ func popAKSMachineCreationResult() creationResult {
323324
diskSizeGB: diskSizeGB,
324325
osDiskType: osDiskType,
325326
imageRef: lo.FromPtr(m.Properties.NodeImageVersion),
327+
priority: m.Properties.Priority,
326328
}
327329
}
328330

pkg/cloudprovider/suite_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ import (
4848
"github.com/Azure/karpenter-provider-azure/pkg/operator/options"
4949
"github.com/Azure/karpenter-provider-azure/pkg/providers/instance"
5050
"github.com/Azure/karpenter-provider-azure/pkg/test"
51+
. "github.com/Azure/karpenter-provider-azure/pkg/test/expectations"
5152
"github.com/Azure/karpenter-provider-azure/pkg/utils"
5253
"github.com/Azure/skewer"
5354

pkg/controllers/nodeclaim/garbagecollection/suite_aksmachine_test.go

Lines changed: 0 additions & 261 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ import (
2020
"sync"
2121
"time"
2222

23-
"github.com/awslabs/operatorpkg/object"
2423
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v7"
2524
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerservice/armcontainerservice/v8"
26-
"github.com/Azure/karpenter-provider-azure/pkg/apis/v1beta1"
2725
"github.com/Azure/karpenter-provider-azure/pkg/operator/options"
2826
"github.com/Azure/karpenter-provider-azure/pkg/providers/instance"
2927
"github.com/Azure/karpenter-provider-azure/pkg/providers/launchtemplate"
@@ -34,7 +32,6 @@ import (
3432
. "github.com/onsi/ginkgo/v2"
3533
. "github.com/onsi/gomega"
3634
"github.com/samber/lo"
37-
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3835
karpv1 "sigs.k8s.io/karpenter/pkg/apis/v1"
3936
corecloudprovider "sigs.k8s.io/karpenter/pkg/cloudprovider"
4037
coretest "sigs.k8s.io/karpenter/pkg/test"
@@ -220,264 +217,6 @@ var _ = Describe("Instance Garbage Collection", func() {
220217
ExpectNotFound(ctx, env.Client, node)
221218
})
222219

223-
// AKS-specific: malformed/missing timestamp tests
224-
It("should delete an AKS machine if there is no NodeClaim owner, and with malformed timestamp tag", func() {
225-
aksMachine.Properties.Tags["karpenter.azure.com_aksmachine_creationtimestamp"] = lo.ToPtr("malformed-timestamp")
226-
azureEnv.AKSDataStorage.AKSMachines.Store(lo.FromPtr(aksMachine.ID), *aksMachine)
227-
228-
ExpectSingletonReconciled(ctx, InstanceGCController)
229-
230-
_, err = cloudProvider.Get(ctx, providerID)
231-
Expect(err).To(HaveOccurred())
232-
Expect(corecloudprovider.IsNodeClaimNotFoundError(err)).To(BeTrue())
233-
})
234-
235-
It("should delete an AKS machine if there is no NodeClaim owner, and without timestamp tag", func() {
236-
delete(aksMachine.Properties.Tags, "karpenter.azure.com_aksmachine_creationtimestamp")
237-
azureEnv.AKSDataStorage.AKSMachines.Store(lo.FromPtr(aksMachine.ID), *aksMachine)
238-
239-
ExpectSingletonReconciled(ctx, InstanceGCController)
240-
241-
_, err = cloudProvider.Get(ctx, providerID)
242-
Expect(err).To(HaveOccurred())
243-
Expect(corecloudprovider.IsNodeClaimNotFoundError(err)).To(BeTrue())
244-
})
245-
246-
var _ = Context("Complex tags manipulation scenarios with in-place updates", func() {
247-
var nodeClaim *karpv1.NodeClaim
248-
var nodeClass *v1beta1.AKSNodeClass
249-
250-
BeforeEach(func() {
251-
// Set up agent pool for AKS machines
252-
opts := options.FromContext(ctx)
253-
agentPool := test.AKSAgentPool(test.AKSAgentPoolOptions{
254-
Name: opts.AKSMachinesPoolName,
255-
ResourceGroup: opts.NodeResourceGroup,
256-
ClusterName: opts.ClusterName,
257-
})
258-
azureEnv.AKSDataStorage.AgentPools.Store(lo.FromPtr(agentPool.ID), *agentPool)
259-
260-
// Create AKS machine
261-
aksMachine = test.AKSMachine(test.AKSMachineOptions{Name: "corner-case-machine", MachinesPoolName: opts.AKSMachinesPoolName})
262-
providerID = utils.VMResourceIDToProviderID(ctx, lo.FromPtr(aksMachine.Properties.ResourceID))
263-
264-
// Create corresponding NodeClaim, not launched yet
265-
nodeClass = test.AKSNodeClass()
266-
nodeClaim = coretest.NodeClaim(karpv1.NodeClaim{
267-
ObjectMeta: metav1.ObjectMeta{
268-
Name: "corner-case-nodeclaim",
269-
Annotations: map[string]string{
270-
v1beta1.AnnotationAKSMachineResourceID: lo.FromPtr(aksMachine.ID),
271-
},
272-
},
273-
Spec: karpv1.NodeClaimSpec{
274-
NodeClassRef: &karpv1.NodeClassReference{
275-
Group: object.GVK(nodeClass).Group,
276-
Kind: object.GVK(nodeClass).Kind,
277-
Name: nodeClass.Name,
278-
},
279-
},
280-
})
281-
})
282-
283-
AfterEach(func() {
284-
ExpectCleanedUp(ctx, env.Client)
285-
})
286-
287-
It("Instance created -> Tag deleted -> In-place update -> Garbage collection false positive -> Create() completed -> Registered -> In-place update", func() {
288-
// Blank NodeClaim is there from the core.
289-
ExpectApplied(ctx, env.Client, nodeClaim, nodeClass)
290-
291-
// AKS machine created, but the user somehow deleted the timestamp tag
292-
delete(aksMachine.Properties.Tags, "karpenter.azure.com_aksmachine_creationtimestamp")
293-
delete(aksMachine.Properties.Tags, "karpenter.azure.com_aksmachine_nodeclaim")
294-
azureEnv.AKSDataStorage.AKSMachines.Store(lo.FromPtr(aksMachine.ID), *aksMachine)
295-
296-
// Provider still waiting for Create() to complete. No change to NodeClaim.
297-
298-
// In-place update reconciles - should not do anything as no ProviderID yet
299-
ExpectObjectReconciled(ctx, env.Client, inPlaceUpdateController, nodeClaim)
300-
// Verify no update calls and the timestamp tag stays broken.
301-
Expect(azureEnv.AKSMachinesAPI.AKSMachineCreateOrUpdateBehavior.CalledWithInput.Len()).To(Equal(0))
302-
unchangedAKSMachine, err := azureEnv.AKSMachineProvider.Get(ctx, *aksMachine.Name)
303-
Expect(err).ToNot(HaveOccurred())
304-
Expect(unchangedAKSMachine.Properties.Tags).ToNot(HaveKey("karpenter.azure.com_aksmachine_creationtimestamp"))
305-
Expect(unchangedAKSMachine.Properties.Tags).ToNot(HaveKey("karpenter.azure.com_aksmachine_nodeclaim"))
306-
307-
// Garbage collection reconciles - should garbage collect due to no NodeClaim owner + timestamp defaulting to epoch
308-
// This is expected, but not what we really wanted... See suggestions in respective modules.
309-
ExpectSingletonReconciled(ctx, InstanceGCController)
310-
_, err = cloudProvider.Get(ctx, providerID)
311-
Expect(err).To(HaveOccurred())
312-
Expect(corecloudprovider.IsNodeClaimNotFoundError(err)).To(BeTrue())
313-
314-
// Provider Create() completes, setting the ProviderID on the NodeClaim
315-
// Assume this comes at unfortunate time and just went in effect...
316-
nodeClaim.Status.ProviderID = providerID
317-
nodeClaim.StatusConditions().SetTrue(karpv1.ConditionTypeLaunched)
318-
ExpectApplied(ctx, env.Client, nodeClaim)
319-
320-
// NodeClaim gets registered
321-
nodeClaim.StatusConditions().SetTrue(karpv1.ConditionTypeRegistered)
322-
ExpectApplied(ctx, env.Client, nodeClaim)
323-
324-
// In-place update reconciles again - should error NodeClaim not found, as instance is gone
325-
_, err = inPlaceUpdateController.Reconcile(ctx, nodeClaim)
326-
Expect(err).To(HaveOccurred())
327-
Expect(corecloudprovider.IsNodeClaimNotFoundError(err)).To(BeTrue())
328-
// Verify no additional update calls and no instance
329-
Expect(azureEnv.AKSMachinesAPI.AKSMachineCreateOrUpdateBehavior.CalledWithInput.Len()).To(Equal(0))
330-
_, err = azureEnv.AKSMachineProvider.Get(ctx, *aksMachine.Name)
331-
Expect(err).To(HaveOccurred()) // Still gone
332-
Expect(corecloudprovider.IsNodeClaimNotFoundError(err)).To(BeTrue())
333-
334-
// Core will eventually clean up the orphaned NodeClaim
335-
})
336-
337-
It("Instance created -> Tag deleted -> Create() completed -> Registered -> In-place update -> Garbage collection negative -> In-place update -> Garbage collection negative -> Tag deleted -> Garbage collection negative", func() {
338-
// Blank NodeClaim is there from the core.
339-
ExpectApplied(ctx, env.Client, nodeClaim, nodeClass)
340-
341-
// AKS machine created, but the user somehow deleted the timestamp tag
342-
delete(aksMachine.Properties.Tags, "karpenter.azure.com_aksmachine_creationtimestamp")
343-
delete(aksMachine.Properties.Tags, "karpenter.azure.com_aksmachine_nodeclaim")
344-
azureEnv.AKSDataStorage.AKSMachines.Store(lo.FromPtr(aksMachine.ID), *aksMachine)
345-
346-
// Provider Create() completes, setting the ProviderID on the NodeClaim
347-
nodeClaim.Status.ProviderID = providerID
348-
nodeClaim.StatusConditions().SetTrue(karpv1.ConditionTypeLaunched)
349-
ExpectApplied(ctx, env.Client, nodeClaim)
350-
351-
// NodeClaim gets registered
352-
nodeClaim.StatusConditions().SetTrue(karpv1.ConditionTypeRegistered)
353-
ExpectApplied(ctx, env.Client, nodeClaim)
354-
355-
// In-place update reconciles - should repair timestamp tag to epoch
356-
ExpectObjectReconciled(ctx, env.Client, inPlaceUpdateController, nodeClaim)
357-
// Verify update call and the timestamp tag is repaired to epoch.
358-
Expect(azureEnv.AKSMachinesAPI.AKSMachineCreateOrUpdateBehavior.CalledWithInput.Len()).To(Equal(1))
359-
updatedAKSMachine, err := azureEnv.AKSMachineProvider.Get(ctx, *aksMachine.Name)
360-
Expect(err).ToNot(HaveOccurred())
361-
Expect(updatedAKSMachine.Properties.Tags).To(HaveKey("karpenter.azure.com_aksmachine_creationtimestamp"))
362-
Expect(*updatedAKSMachine.Properties.Tags["karpenter.azure.com_aksmachine_creationtimestamp"]).To(Equal(instance.AKSMachineTimestampToTag(instance.ZeroAKSMachineTimestamp())))
363-
Expect(updatedAKSMachine.Properties.Tags).To(HaveKey("karpenter.azure.com_aksmachine_nodeclaim"))
364-
Expect(*updatedAKSMachine.Properties.Tags["karpenter.azure.com_aksmachine_nodeclaim"]).To(Equal("corner-case-nodeclaim"))
365-
366-
// Garbage collection reconciles - should not garbage collect due to NodeClaim owner
367-
ExpectSingletonReconciled(ctx, InstanceGCController)
368-
_, err = cloudProvider.Get(ctx, providerID)
369-
Expect(err).ToNot(HaveOccurred())
370-
Expect(azureEnv.AKSAgentPoolsAPI.AgentPoolDeleteMachinesBehavior.CalledWithInput.Len()).To(Equal(0))
371-
372-
// In-place update reconciles again - should preserve existing timestamp tag
373-
ExpectObjectReconciled(ctx, env.Client, inPlaceUpdateController, nodeClaim)
374-
// Verify no additional update calls and the timestamp tag stays unchanged.
375-
Expect(azureEnv.AKSMachinesAPI.AKSMachineCreateOrUpdateBehavior.CalledWithInput.Len()).To(Equal(1))
376-
unchangedAKSMachine, err := azureEnv.AKSMachineProvider.Get(ctx, *aksMachine.Name)
377-
Expect(err).ToNot(HaveOccurred())
378-
Expect(unchangedAKSMachine.Properties.Tags).To(HaveKey("karpenter.azure.com_aksmachine_creationtimestamp"))
379-
Expect(*unchangedAKSMachine.Properties.Tags["karpenter.azure.com_aksmachine_creationtimestamp"]).To(Equal(instance.AKSMachineTimestampToTag(instance.ZeroAKSMachineTimestamp())))
380-
Expect(unchangedAKSMachine.Properties.Tags).To(HaveKey("karpenter.azure.com_aksmachine_nodeclaim"))
381-
Expect(*unchangedAKSMachine.Properties.Tags["karpenter.azure.com_aksmachine_nodeclaim"]).To(Equal("corner-case-nodeclaim"))
382-
383-
// Garbage collection reconciles - should not garbage collect due to NodeClaim owner
384-
ExpectSingletonReconciled(ctx, InstanceGCController)
385-
_, err = cloudProvider.Get(ctx, providerID)
386-
Expect(err).ToNot(HaveOccurred())
387-
Expect(azureEnv.AKSAgentPoolsAPI.AgentPoolDeleteMachinesBehavior.CalledWithInput.Len()).To(Equal(0))
388-
389-
// The user somehow deleted the timestamp tag again
390-
delete(aksMachine.Properties.Tags, "karpenter.azure.com_aksmachine_creationtimestamp")
391-
delete(aksMachine.Properties.Tags, "karpenter.azure.com_aksmachine_nodeclaim")
392-
azureEnv.AKSDataStorage.AKSMachines.Store(lo.FromPtr(aksMachine.ID), *aksMachine)
393-
394-
// Garbage collection reconciles - should not garbage collect due to NodeClaim owner
395-
ExpectSingletonReconciled(ctx, InstanceGCController)
396-
_, err = cloudProvider.Get(ctx, providerID)
397-
Expect(err).ToNot(HaveOccurred())
398-
Expect(azureEnv.AKSAgentPoolsAPI.AgentPoolDeleteMachinesBehavior.CalledWithInput.Len()).To(Equal(0))
399-
})
400-
401-
It("Instance created -> Tag deleted -> In-place update -> Create() completed -> Registered -> Garbage collection negative", func() {
402-
// Blank NodeClaim is there from the core.
403-
ExpectApplied(ctx, env.Client, nodeClaim, nodeClass)
404-
405-
// AKS machine created, but the user somehow deleted the timestamp tag
406-
delete(aksMachine.Properties.Tags, "karpenter.azure.com_aksmachine_creationtimestamp")
407-
delete(aksMachine.Properties.Tags, "karpenter.azure.com_aksmachine_nodeclaim")
408-
azureEnv.AKSDataStorage.AKSMachines.Store(lo.FromPtr(aksMachine.ID), *aksMachine)
409-
410-
// In-place update reconciles - should not do anything as no ProviderID yet
411-
ExpectObjectReconciled(ctx, env.Client, inPlaceUpdateController, nodeClaim)
412-
// Verify no update calls and the timestamp tag stays broken.
413-
Expect(azureEnv.AKSMachinesAPI.AKSMachineCreateOrUpdateBehavior.CalledWithInput.Len()).To(Equal(0))
414-
unchangedAKSMachine, err := azureEnv.AKSMachineProvider.Get(ctx, *aksMachine.Name)
415-
Expect(err).ToNot(HaveOccurred())
416-
Expect(unchangedAKSMachine.Properties.Tags).ToNot(HaveKey("karpenter.azure.com_aksmachine_creationtimestamp"))
417-
Expect(unchangedAKSMachine.Properties.Tags).ToNot(HaveKey("karpenter.azure.com_aksmachine_nodeclaim"))
418-
419-
// Provider Create() completes, setting the ProviderID on the NodeClaim
420-
nodeClaim.Status.ProviderID = providerID
421-
nodeClaim.StatusConditions().SetTrue(karpv1.ConditionTypeLaunched)
422-
ExpectApplied(ctx, env.Client, nodeClaim)
423-
424-
// NodeClaim gets registered
425-
nodeClaim.StatusConditions().SetTrue(karpv1.ConditionTypeRegistered)
426-
ExpectApplied(ctx, env.Client, nodeClaim)
427-
428-
// Garbage collection reconciles - should not garbage collect due to NodeClaim owner
429-
ExpectSingletonReconciled(ctx, InstanceGCController)
430-
_, err = cloudProvider.Get(ctx, providerID)
431-
Expect(err).ToNot(HaveOccurred())
432-
Expect(azureEnv.AKSAgentPoolsAPI.AgentPoolDeleteMachinesBehavior.CalledWithInput.Len()).To(Equal(0))
433-
})
434-
435-
It("Instance created -> Tag deleted -> Create() completed -> Garbage collection negative", func() {
436-
// Blank NodeClaim is there from the core.
437-
ExpectApplied(ctx, env.Client, nodeClaim, nodeClass)
438-
439-
// AKS machine created, but the user somehow deleted the timestamp tag
440-
delete(aksMachine.Properties.Tags, "karpenter.azure.com_aksmachine_creationtimestamp")
441-
delete(aksMachine.Properties.Tags, "karpenter.azure.com_aksmachine_nodeclaim")
442-
azureEnv.AKSDataStorage.AKSMachines.Store(lo.FromPtr(aksMachine.ID), *aksMachine)
443-
444-
// Provider Create() completes, setting the ProviderID on the NodeClaim
445-
nodeClaim.Status.ProviderID = providerID
446-
nodeClaim.StatusConditions().SetTrue(karpv1.ConditionTypeLaunched)
447-
ExpectApplied(ctx, env.Client, nodeClaim)
448-
449-
// Garbage collection reconciles - should not garbage collect due to NodeClaim owner
450-
ExpectSingletonReconciled(ctx, InstanceGCController)
451-
_, err = cloudProvider.Get(ctx, providerID)
452-
Expect(err).ToNot(HaveOccurred())
453-
Expect(azureEnv.AKSAgentPoolsAPI.AgentPoolDeleteMachinesBehavior.CalledWithInput.Len()).To(Equal(0))
454-
})
455-
456-
It("Instance created -> Tag deleted -> Create() completed -> Registered -> Garbage collection negative", func() {
457-
// Blank NodeClaim is there from the core.
458-
ExpectApplied(ctx, env.Client, nodeClaim, nodeClass)
459-
460-
// AKS machine created, but the user somehow deleted the timestamp tag
461-
delete(aksMachine.Properties.Tags, "karpenter.azure.com_aksmachine_creationtimestamp")
462-
delete(aksMachine.Properties.Tags, "karpenter.azure.com_aksmachine_nodeclaim")
463-
azureEnv.AKSDataStorage.AKSMachines.Store(lo.FromPtr(aksMachine.ID), *aksMachine)
464-
465-
// Provider Create() completes, setting the ProviderID on the NodeClaim
466-
nodeClaim.Status.ProviderID = providerID
467-
nodeClaim.StatusConditions().SetTrue(karpv1.ConditionTypeLaunched)
468-
ExpectApplied(ctx, env.Client, nodeClaim)
469-
470-
// NodeClaim gets registered
471-
nodeClaim.StatusConditions().SetTrue(karpv1.ConditionTypeRegistered)
472-
ExpectApplied(ctx, env.Client, nodeClaim)
473-
474-
// Garbage collection reconciles - should not garbage collect due to NodeClaim owner
475-
ExpectSingletonReconciled(ctx, InstanceGCController)
476-
_, err = cloudProvider.Get(ctx, providerID)
477-
Expect(err).ToNot(HaveOccurred())
478-
Expect(azureEnv.AKSAgentPoolsAPI.AgentPoolDeleteMachinesBehavior.CalledWithInput.Len()).To(Equal(0))
479-
})
480-
})
481220
})
482221

483222
var _ = Context("Mixed VM and AKS machine instances", func() {

0 commit comments

Comments
 (0)