Skip to content

Commit

Permalink
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.

Signed-off-by: Nir Soffer <[email protected]>
  • Loading branch information
nirs committed Jan 26, 2025
1 parent 8ac68a4 commit 6e0b362
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
Expand Up @@ -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{}

Expand Down

0 comments on commit 6e0b362

Please sign in to comment.