Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
e2e: Unexport AddNamespaceAnnotationForVolSync
Browse files Browse the repository at this point in the history
It is used only in CreateNamespaceAndAnnotation, lets keep it private to
avoid future dependencies.

Part-of: RamenDR#1715
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
nirs committed Jan 29, 2025
1 parent d4baf87 commit ba19207
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e2e/util/namespace.go
Original file line number Diff line number Diff line change
@@ -84,18 +84,18 @@ func CreateNamespaceAndAddAnnotation(namespace string) error {
return err
}

if err := AddNamespaceAnnotationForVolSync(Ctx.C1.Client, namespace); err != nil {
if err := addNamespaceAnnotationForVolSync(Ctx.C1.Client, namespace); err != nil {
return err
}

if err := CreateNamespace(Ctx.C2.Client, namespace); err != nil {
return err
}

return AddNamespaceAnnotationForVolSync(Ctx.C2.Client, namespace)
return addNamespaceAnnotationForVolSync(Ctx.C2.Client, namespace)
}

func AddNamespaceAnnotationForVolSync(client client.Client, namespace string) error {
func addNamespaceAnnotationForVolSync(client client.Client, namespace string) error {
key := types.NamespacedName{Name: namespace}
objNs := &corev1.Namespace{}

0 comments on commit ba19207

Please sign in to comment.