resolve typo on resourcegroupnamespacedname
@@ -53,18 +53,18 @@ var _ = Describe("ResourceGroup Controller", func() {
Expect(apierrors.IsInvalid(err)).To(Equal(false))
Expect(err).NotTo(HaveOccurred())
- resourceGroupNamespaceName := types.NamespacedName{Name: resourceGroupName, Namespace: "default"}
+ resourceGroupNamespacedName := types.NamespacedName{Name: resourceGroupName, Namespace: "default"}
// verify sure rg has a finalizer
Eventually(func() bool {
- _ = tc.k8sClient.Get(context.Background(), resourceGroupNamespaceName, resourceGroupInstance)
+ _ = tc.k8sClient.Get(context.Background(), resourceGroupNamespacedName, resourceGroupInstance)
return resourceGroupInstance.HasFinalizer(resourceGroupFinalizerName)
}, tc.timeout,
).Should(BeTrue())
// verify rg gets submitted
Eventually(func() bool {
- _ = tc.k8sClient.Get(context.Background(), resourceGroupNamespaceName, resourceGroupInstance)
+ _ = tc.k8sClient.Get(context.Background(), resourceGroupNamespacedName, resourceGroupInstance)
return resourceGroupInstance.IsSubmitted()
}, tc.timeout,
).Should(BeTrue())
@@ -82,14 +82,14 @@ var _ = Describe("ResourceGroup Controller", func() {
// verify rg is being deleted
Eventually(func() bool {
- _ = tc.k8sClient.Get(context.Background(), resourceGroupNamespaceName, resourceGroupInstance)
+ _ = tc.k8sClient.Get(context.Background(), resourceGroupNamespacedName, resourceGroupInstance)
return resourceGroupInstance.IsBeingDeleted()
}, tc.timeout,
).Should(BeTrue())
// verify rg is gone from kubernetes
Eventually(func() bool {
- err := tc.k8sClient.Get(context.Background(), resourceGroupNamespaceName, resourceGroupInstance)
+ err := tc.k8sClient.Get(context.Background(), resourceGroupNamespacedName, resourceGroupInstance)
if err == nil {
err = fmt.Errorf("")
}
