[backport-1.7]: Harbor Login Test Is Failing (workload cluster)

A solution for issue #4406 (closed) needs to be backported to 1.7.x