Skip to content

Commit

Permalink
Fix up azure env var processing
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewuolle committed Dec 2, 2024
1 parent a3f193e commit 7ae6665
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions test/e2e/managedcluster/azure/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ func SetAzureEnvironmentVariables(clusterName string, kc *kubeclient.KubeClient)
resourceGroup := spec["resourceGroup"]
GinkgoT().Setenv("AZURE_RESOURCE_GROUP", fmt.Sprintf("%s", resourceGroup))

var subnetMap map[string]any
for _, subnet := range subnets {
sMap, ok := subnet.(map[string]any)
Expect(ok).To(BeTrue())
Expand All @@ -89,7 +88,7 @@ func SetAzureEnvironmentVariables(clusterName string, kc *kubeclient.KubeClient)

subnetName := sMap["name"]

securityGroup, found, err := unstructured.NestedMap(subnetMap, "securityGroup")
securityGroup, found, err := unstructured.NestedMap(sMap, "securityGroup")
Expect(err).NotTo(HaveOccurred())
Expect(found).To(BeTrue())
securityGroupName := securityGroup["name"]
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/managedcluster/validate_deployed.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ func validateCCM(ctx context.Context, kc *kubeclient.KubeClient, clusterName str
}

for _, i := range service.Status.LoadBalancer.Ingress {
fmt.Printf("HOSTNAME=%s, IP=%s", i.Hostname, i.IP)
fmt.Printf("service status=%v", service.Status)
_, _ = fmt.Fprintf(GinkgoWriter, "HOSTNAME=%s, IP=%s", i.Hostname, i.IP)
_, _ = fmt.Fprintf(GinkgoWriter, "service status=%v", service.Status)
if i.Hostname != "" || i.IP != "" {
return nil
}
Expand Down

0 comments on commit 7ae6665

Please sign in to comment.