Skip to content

feat: support to fuzzy search Harbor mirror

Created by: wengzhisong-hz

What type of PR is this?

/kind feature

What this PR does / why we need it:

to support Harbor mirror search.

Which issue(s) this PR fixes:

Fixes (https://github.com/kubesphere/kubesphere/issues/3259)

Special notes for reviewers:

i have used  these apis provided by Harbor:  
1. get mirror list: `/api/v2.0/search?q=${queryparams}`
2. get mirror tag: `/api/v2.0/projects/${projectName}/repositories/${repoName}/artifacts`

please see this video:

https://user-images.githubusercontent.com/14542348/127644793-70a3e894-c404-4562-bb55-4baf88a04def.mov

becase the kubesphere/kubesphere dose not support to fuzzy search Harbor mirror, i used nodejs to Implement this function. and Here, I distinguish whether it is Harbor or not by the tag of self built mirror warehouse.

These are temporary solution. 🙁

Does this PR introduced a user-facing change?

support Harbor mirror searching.

Additional documentation, usage docs, etc.:

合并请求报告

加载中