@@ -47,7 +47,7 @@ func EnsureNonceSecret(ctx context.Context, cl client.Client,
4747// already a nonce secret in the tenant namespace.
4848func EnsureSignedNonceSecret (ctx context.Context , cl client.Client ,
4949 remoteClusterID liqov1beta1.ClusterID , tenantNamespace string , nonce * string ) error {
50- nonceSecret , err := getters .GetSignedNonceSecretByClusterID (ctx , cl , remoteClusterID )
50+ nonceSecret , err := getters .GetSignedNonceSecretByClusterID (ctx , cl , remoteClusterID , tenantNamespace )
5151 switch {
5252 case errors .IsNotFound (err ):
5353 // Secret not found. Create it given the provided nonce.
@@ -80,8 +80,8 @@ func EnsureSignedNonceSecret(ctx context.Context, cl client.Client,
8080}
8181
8282// RetrieveNonce retrieves the nonce from the secret in the tenant namespace.
83- func RetrieveNonce (ctx context.Context , cl client.Client , remoteClusterID liqov1beta1.ClusterID ) ([]byte , error ) {
84- nonce , err := getters .GetNonceSecretByClusterID (ctx , cl , remoteClusterID )
83+ func RetrieveNonce (ctx context.Context , cl client.Client , remoteClusterID liqov1beta1.ClusterID , tenantNs string ) ([]byte , error ) {
84+ nonce , err := getters .GetNonceSecretByClusterID (ctx , cl , remoteClusterID , tenantNs )
8585 if err != nil {
8686 return nil , fmt .Errorf ("unable to get nonce secret: %w" , err )
8787 }
@@ -90,8 +90,8 @@ func RetrieveNonce(ctx context.Context, cl client.Client, remoteClusterID liqov1
9090}
9191
9292// RetrieveSignedNonce retrieves the signed nonce from the secret in the tenant namespace.
93- func RetrieveSignedNonce (ctx context.Context , cl client.Client , remoteClusterID liqov1beta1.ClusterID ) ([]byte , error ) {
94- secret , err := getters .GetSignedNonceSecretByClusterID (ctx , cl , remoteClusterID )
93+ func RetrieveSignedNonce (ctx context.Context , cl client.Client , remoteClusterID liqov1beta1.ClusterID , tenantNs string ) ([]byte , error ) {
94+ secret , err := getters .GetSignedNonceSecretByClusterID (ctx , cl , remoteClusterID , tenantNs )
9595 if err != nil {
9696 return nil , fmt .Errorf ("unable to get signed nonce secret: %w" , err )
9797 }
0 commit comments