Skip to content

chore: update harbor client to 2.13.0 #238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

chore: update harbor client to 2.13.0 #238

wants to merge 12 commits into from

Conversation

ElderMatt
Copy link
Contributor

@ElderMatt ElderMatt commented Jun 3, 2025

This PR updates the Harbor api client to 2.13.0 and makes the code compatible with this version.

Also added all operator related stuff into their own folders.

Copy link

github-actions bot commented Jun 3, 2025

Coverage report

St.
Category Percentage Covered / Total
🔴 Statements
33.99% (+0.06% 🔼)
380/1118
🔴 Branches 15.44% 42/272
🔴 Functions 20% 40/200
🔴 Lines
34.49% (+0.13% 🔼)
349/1012
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🔴
... / gitea.ts
29.01% 8.25% 24.36% 29.27%
🟢 operators/common.ts 100% 100% 100% 100%
🔴
... / keycloak.ts
10.89% 6.93% 7.14% 11.66%

Test suite run success

23 tests passing in 4 suites.

Report generated by 🧪jest coverage report action from db333ec

Copy link
Contributor

@CasLubbers CasLubbers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small comments still need to test it.

@@ -598,7 +617,7 @@ async function ensureTeamBuildsPushRobotAccount(projectName: string): Promise<an
if (existing?.name) {
const existingId = existing.id
await doApiCall(errors, `Deleting previous build push robot account ${fullName}`, () =>
robotApi.deleteRobot(existingId),
robotApi.deleteRobot(existingId!),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can better check if existing.id is there instead of name. Then we also don't need the postfix !

Copy link
Contributor

@CasLubbers CasLubbers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants