fixing rediscacheaction parent ordering
@@ -86,16 +86,16 @@ func (m *AzureRedisCacheActionManager) GetParents(obj runtime.Object) ([]resourc
{
Key: types.NamespacedName{
Namespace: instance.Namespace,
- Name: instance.Spec.ResourceGroup,
+ Name: instance.Spec.CacheName,
},
- Target: &v1alpha1.ResourceGroup{},
+ Target: &v1alpha1.RedisCache{},
},
{
Key: types.NamespacedName{
Namespace: instance.Namespace,
- Name: instance.Spec.CacheName,
+ Name: instance.Spec.ResourceGroup,
},
- Target: &v1alpha1.RedisCache{},
+ Target: &v1alpha1.ResourceGroup{},
},
}, nil
}
